Audio - Master Pitch

BlitzMax Forums/BlitzMax Programming/Audio - Master Pitch

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Sorry, but it seems no matter what you do with hertz and rate, the speed will change, or it will sound the exact same. In my case the speed MUST remain the same, while the pitch is altered. I really don't think blitzmax basic audio can do this, not that easily anyways.

Could I maybe alter the samples (byte ptr) somehow to achieve this?

Example, that does not work:
SuperStrict
Local timer:TTimer = CreateTimer(20) 

Local sound:TAudioSample = LoadAudioSample(RequestFile("Audio file")) 
Local sound2:TAudioSample = CreateStaticAudioSample(sound.samples, sound.length, sound.hertz * 2, sound.format) 
Local channel:TChannel = PlaySound(LoadSound(sound2)) 
channel.SetRate 0.5
For Local i:Int = 1.0 To 20 Step 0.01
	WaitTimer timer
Next