| 1 | #cxx . . $ `<file>/fon/Formant.h`/ifndef _Formant_h_ |
| 2 | #define _Formant_h_cxx . . $ `fon/Formant.h:2:9`! |
| 3 | /* Formant.h |
| 4 | * |
| 5 | * Copyright (C) 1992-2005,2007-2009,2011,2012,2014-2020,2024 Paul Boersma |
| 6 | * |
| 7 | * This code is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or (at |
| 10 | * your option) any later version. |
| 11 | * |
| 12 | * This code is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 15 | * See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "Matrix.h"cxx . . $ `<file>/fon/Matrix.h`/ |
| 22 | #include "Table.h"cxx . . $ `<file>/stat/Table.h`/ |
| 23 | Thing_declarecxx . . $ SomeThingHandle# (Interpreter); |
| 24 | |
| 25 | #include "Formant_enums.h"cxx . . $ `<file>/fon/Formant_enums.h`/ |
| 26 | #include "Formant_def.h"cxx . . $ `<file>/fon/Formant_def.h`/ |
| 27 | |
| 28 | autoFormantcxx . . $ autoFormant# Formant_createcxx . . $ Formant_create(c4f62f8fc805b821). (double tmin, double tmax, integercxx . . $ integer# nt, double dt, double t1, integercxx . . $ integer# maximumNumberOfFormants); |
| 29 | /* |
| 30 | Function: |
| 31 | return a new instance of Formant. |
| 32 | Preconditions: |
| 33 | nt >= 1; |
| 34 | dt > 0.0; |
| 35 | maxnFormants >= 1; |
| 36 | Postconditions: |
| 37 | my xmin == tmin; |
| 38 | my xmax == tmax; |
| 39 | my nx == nt; |
| 40 | my dx == dt; |
| 41 | my x1 == t1; |
| 42 | my maximumNumberOfPairs == maxnFormants; |
| 43 | my frames [1..nt]. intensity == 0.0; |
| 44 | my frames [1..nt]. numberOfPairs == 0; |
| 45 | my frames [1..nt]. formants [1..maxnFormants] = 0.0; |
| 46 | my frames [1..nt]. bandwidths [1..maxnFormants] = 0.0; |
| 47 | */ |
| 48 | integercxx . . $ integer# Formant_getMinNumFormantscxx . . $ Formant_getMinNumFormants(6a0b146f5923ed8d). (Formantcxx . . $ Formant# me); |
| 49 | integercxx . . $ integer# Formant_getMaxNumFormantscxx . . $ Formant_getMaxNumFormants(6a0b146f5923ed8d). (Formantcxx . . $ Formant# me); |
| 50 | |
| 51 | double Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double time, kFormant_unitcxx . . $ kFormant_unit# unit); |
| 52 | double Formant_getBandwidthAtTimecxx . . $ Formant_getBandwidthAtTime(d698bca4b3ab6c2d). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double time, kFormant_unitcxx . . $ kFormant_unit# unit); |
| 53 | |
| 54 | void Formant_getExtremacxx . . $ Formant_getExtrema(2fa30d9ec54c33d6). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, double *fmin, double *fmax); |
| 55 | void Formant_getMinimumAndTimecxx . . $ Formant_getMinimumAndTime(ba445e06d2f3b291). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit, int interpolate, |
| 56 | double *return_minimum, double *return_timeOfMinimum); |
| 57 | void Formant_getMaximumAndTimecxx . . $ Formant_getMaximumAndTime(ba445e06d2f3b291). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit, int interpolate, |
| 58 | double *return_maximum, double *return_timeOfMaximum); |
| 59 | double Formant_getMinimumcxx . . $ Formant_getMinimum(cf5257ee3bd02a26). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit, int interpolate); |
| 60 | double Formant_getMaximumcxx . . $ Formant_getMaximum(cf5257ee3bd02a26). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit, int interpolate); |
| 61 | double Formant_getTimeOfMaximumcxx . . $ Formant_getTimeOfMaximum(cf5257ee3bd02a26). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit, int interpolate); |
| 62 | double Formant_getTimeOfMinimumcxx . . $ Formant_getTimeOfMinimum(cf5257ee3bd02a26). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit, int interpolate); |
| 63 | |
| 64 | double Formant_getQuantilecxx . . $ Formant_getQuantile(990efb58928d8047). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double quantile, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit); |
| 65 | double Formant_getQuantileOfBandwidthcxx . . $ Formant_getQuantileOfBandwidth(990efb58928d8047). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double quantile, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit); |
| 66 | double Formant_getMeancxx . . $ Formant_getMean(a5942552e86a8eee). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit); |
| 67 | double Formant_getStandardDeviationcxx . . $ Formant_getStandardDeviation(a5942552e86a8eee). (Formantcxx . . $ Formant# me, integercxx . . $ integer# formantNumber, double tmin, double tmax, kFormant_unitcxx . . $ kFormant_unit# unit); |
| 68 | |
| 69 | void Formant_sortcxx . . $ Formant_sort(69449fdcf6481858). (Formantcxx . . $ Formant# me); |
| 70 | |
| 71 | void Formant_drawTrackscxx . . $ Formant_drawTracks(6f80ecb0dfd052dc). (Formantcxx . . $ Formant# me, Graphicscxx . . $ Graphics# graphics, double tmin, double tmax, double fmax, bool garnish); |
| 72 | void Formant_drawSpeckles_insidecxx . . $ Formant_drawSpeckles_inside(36952de78a0af76c). (Formantcxx . . $ Formant# me, Graphicscxx . . $ Graphics# graphics, double tmin, double tmax, double fmin, double fmax, |
| 73 | double suppress_dB, MelderColourcxx . . $ MelderColour# oddColour, MelderColourcxx . . $ MelderColour# evenColour, bool drawWithContrast); |
| 74 | void Formant_drawSpeckles_insidecxx . . $ Formant_drawSpeckles_inside(6710bc27ed3d1c6f). (Formantcxx . . $ Formant# me, Graphicscxx . . $ Graphics# graphics, double tmin, double tmax, double fmin, double fmax, |
| 75 | double suppress_dB); |
| 76 | void Formant_drawSpecklescxx . . $ Formant_drawSpeckles(e07d2c1a1c131b2d). (Formantcxx . . $ Formant# me, Graphicscxx . . $ Graphics# graphics, double tmin, double tmax, double fmax, |
| 77 | double suppress_dB, bool garnish); |
| 78 | void Formant_scatterPlotcxx . . $ Formant_scatterPlot(208224acb2000031). (Formantcxx . . $ Formant# me, Graphicscxx . . $ Graphics# graphics, double tmin, double tmax, |
| 79 | integercxx . . $ integer# iformant1, double fmin1, double fmax1, integercxx . . $ integer# iformant2, double fmin2, double fmax2, |
| 80 | double size_mm, conststring32cxx . . $ conststring32# mark, bool garnish); |
| 81 | |
| 82 | autoMatrixcxx . . $ autoMatrix# Formant_to_Matrixcxx . . $ Formant_to_Matrix(7624c35d99f8fce7). (Formantcxx . . $ Formant# me, integercxx . . $ integer# iformant); |
| 83 | autoMatrixcxx . . $ autoMatrix# Formant_to_Matrix_bandwidthscxx . . $ Formant_to_Matrix_bandwidths(7624c35d99f8fce7). (Formantcxx . . $ Formant# me, integercxx . . $ integer# iformant); |
| 84 | void Formant_formula_frequenciescxx . . $ Formant_formula_frequencies(314195a2e8ee2927). (Formantcxx . . $ Formant# me, conststring32cxx . . $ conststring32# formula, Interpretercxx . . $ Interpreter# interpreter); |
| 85 | void Formant_formula_bandwidthscxx . . $ Formant_formula_bandwidths(314195a2e8ee2927). (Formantcxx . . $ Formant# me, conststring32cxx . . $ conststring32# formula, Interpretercxx . . $ Interpreter# interpreter); |
| 86 | |
| 87 | autoFormantcxx . . $ autoFormant# Formant_trackercxx . . $ Formant_tracker(4e742720fb596b63). (Formantcxx . . $ Formant# me, integercxx . . $ integer# numberOfTracks, |
| 88 | double refF1, double refF2, double refF3, double refF4, double refF5, |
| 89 | double dfCost, // per kHz |
| 90 | double bfCost, double octaveJumpCost); |
| 91 | |
| 92 | autoTablecxx . . $ autoTable# Formant_downto_Tablecxx . . $ Formant_downto_Table(79b9edfa34f9b49e). (Formantcxx . . $ Formant# me, bool includeFrameNumbers, |
| 93 | bool includeTimes, integercxx . . $ integer# timeDecimals, |
| 94 | bool includeIntensity, integercxx . . $ integer# intensityDecimals, |
| 95 | bool includeNumberOfFormants, integercxx . . $ integer# frequencyDecimals, |
| 96 | bool includeBandwidths); |
| 97 | void Formant_listcxx . . $ Formant_list(acc5c1edbce3e631). (Formantcxx . . $ Formant# me, bool includeFrameNumbers, |
| 98 | bool includeTimes, integercxx . . $ integer# timeDecimals, |
| 99 | bool includeIntensity, integercxx . . $ integer# intensityDecimals, |
| 100 | bool includeNumberOfFormants, integercxx . . $ integer# frequencyDecimals, |
| 101 | bool includeBandwidths); |
| 102 | |
| 103 | /* End of file Formant.h */ |
| 104 | #endif |