[linux-audio-dev] How hard is it to write a pitch shifter?

Dave Griffiths dave at pawfal.org
Wed Apr 7 09:02:09 UTC 2004


On Wed, 2004-04-07 at 09:46, Cournapeau David wrote:
> Erik de Castro Lopo wrote:
> 
> >>But I cant find out how to deal with the missing data that is removed - to
> >>keep the original length. 
> >>    
> >>
> >
> >Changing the pitch without changing the length is true pitch shifting. The
> >code and concepts required to do this well is extremely complicated.
> >  
> >
> To do it well is difficult, but the basic stuff is really simple, if you 
> have a library to do sample-rate conversion: doing the time scale 
> compression/expansion
> with the simplest method (overlapp add) is just a matter of buffering. 
> It will sound awful, of course !

you can do this (or perhaps it's some other even simpler method) in a
tracker - all you have to do is retrigger the sample at progressive
intervals, then you can change the pitch without changing the playback
speed (or vice versa). it's very very dirty but it can be taken to great
extremes :) - I implemented the same functionality in ssm's poshsampler

cheers,

dave
-- 
................................. www.pawfal.org/nebogeo




More information about the Linux-audio-dev mailing list