Sound playback speed

LineCutter

Active Member
Licensed User
Longtime User
Basically I want to playback a wav/ogg/mp3 file at a speed other than 100% of what it was recorded at. Perfection would be to have the option of preserving the pitch, but the ability to change pitch by altering the speed would be essential.

The only solution I can see is to use the wavgen library to create a new wav for every pitch, but that would prevent me using the overtones/harmonics that make a note sound like an instrument is playing it.

Does anyone know something I missed, or an alternative solution??
 

LineCutter

Active Member
Licensed User
Longtime User
I've carried on trying to crack this & have come up with a blank. I tried changing the sample freq of the hekkus library speaker, but that only works over a small range & not always reliably for a given wav.

I suppose that I could read the wav as an array of bytes, read every nth one & write the result out to a file, but that seems to lack elegance (& subtlety given that I can only create the harmonics of the root note).

Any thoughts anyone??
 
Top