ref: 7a039bd79fef8a638c0066bd944f411b08729823
parent: a68ea702c1164b71cbf509c7b76db2c3310b73c8
author: Ulrich Klauer <ulrich@chirlu.de>
date: Mon Dec 26 03:57:56 EST 2011
Remove deprecated "key" effect (alias of pitch)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
ated in [F(ormat)] [E(ffect)] Replacement
------- ---------------------- ----------------------
14.3.0 O --interactive --no-clobber
+ 14.2.0 E key alias pitch
14.1.0 E resample alias rate
14.1.0 E polyphase alias rate
14.1.0 E rabbit alias rate
@@ -31,7 +32,6 @@
14.3.0 O -1/-2/-3/-4/-8 -b 14.4.0
14.3.0 O -s/-u/-f -e 14.4.0
14.3.0 O -A/-U/-o/-i/-a/-g -e 14.4.0
- 14.2.0 E key alias pitch (now)
14.2.0 E pan ~= mixer/remix (now)
File formats:
--- a/sox.1
+++ b/sox.1
@@ -4212,12 +4212,6 @@
.SP
This effect supports the \fB\-\-plot\fR global option.
.TP
-\fBkey \fR[\fB\-q\fR] \fIshift\fR [\fIsegment\fR [\fIsearch\fR [\fIoverlap\fR]]]
-Change the audio key (i.e. pitch but not tempo).
-This is just an alias for the
-.B pitch
-effect.
-.TP
\fBpan \fIdirection\fR
Mix the audio from one channel to another.
Use
--- a/src/effects.h
+++ b/src/effects.h
@@ -47,7 +47,6 @@
EFFECT(highpass)
EFFECT(hilbert)
EFFECT(input)
- EFFECT(key)
#ifdef HAVE_LADSPA_H
EFFECT(ladspa)
#endif
--- a/src/tempo.c
+++ b/src/tempo.c
@@ -347,14 +347,3 @@
handler.flags &= ~SOX_EFF_LENGTH;
return &handler;
}
-
-/*------------------------- key (old name for pitch) -------------------------*/
-
-sox_effect_handler_t const * lsx_key_effect_fn(void)
-{
- static sox_effect_handler_t handler;
- handler = *lsx_pitch_effect_fn();
- handler.name = "key";
- handler.flags |= SOX_EFF_DEPRECATED;
- return &handler;
-}