Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Ric's Sound Creator, updated with proper Waveform header info.

Author
Message
enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 20th Aug 2011 19:22 Edited at: 21st Aug 2011 01:25
There seemed to be alot of interest in Ric's Sound Creator when he made it, but people seemed to struggle with how the sound format actually worked. So I decided to update it with actual FACTS about the header.

Here's the updated snippet:


Comments are welcome.

EDIT: Corrected a minor error on the WORD range.

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 21st Aug 2011 00:41
That takes me back many many years Martin. From when I used to play about with stuff like that on the Atari ST before I got into the .mod files.

Although I haven't had an in depth look into the function. Is there a way of mixing white noise with some of those effects? Makes for another media less utility...

Warning! May contain Nuts!
enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 21st Aug 2011 01:10
Probably wouldn't be too hard as the wave is generated word by word. Just add a random number to each word and divide by 2.
I think...

enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 21st Aug 2011 01:21
outWord = (outInteger + (rnd(65535)-32768)) / 2

Something like that, this gives maximum noise. You can scale down the noise by multiplying it by some fraction, like 0.5 for half strength...

Login to post a reply

Server time is: 2025-05-28 06:51:06
Your offset time is: 2025-05-28 06:51:06