02-16-2026, 06:40 PM
(02-16-2026, 12:09 AM)ahenry3068 Wrote: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.(02-15-2026, 11:13 PM)SMcNeill Wrote: I will have to admit...I just embed 8 bit PCM samples then upsample them to send to SNDRAW. (8 bit to save space !)
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!
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 !
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
)

