Debian Codegraph @

foned/SoundEditor.h

raw symbols SCIP
1 #cxx . . $ `<file>/foned/SoundEditor.h`/ifndef _SoundEditor_h_
2 #define _SoundEditor_h_cxx . . $ `foned/SoundEditor.h:2:9`!
3 /* SoundEditor.h
4 *
5 * Copyright (C) 1992-2005,2007,2009-2012,2014-2016,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 "LongSoundArea.h"cxx . . $ `<file>/foned/LongSoundArea.h`/
23 #include "SoundAnalysisArea.h"cxx . . $ `<file>/foned/SoundAnalysisArea.h`/
24
25 Thing_definecxx . . $ `sys/Thing.h:60:9`! (SoundEditor, FunctionEditor) {
26 DEFINE_FunctionAreacxx . . $ autoSoundArea# (1, SoundArea, soundArea)
27 DEFINE_FunctionAreacxx . . $ `foned/FunctionArea.h:209:9`! (2, SoundAnalysisArea, soundAnalysisArea)
28
29 void v1_dataChangedcxx . . $ structSoundEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) override {
30 SoundEditor_Parentcxx . . $ SoundEditor_Parent# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (sender);
31 Thing_castcxx . . $ `sys/Thing.h:246:9`! (SampledXY, soundOrLongSound, ourcxx . . $ `melder/melder.h:42:9`! data());
32 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (soundOrLongSound);
33 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (soundOrLongSound);
34 }
35 void v_createMenuItems_helpcxx . . $ structSoundEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu)
36 override;
37 void v_distributeAreascxx . . $ structSoundEditor#v_distributeAreas(49f6e7a06ebc5aa8). () override {
38 if (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). hasContentToShowcxx . . $ structSoundAnalysisArea#hasContentToShow(c9857a73d68e59ba). ()) {
39 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.5, 1.0);
40 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.5);
41 } else {
42 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 1.0);
43 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.0);
44 }
45 }
46 void v_drawcxx . . $ structSoundEditor#v_draw(49f6e7a06ebc5aa8). () override {
47 FunctionArea_prepareCanvascxx . . $ FunctionArea_prepareCanvas(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
48 if (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). instancePref_pulses_showcxx . . $ structSoundAnalysisArea#instancePref_pulses_show(50ce9a9e25b4a850).())
49 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). v_draw_analysis_pulsescxx . . $ structSoundAnalysisArea#v_draw_analysis_pulses(49f6e7a06ebc5aa8). ();
50 FunctionArea_drawInsidecxx . . $ FunctionArea_drawInside(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
51 if (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). hasContentToShowcxx . . $ structSoundAnalysisArea#hasContentToShow(c9857a73d68e59ba). ()) {
52 FunctionArea_prepareCanvascxx . . $ FunctionArea_prepareCanvas(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
53 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). v_draw_analysiscxx . . $ structSoundAnalysisArea#v_draw_analysis(49f6e7a06ebc5aa8). ();
54 }
55 }
56 void v_playcxx . . $ structSoundEditor#v_play(bc12c9ec15586e6a). (double startTime, double endTime) override {
57 SoundArea_playcxx . . $ SoundArea_play(8591d98d1e7b94a5). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), startTime, endTime);
58 }
59 void v_drawLegendscxx . . $ structSoundEditor#v_drawLegends(49f6e7a06ebc5aa8). () override {
60 const bool pulsesAreVisible = ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). hasPulsesToShowcxx . . $ structSoundAnalysisArea#hasPulsesToShow(c9857a73d68e59ba). ();
61 FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(),
62 pulsesAreVisible ? FunctionArea_legend_POLEScxx . . $ `foned/FunctionArea.h:247:10`! U" %%derived pulses" : nullptr,
63 Melder_GREYcxx . . $ Melder_GREY.,
64 FunctionArea_legend_WAVEFORMcxx . . $ `foned/FunctionArea.h:248:10`! U" ##modifiable sound",
65 DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false)
66 );
67 SoundAnalysisArea_drawDefaultLegendscxx . . $ SoundAnalysisArea_drawDefaultLegends(16a0e84e612eeb2). (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
68 }
69 };
70
71 autoSoundEditorcxx . . $ autoSoundEditor# SoundEditor_createcxx . . $ SoundEditor_create(2cb9346986abbe40). (
72 conststring32cxx . . $ conststring32# title,
73 SampledXYcxx . . $ SampledXY# data // either a Sound or a LongSound
74 );
75
76 /* End of file SoundEditor.h */
77 #endif