Has someone some starting code for PB for doing time-stretching on wav or ogg sound files.
Info about these items are also welcome
Time stretching with OGG or WAV
Time stretching with OGG or WAV
Cor de Visser
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Re: Time stretching with OGG or WAV
Hi CorCor wrote:Has someone some starting code for PB for doing time-stretching on wav or ogg sound files.
Info about these items are also welcome
Here you wil find an excelente opensource lib (C++) that does this stuff and more (calculate the BMP, etc).
I have always wanted to translate to to PB, but havent found the time to do it. (and don't know much C++)
The theory of strecthing is not complicated (in fact, manipulating audio is very interesting) but i have made some experiments with not succes at the moment because i havent resolve the antialias thing.
The stretch idea is:
Read each frame in memory and then, take off some part of it if you want to make it sound speed or duplicate some part to make it sound slower.
This works ok, but the antialias part to avoid the 'clicks' is complicated.
Check the source, its very andvanced and interesting
http://www.sunpoint.net/~oparviai/soundtouch/
I hope it helps
Ps. For read in memory use Ring's FastFile, otherwise its so slow.
ARGENTINA WORLD CHAMPION
Thanks Ricardo
Cor de Visser
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com

