| 1 | #cxx . . $ `<file>/LPC/LPC_and_Formant.h`/ifndef _LPC_and_Formant_h_ |
| 2 | #define _LPC_and_Formant_h_cxx . . $ `LPC/LPC_and_Formant.h:2:10`! |
| 3 | /* LPC_and_Formant.h |
| 4 | * |
| 5 | * Copyright (C) 1994-2025 David Weenink |
| 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. See the GNU |
| 15 | * 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 "LPC.h"cxx . . $ `<file>/LPC/LPC.h`/ |
| 22 | #include "Roots.h"cxx . . $ `<file>/dwsys/Roots.h`/ |
| 23 | #include "Formant.h"cxx . . $ `<file>/fon/Formant.h`/ |
| 24 | |
| 25 | inline integercxx . . $ integer# numberOfFormantsFromNumberOfCoefficients2cxx . . $ numberOfFormantsFromNumberOfCoefficients2(d0157cb6947e575f). (integercxx . . $ integer# maxnCoefficients, double margin) { |
| 26 | return ( margin == 0.0 ? maxnCoefficients : (maxnCoefficients + 1) / 2 ); |
| 27 | } |
| 28 | |
| 29 | inline integercxx . . $ integer# numberOfPolesFromNumberOfFormants2cxx . . $ numberOfPolesFromNumberOfFormants2(a6e4a4c8b00c35a3). (double numberOfFormants) { |
| 30 | return 2.0 * numberOfFormants; |
| 31 | } |
| 32 | |
| 33 | void Formant_Frame_initcxx . . $ Formant_Frame_init(c15ad6279e61c40d). (Formant_Framecxx . . $ Formant_Frame# me, integercxx . . $ integer# numberOfFormants); |
| 34 | |
| 35 | void LPC_into_Formantcxx . . $ LPC_into_Formant(93cc955d6b6c1ef9). (constLPCcxx . . $ constLPC# me, mutableFormantcxx . . $ mutableFormant# thee, double margin); |
| 36 | |
| 37 | autoFormantcxx . . $ autoFormant# LPC_to_Formantcxx . . $ LPC_to_Formant(6c989ebfc69f4efc). (constLPCcxx . . $ constLPC# me, double margin); |
| 38 | |
| 39 | autoLPCcxx . . $ autoLPC# Formant_to_LPCcxx . . $ Formant_to_LPC(d5e8f4892869150a). (constFormantcxx . . $ constFormant# me, double samplingPeriod); |
| 40 | |
| 41 | void LPC_Frame_into_Formant_Framecxx . . $ LPC_Frame_into_Formant_Frame(dfd7bec558386286). (constLPC_Framecxx . . $ constLPC_Frame# me, Formant_Framecxx . . $ Formant_Frame# thee, double samplingPeriod, double margin); |
| 42 | |
| 43 | void LPC_Frame_into_Formant_Framecxx . . $ LPC_Frame_into_Formant_Frame(924e0a11d6140f04). (constLPC_Framecxx . . $ constLPC_Frame# me, Formant_Framecxx . . $ Formant_Frame# thee, double samplingPeriod, |
| 44 | double margin, Polynomialcxx . . $ Polynomial# p, Rootscxx . . $ Roots# roots, VECcxx . . $ VEC# polynomialIntoRootsWorkspace); |
| 45 | |
| 46 | void Formant_Frame_into_LPC_Framecxx . . $ Formant_Frame_into_LPC_Frame(95fe1d925a21a5f7). (constFormant_Framecxx . . $ constFormant_Frame# me, LPC_Framecxx . . $ LPC_Frame# thee, double samplingPeriod); |
| 47 | |
| 48 | void Formant_Frame_scalecxx . . $ Formant_Frame_scale(71451262e0ce19ba). (Formant_Framecxx . . $ Formant_Frame# me, double scale); |
| 49 | |
| 50 | #endif /* _LPC_and_Formant_h_ */ |