[LAU] loop speeding in sample level accuracy

andy baxter andy at earthsong.free-online.co.uk
Fri Sep 19 06:07:40 EDT 2008


Kjetil S. Matheussen wrote:
>>> libresample outputs the exact number of frames
>>> (http://www.mega-nerd.com/SRC/api_simple.html), but
>>> unfortunately the included command line app,
>>> sndfile-resample, only takes a rate/amount argument.
>>>       
>> This looks interesting. But it seems that it needs the ratio also
>> (according to the api documentation) and takes in *maximum* number of
>> frames. Which probably means that it might leave some frames unused or
>> trim couple out. This is quite interesting library anyways as it uses
>>     
>
> You are right! Sorry for giving you false expectations.
> *maximum*, right, got it. :-)
>   
What happens if you work out a scaling in cents that will give about the 
right length, then decrement it by 1 to make the sample a bit longer, 
and specify a max length at the same time? This might do the trick.



More information about the Linux-audio-user mailing list