[MPlayer-dev-eng] [PATCH 3/7] af_scale*: af_scaletempo

Diego Biurrun diego at biurrun.de
Mon Jun 11 10:57:53 CEST 2007


On Mon, Jun 11, 2007 at 12:48:46AM -0400, Robert Juliano wrote:
> af_scaletempo
> 
> This is the main patch.  It adds a filter that, when used
> (-af scaletempo), syncs with playback_speed to scale the audio
> tempo while preserving the pitch.
> 
> --- /dev/null	1970-01-01 00:00:00.000000000 +0000
> +++ mplayer-HEAD/libaf/af_scaletempo.c	2007-06-10 16:52:31.000000000 -0400
> @@ -0,0 +1,323 @@
> +/*
> + *  (cc) GPL 2007 MPlayer / Robert Juliano
> + *       Inspired by SoundTouch library by Olli Parviainen
> + *
> + *  License: GPL http://creativecommons.org/licenses/GPL/2.0/

That's a very peculiar link to the GPL...  Please use a standard GPL
license header, like vidix/vidixlib.c for example.  Same for the other
patches.

> + *  scale tempo while maintaining pitch
> + *  (WSOLA technique with cross correlation)
> + *
> + *  basic algorithm
> + *    - produce 'stride' output samples per loop
> + *    - consume stride*speed input samples per loop
> + *
> + *  to produce smoother transitions between strides, blend next ns_overlap
> + *    samples from last stride with correlated samples of current input
> + *
> + *  Changelog
> + *  2007-06-10  Initial release

We use Subversion, no need to add per-file changelogs.

Diego



More information about the MPlayer-dev-eng mailing list