| 1 | /* Formant_def.h |
| 2 | * |
| 3 | * Copyright (C) 1992-2005,2008,2011,2015-2020,2022,2023 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 | |
| 20 | #define ooSTRUCTcxx . . $ `fon/Formant_def.h:20:9`! Formant_Formant |
| 21 | oo_DEFINE_STRUCTcxx . . $ `sys/oo.h:159:9`! (Formant_Formant) |
| 22 | |
| 23 | #if oo_READINGcxx . . $ `sys/oo.h:235:9`! |
| 24 | oo_VERSION_UNTIL (2) |
| 25 | oo_FLOAT (frequency) |
| 26 | oo_FLOAT (bandwidth) |
| 27 | oo_VERSION_ELSE |
| 28 | oo_DOUBLE (frequency) |
| 29 | oo_DOUBLE (bandwidth) |
| 30 | oo_VERSION_END |
| 31 | #else |
| 32 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (frequency) |
| 33 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (bandwidth) |
| 34 | #endif |
| 35 | |
| 36 | oo_END_STRUCTcxx . . $ `sys/oo.h:163:9`! (Formant_Formant) |
| 37 | #undef ooSTRUCTcxx . . $ `fon/Formant_def.h:20:9`! |
| 38 | |
| 39 | |
| 40 | |
| 41 | #define ooSTRUCTcxx . . $ `fon/Formant_def.h:41:9`! Formant_Frame |
| 42 | oo_DEFINE_STRUCTcxx . . $ `sys/oo.h:159:9`! (Formant_Frame) |
| 43 | |
| 44 | oo_FROMcxx . . $ `sys/oo.h:202:9`! (1) |
| 45 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (intensity) |
| 46 | oo_ENDFROMcxx . . $ `sys/oo.h:203:9`! |
| 47 | |
| 48 | oo_INTEGER16cxx . . $ `sys/oo.h:46:9`! (numberOfFormants) |
| 49 | oo_STRUCTVECcxx . . $ `sys/oo.h:146:9`! (Formant_Formant, formant, numberOfFormants) |
| 50 | |
| 51 | oo_END_STRUCTcxx . . $ `sys/oo.h:163:9`! (Formant_Frame) |
| 52 | #undef ooSTRUCTcxx . . $ `fon/Formant_def.h:41:9`! |
| 53 | |
| 54 | |
| 55 | |
| 56 | #define ooSTRUCTcxx . . $ `fon/Formant_def.h:56:9`! Formant |
| 57 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (Formant, Sampled) |
| 58 | |
| 59 | oo_INT16cxx . . $ `sys/oo.h:51:9`! (maxnFormants) |
| 60 | oo_STRUCTVECcxx . . $ `sys/oo.h:146:9`! (Formant_Frame, frames, nx) |
| 61 | |
| 62 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 63 | void v1_infocxx . . $ structFormant#v1_info(49f6e7a06ebc5aa8). () |
| 64 | override; |
| 65 | int v_domainQuantitycxx . . $ structFormant#v_domainQuantity(455f465bc33b4cdf). () const |
| 66 | override { return MelderQuantity_TIME_SECONDScxx . . $ `melder/melder_quantity.h:22:9`!; } |
| 67 | double v_getValueAtSamplecxx . . $ structFormant#v_getValueAtSample(8bbfc6ce471470c9). (integercxx . . $ integer# iframe, integercxx . . $ integer# which, int units) const |
| 68 | override; |
| 69 | #endif |
| 70 | |
| 71 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (Formant) |
| 72 | #undef ooSTRUCTcxx . . $ `fon/Formant_def.h:56:9`! |
| 73 | |
| 74 | |
| 75 | /* End of file Formant_def.h */ |