Debian Codegraph @

foned/AmplitudeTierEditor.cpp

raw symbols SCIP
1 /* AmplitudeTierEditor.cpp
2 *
3 * Copyright (C) 2003-2012,2014-2016,2018,2020-2022 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 #include "AmplitudeTierEditor.h"cxx . . $ `<file>/foned/AmplitudeTierEditor.h`/
20 #include "EditorM.h"cxx . . $ `<file>/sys/EditorM.h`/
21
22 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (AmplitudeTierEditor, RealTierEditor, 0);
23
24 static void HELP_AmplitudeTierHelpcxx . . $ HELP_AmplitudeTierHelp(2048896ba5748bf8). (AmplitudeTierEditorcxx . . $ AmplitudeTierEditor# /* me */, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
25 HELPcxx . . $ `sys/EditorM.h:631:9`! (U"AmplitudeTier")
26 }
27
28 void structAmplitudeTierEditorcxx . . $ structAmplitudeTierEditor# :: v_createMenuItems_helpcxx . . $ structAmplitudeTierEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) {
29 AmplitudeTierEditor_Parentcxx . . $ AmplitudeTierEditor_Parent# :: v_createMenuItems_helpcxx . . $ structFunctionEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (menu);
30 EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"AmplitudeTier help", 0, HELP_AmplitudeTierHelpcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
31 }
32
33 void structAmplitudeTierEditorcxx . . $ structAmplitudeTierEditor# :: v_playcxx . . $ structAmplitudeTierEditor#v_play(bc12c9ec15586e6a). (double startTime, double endTime) {
34 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).()) {
35 Sound_playPartcxx . . $ Sound_playPart(4a8b47ed00757136). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). soundcxx . . $ structSoundArea#sound(f0b31236b65da120).(), startTime, endTime, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this);
36 } else {
37 //AmplitudeTier_playPart (data, startTime, endTime, false);
38 }
39 }
40
41 autoAmplitudeTierEditorcxx . . $ autoAmplitudeTierEditor# AmplitudeTierEditor_createcxx . . $ AmplitudeTierEditor_create(d0c3991b4def49bc). (conststring32cxx . . $ conststring32# title, AmplitudeTiercxx . . $ AmplitudeTier# amplitudeTier, Soundcxx . . $ Sound# soundToCopy) {
42 try {
43 autoAmplitudeTierEditorcxx . . $ autoAmplitudeTierEditor# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (AmplitudeTierEditor);
44 mycxx . . $ `melder/melder.h:44:9`! realTierAreacxx . . $ structRealTierEditor#realTierArea(dcdc0120dce326ec).() =cxx . . $ autoSomeThing#`operator=`(ed6a1a4da6aedae3). AmplitudeTierArea_createcxx . . $ AmplitudeTierArea_create(46f32c15fe699c3e). (true, nullptr, me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
45 if (soundToCopy)
46 mycxx . . $ `melder/melder.h:44:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).() =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). SoundArea_createcxx . . $ SoundArea_create(4b60938fec9a8242). (false, soundToCopy, me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
47 FunctionEditor_initcxx . . $ FunctionEditor_init(719bc58b4917372e). (me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), title, amplitudeTier);
48 return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).;
49 } catch (MelderErrorcxx . . $ MelderError#) {
50 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"AmplitudeTier window not created.");
51 }
52 }
53
54 /* End of file AmplitudeTierEditor.cpp */