Time stretching with OGG or WAV

Just starting out? Need help? Post your questions and find answers here.
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

Time stretching with OGG or WAV

Post by Cor »

Has someone some starting code for PB for doing time-stretching on wav or ogg sound files.

Info about these items are also welcome
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: Time stretching with OGG or WAV

Post by ricardo »

Cor 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
Hi Cor :D

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 :P

Ps. For read in memory use Ring's FastFile, otherwise its so slow.
ARGENTINA WORLD CHAMPION
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

Post by Cor »

Thanks Ricardo
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Post Reply