Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Valentine's Beating Heart
#20
(02-16-2026, 12:09 AM)ahenry3068 Wrote:
(02-15-2026, 11:13 PM)SMcNeill Wrote: I will have to admit...

I *SUCK* at SNDRAW and am basically just tossing stuff at it and hoping it sticks.

I has no idea how to make a true THUMP-THUMP  or BA-DUMP sound.   So... The last one sounded like something you might hear on a hospital monitor or such, and so I just went with it.

Anybody got any nice pointers for how the heck to make various sounds and put them together with _SNDRAW?  I'm almost clueless when it comes to the new sound commands and just... toss poo until I get a "PLOP" or "PLIP" of "ZZZZTTT" or whatever.  LOL!
   I just embed 8 bit PCM samples then upsample them to send to SNDRAW.   (8 bit to save space !) 

Look at my Video Library !   I use _SNDRAW in that to play back the PCM sound track from the files.  Those are stored as either 8 bit or 16 bit signed PCM.   (_sndraw takes signed FLOAT but it's an easy conversion )    You can create 8 bit PCM raw samples with Audacity or ffmpeg or other !
You don't need any third party software to create audio samples from all music files supported by _SndOpen. Use _MemSound and detect the correct data type. For example, 16bit WAV PCM returns integer. Interleaved samples. MP3 returns Single interleaved samples. 8Bit WAV PCM returns _Unsigned _Byte interleaved samples (I think) I'm not sure about the others. You can find out how to do it in the sound programs in my thread.

As for creating audio as such just using arrays and math... yeah, that's high school math. The range must be from -1 to 1 (for compatibility with _SndRaw), the data type Single (is enough) and then experiment with Sin, Cos, loop interleaving, use different nested functions... that's the game. Such a blind shooting. But sometimes you're amazed at what comes out of it Smile )


Reply


Messages In This Thread
Valentine's Beating Heart - by SMcNeill - 02-15-2026, 05:51 PM
RE: Valentine's Beating Heart - by bplus - 02-15-2026, 06:04 PM
RE: Valentine's Beating Heart - by bplus - 02-15-2026, 06:26 PM
RE: Valentine's Beating Heart - by bplus - 02-15-2026, 06:38 PM
RE: Valentine's Beating Heart - by ahenry3068 - 02-15-2026, 08:55 PM
RE: Valentine's Beating Heart - by bplus - 02-15-2026, 09:02 PM
RE: Valentine's Beating Heart - by SMcNeill - 02-15-2026, 10:12 PM
RE: Valentine's Beating Heart - by SMcNeill - 02-15-2026, 10:25 PM
RE: Valentine's Beating Heart - by PhilOfPerth - 02-15-2026, 10:56 PM
RE: Valentine's Beating Heart - by SMcNeill - 02-15-2026, 11:10 PM
RE: Valentine's Beating Heart - by SMcNeill - 02-15-2026, 11:13 PM
RE: Valentine's Beating Heart - by bplus - 02-15-2026, 11:54 PM
RE: Valentine's Beating Heart - by ahenry3068 - 02-16-2026, 12:09 AM
RE: Valentine's Beating Heart - by Petr - 02-16-2026, 06:40 PM
RE: Valentine's Beating Heart - by bplus - 02-15-2026, 11:49 PM
RE: Valentine's Beating Heart - by TempodiBasic - 02-16-2026, 12:57 AM
RE: Valentine's Beating Heart - by ahenry3068 - 02-16-2026, 01:18 AM
RE: Valentine's Beating Heart - by bplus - 02-16-2026, 10:04 AM
RE: Valentine's Beating Heart - by Magdha - 02-16-2026, 10:31 AM
RE: Valentine's Beating Heart - by TempodiBasic - 02-16-2026, 04:26 PM
RE: Valentine's Beating Heart - by bplus - 02-16-2026, 08:39 PM
RE: Valentine's Beating Heart - by Unseen Machine - 02-17-2026, 02:18 AM
RE: Valentine's Beating Heart - by bplus - 02-17-2026, 02:53 AM
RE: Valentine's Beating Heart - by Unseen Machine - 02-17-2026, 03:00 AM
RE: Valentine's Beating Heart - by bplus - 02-17-2026, 03:02 AM
RE: Valentine's Beating Heart - by Unseen Machine - 02-17-2026, 03:24 AM
RE: Valentine's Beating Heart - by bplus - 02-17-2026, 03:39 AM
RE: Valentine's Beating Heart - by SMcNeill - 02-17-2026, 03:51 AM
RE: Valentine's Beating Heart - by Unseen Machine - 02-17-2026, 04:13 AM
RE: Valentine's Beating Heart - by bplus - 02-17-2026, 03:16 PM
RE: Valentine's Beating Heart - by PhilOfPerth - 02-17-2026, 10:17 PM
RE: Valentine's Beating Heart - by bplus - 02-18-2026, 12:13 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)