| 1 | /* FormantPath_def.h |
| 2 | * |
| 3 | * Copyright (C) 2020,2022-2023 David Weenink |
| 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. See the GNU |
| 13 | * 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 | #define ooSTRUCTcxx . . $ `LPC/FormantPath_def.h:19:9`! FormantPath |
| 20 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (FormantPath, Sampled) |
| 21 | |
| 22 | oo_COLLECTION_OFcxx . . $ `sys/oo.h:150:9`! (OrderedOf, formantCandidates, Formant, 2) |
| 23 | oo_VECcxx . . $ `sys/oo.h:74:9`! (ceilings, formantCandidates.size) |
| 24 | |
| 25 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 26 | oo_OBJECTcxx . . $ `sys/oo.h:149:9`! (TextGrid, 0, path) |
| 27 | autoINTVECcxx . . $ autoINTVEC# dummyPathcxx . . $ structFormantPath#dummyPath.; |
| 28 | #endif |
| 29 | |
| 30 | #if oo_READINGcxx . . $ `sys/oo.h:235:9`! |
| 31 | oo_VERSION_UNTIL (1) |
| 32 | oo_INTVEC (dummyPath, nx) |
| 33 | path = FormantPath_to_TextGrid_version0 (this, dummyPath.get()); |
| 34 | dummyPath. reset(); |
| 35 | oo_VERSION_ELSE |
| 36 | oo_OBJECT (TextGrid, 0, path) |
| 37 | oo_VERSION_END |
| 38 | #endif |
| 39 | |
| 40 | #if oo_WRITINGcxx . . $ `sys/oo.h:238:9`! || oo_COMPARINGcxx . . $ `sys/oo.h:233:9`! |
| 41 | oo_OBJECT (TextGrid, 0, path) |
| 42 | #endif |
| 43 | |
| 44 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 45 | void v1_infocxx . . $ structFormantPath#v1_info(49f6e7a06ebc5aa8). () |
| 46 | override; |
| 47 | int v_domainQuantitycxx . . $ structFormantPath#v_domainQuantity(455f465bc33b4cdf). () const |
| 48 | override { return MelderQuantity_TIME_SECONDScxx . . $ `melder/melder_quantity.h:22:9`!; } |
| 49 | conststring32cxx . . $ conststring32# v_getUnitTextcxx . . $ structFormantPath#v_getUnitText(4575e0692fb152c1). (integercxx . . $ integer# level, int unit, uint32cxx . . $ uint32# flags) const |
| 50 | override; |
| 51 | double v_getValueAtSamplecxx . . $ structFormantPath#v_getValueAtSample(8bbfc6ce471470c9). (integercxx . . $ integer# sampleNumber, integercxx . . $ integer# level, int unit) const |
| 52 | override; |
| 53 | conststring32cxx . . $ conststring32# v_getIndexTextcxx . . $ structFormantPath#v_getIndexText(d608cbfe2b610d03). () const |
| 54 | override { return U"frame number"; } |
| 55 | conststring32cxx . . $ conststring32# v_getNxTextcxx . . $ structFormantPath#v_getNxText(d608cbfe2b610d03). () const |
| 56 | override { return U"the number of frames"; } |
| 57 | #endif |
| 58 | |
| 59 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (FormantPath) |
| 60 | #undef ooSTRUCTcxx . . $ `LPC/FormantPath_def.h:19:9`! |
| 61 | |
| 62 | /* End of FormantPath_def.h */ |