Another sound question

BlitzMax Forums/BlitzMax Beginners Area/Another sound question

Hi Nomen,

I changed K so that it's limit is 31; that got rid of a clipping sound I was hearing at the beginning.

"Note" is just a variable name, I can change it to anything.

It's sounding a bit better now, I figured out that by changing the second value in this line:

Local sample1:TAudioSample=CreateAudioSample( 16,13675,SF_MONO8 )

to something other than 13675, that changes the pitch. Now I just have to figure out what middle C is. It sure isn't 256Hz or 264Hz, 'cause those numbers don't work in this situation.