Debian Codegraph @

foned/PitchTierEditor.h

raw symbols SCIP
1 #cxx . . $ `<file>/foned/PitchTierEditor.h`/ifndef _PitchTierEditor_h_
2 #define _PitchTierEditor_h_cxx . . $ `foned/PitchTierEditor.h:2:9`!
3 /* PitchTierEditor.h
4 *
5 * Copyright (C) 1992-2005,2007,2009-2012,2015-2018,2020-2022 Paul Boersma
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.
15 * See the GNU 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 #include "FunctionEditor.h"cxx . . $ `<file>/foned/FunctionEditor.h`/
22 #include "PitchTierArea.h"cxx . . $ `<file>/foned/PitchTierArea.h`/
23 #include "SoundArea.h"cxx . . $ `<file>/foned/SoundArea.h`/
24 #include "PitchTier_to_Sound.h"cxx . . $ `<file>/fon/PitchTier_to_Sound.h`/
25
26 Thing_definecxx . . $ classPitchTierEditor. (PitchTierEditor, FunctionEditor) {
27 DEFINE_FunctionAreacxx . . $ `foned/FunctionArea.h:209:9`! (1, PitchTierArea, pitchTierArea)
28 DEFINE_FunctionAreacxx . . $ `foned/FunctionArea.h:209:9`! (2, SoundArea, soundArea)
29
30 void v1_dataChangedcxx . . $ structPitchTierEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) override {
31 ourcxx . . $ `melder/melder.h:42:9`! PitchTierEditor_Parentcxx . . $ PitchTierEditor_Parent# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (sender);
32 ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structPitchTierEditor#pitchTierArea(5efea739f7a1b3bd).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (static_cast <PitchTiercxx . . $ PitchTier#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).()));
33 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).())
34 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (nullptr); // BUG: the copy probably doesn't change
35 }
36 void v_distributeAreascxx . . $ structPitchTierEditor#v_distributeAreas(49f6e7a06ebc5aa8). () override {
37 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).()) {
38 ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structPitchTierEditor#pitchTierArea(5efea739f7a1b3bd).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.618);
39 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.618, 1.0);
40 } else {
41 ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structPitchTierEditor#pitchTierArea(5efea739f7a1b3bd).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 1.0);
42 }
43 }
44 void v_createMenuItems_helpcxx . . $ structPitchTierEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu)
45 override;
46 void v_playcxx . . $ structPitchTierEditor#v_play(bc12c9ec15586e6a). (double startTime, double endTime) override {
47 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).())
48 Sound_playPartcxx . . $ Sound_playPart(4a8b47ed00757136). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). soundcxx . . $ structSoundArea#sound(f0b31236b65da120).(), startTime, endTime, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this);
49 else
50 PitchTier_playPartcxx . . $ PitchTier_playPart(1fd30d1cc30de6fd). (ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structPitchTierEditor#pitchTierArea(5efea739f7a1b3bd).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). pitchTiercxx . . $ structPitchTierArea#pitchTier(f405ba4cd3cfcea5).(), startTime, endTime, false, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this);
51 }
52 void v_drawLegendscxx . . $ structPitchTierEditor#v_drawLegends(49f6e7a06ebc5aa8). () override {
53 FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structPitchTierEditor#pitchTierArea(5efea739f7a1b3bd).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(),
54 FunctionArea_legend_LINES_SPECKLEScxx . . $ `foned/FunctionArea.h:246:10`! U" ##modifiable PitchTier",
55 DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structPitchTierEditor#pitchTierArea(5efea739f7a1b3bd).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false)
56 );
57 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).())
58 FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(),
59 FunctionArea_legend_WAVEFORMcxx . . $ `foned/FunctionArea.h:248:10`! U" %%non-modifiable copy of sound",
60 DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPitchTierEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false)
61 );
62 }
63 };
64
65 autoPitchTierEditorcxx . . $ autoPitchTierEditor# PitchTierEditor_createcxx . . $ PitchTierEditor_create(cea62f872858ba2f). (conststring32cxx . . $ conststring32# title, PitchTiercxx . . $ PitchTier# pitch, Soundcxx . . $ Sound# optionalSoundToCopy);
66
67 /* End of file PitchTierEditor.h */
68 #endif