| 1 | /* LFCC.cpp |
| 2 | * |
| 3 | * Linear Frequency Cepstral Coefficients class. |
| 4 | * |
| 5 | * Copyright (C) 1993-2017 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 | /* |
| 22 | djmw 20001228 |
| 23 | djmw 20020813 GPL header |
| 24 | djmw 20110304 Thing_new |
| 25 | */ |
| 26 | |
| 27 | #include "LFCC.h"cxx . . $ `<file>/dwtools/LFCC.h`/ |
| 28 | |
| 29 | Thing_implementcxx . . $ `sys/Thing.h:65:9`! (LFCC, CC, 1); |
| 30 | |
| 31 | autoLFCCcxx . . $ autoLFCC# LFCC_createcxx . . $ LFCC_create(371f9344300916e6). (double tmin, double tmax, integercxx . . $ integer# nt, double dt, double t1, integercxx . . $ integer# maximumNumberOfCoefficients, double fmin, double fmax) { |
| 32 | try { |
| 33 | autoLFCCcxx . . $ autoLFCC# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (LFCC); |
| 34 | CC_initcxx . . $ CC_init(7fa60628e323f54f). (me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), tmin, tmax, nt, dt, t1, maximumNumberOfCoefficients, fmin, fmax); |
| 35 | return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).; |
| 36 | } catch (MelderErrorcxx . . $ MelderError#) { |
| 37 | Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"LFCC not created."); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /* End of file LFCC.cpp */ |