Essentia  2.1-beta5-dev
synth_utils.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
3  *
4  * This file is part of Essentia
5  *
6  * Essentia is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License as published by the Free
8  * Software Foundation (FSF), either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the Affero GNU General Public License
17  * version 3 along with this program. If not, see http://www.gnu.org/licenses/
18  */
19 
20 
21 #ifndef ESSENTIA_SYNTH_UTILS_H
22 #define ESSENTIA_SYNTH_UTILS_H
23 
25 
26 
27 namespace essentia{
28 
29 
30 void scaleAudioVector(std::vector<Real> &buffer, const Real scale);
31 //void mixAudioVectors(const std::vector<Real> ina, const std::vector<Real> inb, const Real gaina, const Real gainb, std::vector<Real> &out);
32 void cleaningSineTracks(std::vector< std::vector<Real> >&freqsTotal, const int minFrames);
33 void genSpecSines(std::vector<Real> iploc, std::vector<Real> ipmag, std::vector<Real> ipphase, std::vector<std::complex<Real> > &outfft, const int fftSize);
34 void initializeFFT(std::vector<std::complex<Real> >&fft, int sizeFFT);
35 
36 } // namespace essentia
37 
38 #endif // ESSENTIA_SYNTH_UTILS_H
void initializeFFT(std::vector< std::complex< Real > > &fft, int sizeFFT)
void scaleAudioVector(std::vector< Real > &buffer, const Real scale)
float Real
Definition: types.h:68
void genSpecSines(std::vector< Real > iploc, std::vector< Real > ipmag, std::vector< Real > ipphase, std::vector< std::complex< Real > > &outfft, const int fftSize)
Definition: algorithm.h:28
void cleaningSineTracks(std::vector< std::vector< Real > > &freqsTotal, const int minFrames)