ref: f586524ae48ec4b8891fcc2e9c0e233107ece0da
parent: 8327ae0d116b081340673a3f7b1ed1a3d42862ba
author: robs <robs>
date: Sat Dec 16 04:14:57 EST 2006
clean-ups
--- a/sox.1
+++ b/sox.1
@@ -1449,7 +1449,7 @@
Use resampling to adjust the audio speed (pitch and tempo
together). \fIfactor\fR is either the ratio of the new
speed to the old speed: > 1 speeds up, < 1 slows down, or, if
-appended with `\fIc\fR', the number of cents (i.e 100ths of a
+appended with `\fIc\fR', the number of cents (i.e. 100ths of a
semitone) by which the pitch (and tempo) should be adjusted:
> 0 increases, < 0 decreases.
.ti +3
--- a/src/speedr.c
+++ b/src/speedr.c
@@ -1,26 +1,14 @@
-/* Sound Tools Effect: speedr
+/* Sound Tools Effect: Adjust the audio speed (pitch and tempo together)
*
* (c) 2006 [email protected]
*
* See LICENSE file for further copyright information.
+ *
+ * Adjustment is given as the ratio of the new speed to the old speed,
+ * or as a number of cents (100ths of a semitone) to change. Speed change
+ * is actually performed by whichever resampling effect is in effect.
*/
-static char const usage[] =
- "\n"
- "Usage: speedr factor[c]\n"
- "\n"
- "Use resampling to adjust the audio speed (pitch and tempo\n"
- "together). ‘factor’ is either the ratio of the new speed to\n"
- "the old speed: > 1 speeds up, < 1 slows down, or, if appended\n"
- "with ‘c’, the number of cents (i.e 100ths of a semitone) by\n"
- "which the pitch (and tempo) should be adjusted: > 0\n"
- "increases, < 0 decreases.\n"
- " By default, the speed change is performed by the resample\n"
- "effect with its default parameters. For higher quality\n"
- "resampling, in addition to the speedr effect, specify either\n"
- "the resample or the rabbit effect with appropriate parame-\n"
- "ters.";
-
#include "st_i.h"
#include <math.h>
#include <string.h>
@@ -51,7 +39,8 @@
st_effect_t const * st_speedr_effect_fn(void)
{
- static st_effect_t driver =
- {"speedr", usage, ST_EFF_NULL, getopts, NULL, NULL, NULL, NULL};
+ static st_effect_t driver = {
+ "speedr", "Usage: speedr factor[c]", ST_EFF_NULL,
+ getopts, NULL, NULL, NULL, NULL};
return &driver;
}