Static Public Member Functions | |
| static std::vector< std::vector< std::complex< float > > > | stft (std::vector< float > &x, int n_fft, int n_hop, int window_length, const std::string &win, bool center, const std::string &mode) |
| short-time fourier transform similar with librosa.feature.stft More... | |
| static std::vector< std::vector< float > > | melspectrogram (std::vector< float > &x, Matrixf &sp, int sr, int n_fft, int n_hop, int window_length, const std::string &win, bool center, const std::string &mode, float power, int n_mels, int fmin, int fmax) |
| compute mel spectrogram similar with librosa.feature.melspectrogram More... | |
| static std::vector< float > | zeroCrossingRate (std::vector< float > &x, int frame_length, int hop_length, int pad) |
| static std::vector< float > | rms (std::vector< float > &x, int frame_length, int hop_length) |
| static std::vector< std::vector< float > > | mfcc (std::vector< float > &x, int sr, int n_fft, int n_hop, int window_length, const std::string &win, bool center, const std::string &mode, float power, int n_mels, int fmin, int fmax, int n_mfcc, bool norm, int type) |
| compute mfcc similar with librosa.feature.mfcc More... | |
| static Vectorf | spectralCentroid (Matrixf &sp, Vectorf &fft_freqs) |
| static std::vector< float > | spectralRolloff (Matrixf &sp, Vectorf &fft_freqs, float roll_percent) |
| static std::vector< float > | spectralBandwidth (Matrixf &sp, Vectorf ¢roid, Vectorf &fft_freqs) |
|
inlinestatic |
compute mel spectrogram similar with librosa.feature.melspectrogram
| x | input audio signal |
| sr | sample rate of 'x' |
| n_fft | length of the FFT size |
| n_hop | number of samples between successive frames |
| win | window function. currently only supports 'hann' |
| center | same as librosa |
| mode | pad mode. support "reflect","symmetric","edge" |
| power | exponent for the magnitude melspectrogram |
| n_mels | number of mel bands |
| f_min | lowest frequency (in Hz) |
| f_max | highest frequency (in Hz) |
|
inlinestatic |
compute mfcc similar with librosa.feature.mfcc
| x | input audio signal |
| sr | sample rate of 'x' |
| n_fft | length of the FFT size |
| n_hop | number of samples between successive frames |
| win | window function. currently only supports 'hann' |
| center | same as librosa |
| mode | pad mode. support "reflect","symmetric","edge" |
| power | exponent for the magnitude melspectrogram |
| n_mels | number of mel bands |
| f_min | lowest frequency (in Hz) |
| f_max | highest frequency (in Hz) |
| n_mfcc | number of mfccs |
| norm | ortho-normal dct basis |
| type | dct type. currently only supports 'type-II' |
|
inlinestatic |
short-time fourier transform similar with librosa.feature.stft
| x | input audio signal |
| n_fft | length of the FFT size |
| n_hop | number of samples between successive frames |
| win | window function. currently only supports 'hann' |
| center | same as librosa |
| mode | pad mode. support "reflect","symmetric","edge" |