[Alsaplayer-devel] Pitch shifting

Patrick Shirkey pshirkey at boosthardware.com
Thu Mar 3 05:11:19 GMT 2005


Hi,

This is a good idea and would be relatively easy to add.

I could do it in about a day if I had the time but others could probably do it
faster than me.

It's really just about adding another if clause to the playback function and
giving the app controls a new item.

You could follow the loop code for a good overview of where to make changes if
you are interested in adding this feature.

Rgds.

Quoting Jay Carlson <jay at zoop.org>:

> This functionality wasn't present last time I checked.  I love the idea of
> unbound pitch / speed adjustments, but be forewarned it does use up a bit
> of CPU.
>
> On a related note -- with mpeg playback (and ogg I suspect also), one can
> do simple unbound speed adjustments just by skipping frames.  Skip every
> other frame, and you have 2x (2/1) playback.  Skip every fifth frame, and
> you have 1.25x playback (5/4).  Likewise, one could go slower than 1x by
> doubling frames.  Double every fourth frame, and you have .8x playback
> (4/5).  Etc...
>
> I personally would love to have this feature -- I'm imagining improved
> seek FWD / seek REV modes in my car .mp3 deck.
>
> Andy, what do you think?  Would something like this be easy to add?
>
> --Later,
> --Jay
>
>
>
> > Does libalsaplayer support shifting pitch without changing speed?
> > Conversely, can I change playback speed without changing pitch? I saw
> > some traffic about this in the list archives (but nothing conclusive),
> > and I don't see any support for this in control.h or other headers. My
> > knowledge of audio playback is such that I don't really even know if
> > this is reasonable, I just know it would be nice. Thanks.
> >
> > Austin Bingham
> >
> > _______________________________________________
> > alsaplayer-devel mailing list
> > alsaplayer-devel at lists.tartarus.org
> > http://lists.tartarus.org/mailman/listinfo/alsaplayer-devel
> >
> >
>
>
>
> _______________________________________________
> alsaplayer-devel mailing list
> alsaplayer-devel at lists.tartarus.org
> http://lists.tartarus.org/mailman/listinfo/alsaplayer-devel
>


 --
 Patrick Shirkey - Boost Hardware Ltd.
 Http://www.boosthardware.com
 Http://www.djcj.org/ - The Linux Audio Users guide
 Http://www.djcj.org/gigs - Gigs Guide Korea
 ========================================

 Being on stage with the band in front of crowds shouting, "Get off! No!
 We want normal music!", I think that was more like acting than anything
 I've ever done.

 Goldie, 8 Nov, 2002
 The Scotsman



More information about the alsaplayer-devel mailing list