Audio FX
 
Loading...
Searching...
No Matches
timestretch.h
1#ifndef TIMESTRETCH_H
2#define TIMESTRETCH_H
3
4#include <vector>
5#include <cassert>
6#include "utils.h"
7#include "params.h"
8
9using namespace std;
16{
17private:
18
27 static void stretchFrame(const vector<double> &frame, int shiftedStart, double shiftFactor, vector<double> &out);
28
29public:
37 static void stretchChannel(const vector<double> &channel, double shiftFactor, vector<double> &out);
38
46 static vector<vector<double>> changeSpeed(const vector<vector<double>>& samples, double shiftFactor);
47
48};
49
50#endif
Class to stretch/compress an audio file without changing the pitch.
Definition timestretch.h:16
static vector< vector< double > > changeSpeed(const vector< vector< double > > &samples, double shiftFactor)
Perform time stretching algorithm on each channel independently.
static void stretchChannel(const vector< double > &channel, double shiftFactor, vector< double > &out)
Use phase vocoder to stretch/compress audio samples.