123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #ifndef _Cepstrum_h_
- #define _Cepstrum_h_
- #include "Matrix.h"
- Thing_define (Cepstrum, Matrix) {
- double v_getValueAtSample (integer isamp, integer which, int units)
- override;
- };
- Thing_define (PowerCepstrum, Cepstrum) {
- double v_getValueAtSample (integer isamp, integer which, int units)
- override;
- };
- autoCepstrum Cepstrum_create (double qmax, integer nq);
- autoPowerCepstrum PowerCepstrum_create (double qmax, integer nq);
- void PowerCepstrum_draw (PowerCepstrum me, Graphics g, double qmin, double qmax, double dBminimum, double dBmaximum, int garnish);
- void Cepstrum_drawLinear (Cepstrum me, Graphics g, double qmin, double qmax, double minimum, double maximum, int garnish);
- void PowerCepstrum_drawTiltLine (PowerCepstrum me, Graphics g, double qmin, double qmax, double dBminimum, double dBmaximum, double qstart, double qend, int lineType, int method);
- void PowerCepstrum_getMaximumAndQuefrency (PowerCepstrum me, double pitchFloor, double pitchCeiling, int interpolation, double *maximum, double *quefrency);
- double PowerCepstrum_getPeakProminence_hillenbrand (PowerCepstrum me, double pitchFloor, double pitchCeiling, double *qpeak);
- double PowerCepstrum_getRNR (PowerCepstrum me, double pitchFloor, double pitchCeiling, double f0fractionalWidth);
- double PowerCepstrum_getPeakProminence (PowerCepstrum me, double pitchFloor, double pitchCeiling, int interpolation, double qstartFit, double qendFit, int lineType, int fitMethod, double *qpeak);
- void PowerCepstrum_fitTiltLine (PowerCepstrum me, double qmin, double qmax, double *slope, double *intercept, int lineType, int method);
- autoPowerCepstrum PowerCepstrum_subtractTilt (PowerCepstrum me, double qstartFit, double qendFit, int lineType, int fitMethod);
- void PowerCepstrum_subtractTilt_inplace (PowerCepstrum me, double qstartFit, double qendFit, int lineType, int fitMethod);
- void PowerCepstrum_smooth_inplace (PowerCepstrum me, double quefrencyAveragingWindow, integer numberOfIterations);
- autoPowerCepstrum PowerCepstrum_smooth (PowerCepstrum me, double quefrencyAveragingWindow, integer numberOfIterations);
- autoMatrix PowerCepstrum_to_Matrix (PowerCepstrum me);
- autoPowerCepstrum Matrix_to_PowerCepstrum (Matrix me);
- autoPowerCepstrum Matrix_to_PowerCepstrum_row (Matrix me, integer row);
- autoPowerCepstrum Matrix_to_PowerCepstrum_column (Matrix me, integer col);
- autoPowerCepstrum Cepstrum_downto_PowerCepstrum (Cepstrum me);
- #endif
|