Audio FX
 
Loading...
Searching...
No Matches
TimeStretch Class Reference

Class to stretch/compress an audio file without changing the pitch. More...

#include <timestretch.h>

Static Public Member Functions

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.
 

Detailed Description

Class to stretch/compress an audio file without changing the pitch.

Member Function Documentation

◆ 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: