Class to stretch/compress an audio file without changing the pitch.
More...
#include <timestretch.h>
|
static void | stretchChannel (const vector< double > &channel, double shiftFactor, vector< double > &out) |
| Use phase vocoder to stretch/compress audio samples.
|
|
static vector< vector< double > > | changeSpeed (const vector< vector< double > > &samples, double shiftFactor) |
| Perform time stretching algorithm on each channel independently.
|
|
Class to stretch/compress an audio file without changing the pitch.
◆ changeSpeed()
static vector< vector< double > > TimeStretch::changeSpeed |
( |
const vector< vector< double > > & | samples, |
|
|
double | shiftFactor ) |
|
static |
Perform time stretching algorithm on each channel independently.
- Parameters
-
fn | -> path to a audio file |
shiftFactor | -> Amount to stretch/compress audio |
- Returns
- Modified audio
◆ stretchChannel()
static void TimeStretch::stretchChannel |
( |
const vector< double > & | channel, |
|
|
double | shiftFactor, |
|
|
vector< double > & | out ) |
|
static |
Use phase vocoder to stretch/compress audio samples.
- Parameters
-
channel | -> channel of audio samples |
shiftFactor | -> amount to stretch/compress audio |
out | -> modified audio |
The documentation for this class was generated from the following file: