0
0

Hello!
I have a library that change pitch, tempo and speed; but, it return more or less samples at process it, and a DSP callback work with a fixed length of buffer. How I solve this problem? :roll:
Pardon for my english, I’m from Argentina

  • You must to post comments
0
0

Are you sure you can’t create a buffersize that you know will be bigger, and work backwards until you get the to last “real” sample?

And by the way, is that library freeware? Where can I get it? I’m looking for the tempo function in particular. Thanks for any help you can give me, and I hope the above answers your problem. :)

  • You must to post comments
0
0

The pitch change function should return you the same number of samples as you input it (so changing pitch withouth changing length).

You can do the speed change yourself using FSOUND_SetFrequency instead of your functions (so this is changing pitch and affecting length).

If you want speed change withouth pitch change, just use FSOUND_SetFrequency and your pitch change function together :
If you make the sound 10% slower with FSOUND_SetFrequency, it will also sound 10% lower, so when you then apply your function on it to make it sound 10% higher, the result should be a sound that is 10% slower withouth the pitch being affected.

  • You must to post comments
0
0

Thank you for your idea :) , and I go to test it. I have thought to use FSOUND_Stream_Create and read the file from callback, but that is complex.
With regard to the library for changing pitch, tempo and speed; it’s very good, free and is available from [url:6zffjmjq]http://www.sunpoint.net/~oparviai/pacemaker/[/url:6zffjmjq]

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.