| 1 | /* Sound_to_Formant.h |
| 2 | * |
| 3 | * Copyright (C) 1992-2011,2015,2019 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #include "Sound.h"cxx . . $ `<file>/fon/Sound.h`/ |
| 20 | #include "Formant.h"cxx . . $ `<file>/fon/Formant.h`/ |
| 21 | |
| 22 | autoFormantcxx . . $ autoFormant# Sound_to_Formant_anycxx . . $ Sound_to_Formant_any(a5907595092e5f1a). (Soundcxx . . $ Sound# me, double timeStep, integercxx . . $ integer# numberOfPoles, double maximumFrequency, |
| 23 | double halfdt_window, int which, double preemphasisFrequency, double safetyMargin); |
| 24 | /* |
| 25 | Which = 1: Burg. |
| 26 | Which = 2: Split-Levinson |
| 27 | */ |
| 28 | |
| 29 | autoFormantcxx . . $ autoFormant# Sound_to_Formant_burgcxx . . $ Sound_to_Formant_burg(d30006947cf564ad). (Soundcxx . . $ Sound# me, double timeStep, double maximumNumberOfFormants, |
| 30 | double maximumFormantFrequency, double windowLength, double preemphasisFrequency); |
| 31 | /* Throws away all formants below 50 Hz and above Nyquist minus 50 Hz. */ |
| 32 | |
| 33 | autoFormantcxx . . $ autoFormant# Sound_to_Formant_keepAllcxx . . $ Sound_to_Formant_keepAll(d30006947cf564ad). (Soundcxx . . $ Sound# me, double timeStep, double maximumNumberOfFormants, |
| 34 | double maximumFormantFrequency, double windowLength, double preemphasisFrequency); |
| 35 | /* Same as previous, but keeps all formants. Good for resynthesis. */ |
| 36 | |
| 37 | autoFormantcxx . . $ autoFormant# Sound_to_Formant_willemscxx . . $ Sound_to_Formant_willems(d30006947cf564ad). (Soundcxx . . $ Sound# me, double timeStep, double numberOfFormants, |
| 38 | double maximumFormantFrequency, double windowLength, double preemphasisFrequency); |
| 39 | |
| 40 | /* End of file Sound_to_Formant.h */ |