Debian Codegraph @

dwtools/Sounds_to_DTW.cpp

raw symbols SCIP
1 /* Sounds_to_DTW.cpp
2 *
3 * Copyright (C) 2012-2019 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 #include "Sound_to_MFCC.h"cxx . . $ `<file>/dwtools/Sound_to_MFCC.h`/
20 #include "Sounds_to_DTW.h"cxx . . $ `<file>/dwtools/Sounds_to_DTW.h`/
21 #include "CCs_to_DTW.h"cxx . . $ `<file>/dwtools/CCs_to_DTW.h`/
22
23 autoDTWcxx . . $ autoDTW# Sounds_to_DTWcxx . . $ Sounds_to_DTW(9ed3e5d881fdfab7). (Soundcxx . . $ Sound# me, Soundcxx . . $ Sound# thee, double analysisWidth, double dt, double band, int slope) {
24 try {
25 constexpr integercxx . . $ integer# numberOfCoefficients = 12;
26 constexpr double fmin_mel = 100.0, df_mel = 100.0, fmax_mel = 0.0;
27 //TRACE
28 tracecxx . . $ `melder/melder_debug.h:60:10`!(1);
29 autoMFCCcxx . . $ autoMFCC# mfcc_me = Sound_to_MFCCcxx . . $ Sound_to_MFCC(924d2b2502cbf775). (me, numberOfCoefficients, analysisWidth, dt, fmin_mel, fmax_mel, df_mel);
30 tracecxx . . $ `melder/melder_debug.h:60:10`!(2);
31 autoMFCCcxx . . $ autoMFCC# mfcc_thee = Sound_to_MFCCcxx . . $ Sound_to_MFCC(924d2b2502cbf775). (thee, numberOfCoefficients, analysisWidth, dt, fmin_mel, fmax_mel, df_mel);
32 tracecxx . . $ `melder/melder_debug.h:60:10`!(3);
33 constexpr double wc = 1.0, wle = 0.0, wr = 0.0, wer = 0.0, dtr = 0.0;
34 autoDTWcxx . . $ autoDTW# him = CCs_to_DTWcxx . . $ CCs_to_DTW(7153c7381f8edd6c). (mfcc_me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mfcc_thee.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), wc, wle, wr, wer, dtr);
35 tracecxx . . $ `melder/melder_debug.h:60:10`!(4);
36 autoPolygoncxx . . $ autoPolygon# p = DTW_to_Polygoncxx . . $ DTW_to_Polygon(57d3a1deeef0f568). (him.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), band, slope);
37 tracecxx . . $ `melder/melder_debug.h:60:10`!(5);
38 DTW_Polygon_findPathInsidecxx . . $ DTW_Polygon_findPathInside(df18308236acd980). (him.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), p.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), slope, 0);
39 tracecxx . . $ `melder/melder_debug.h:60:10`!(6);
40 return himcxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).;
41 } catch (MelderErrorcxx . . $ MelderError#) {
42 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (me, U": no DTW created.");
43 }
44 }
45
46 /* End of file Sounds_to_DTW.cpp */