Mercurial > hg > ishara
view dsp/README.txt @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 9e7be347b3a0 |
children |
line wrap: on
line source
*** DSP tools *** Summary of functions The is some duplication of code in this toolbox; some of the code is obsolete and will be deleted or merged into other functions at some point. FREQUENCY DECOMPOSITIONS Discrete Fourier transform dftbins - Returns number of bins to retain for real DFT of length N dftbw - Normalised bandwidths of bands in a DFT dftfmap - Frequency map for DFT of real signal dftmap - fmap, standard usage for DFT freqscale - return frequency scale for FFT analysis fouriermat - return N*N real fourier basis realfft - Do FFT assuming real data, returning complex half spectrum powspec - power spectra of columns of x magspec - get magnitude spectra of columns of x (v. 2) phasespec - get phase spectra of columns of x imagspec - convert mag/phase spectrum to wave ipowspec - convert power/phase spectrum to wave mag_phase_join - get mag and phase spectra and recombine to signal mag_phase_split - arrow to get FFT and do mag/phase split specgrm - Time-Varying Spectrum phasedata - Spectral data from buffered frames spectraldata - Spectral data from buffered frames spec2ac - convert power spectrum to autocorrelation sequence spec2fir - convert magnitude spectra to FIR filter coefficients specdist - spectral distance using I-S divergence Constant-Q constq - Constant Q spectrogram. cqbasis - Audio Spectrum linear to log frequency map cqedges - Audio Spectrum linear to log frequency map (no checking) Mel scale lin2mel - matrix to warp linear scale power spectra to mel scale hz2mel - Convert frequencies from Hertz to mel scale. mel2hz - Convert frequencies from mel scale to Hertz. melspace - create array of frequencies evenly spaced in mel scale Cepstrum cepstrum - generalised cepstral coefficients from warped power spectrogram mfcc - Mel-frequency ceptral coefficients mk_mfcc - Function factory, makes MFCC functions Wigner distribution wigner - Wigner-Ville Distribution. wignerdata - sliding window wigner distribution. OTHER TOOLS zeropad - Function to zero pad a signal expwin - Exponential window oggwin - Ogg-vorbis window. sinewin - Sine window. linlogspace - joined linear/log map formants - Compute formants from LPC coefficients fq2poles - resonant frequencies to poles hann_filterbank - Bank of Hanning (raised cosine) filters tri_filterbank - Bank of triangular filters tri_filterbank_aa - Bank of anti-aliased triangular filters specbasis unbuffer - overlap-and-add signal reconstruction (opposite of buffer) frames - Buffer signal, like buffer, but using hop instead of overlap