| 1 | #cxx . . $ `<file>/foned/ManipulationEditor.h`/ifndef _ManipulationEditor_h_ |
| 2 | #define _ManipulationEditor_h_cxx . . $ `foned/ManipulationEditor.h:2:9`! |
| 3 | /* ManipulationEditor.h |
| 4 | * |
| 5 | * Copyright (C) 1992-2005,2007,2009-2013,2015,2016,2018,2020-2023 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 "SoundArea.h"cxx . . $ `<file>/foned/SoundArea.h`/ |
| 23 | #include "PointArea.h"cxx . . $ `<file>/foned/PointArea.h`/ |
| 24 | #include "PitchTierArea.h"cxx . . $ `<file>/foned/PitchTierArea.h`/ |
| 25 | #include "DurationTierArea.h"cxx . . $ `<file>/foned/DurationTierArea.h`/ |
| 26 | #include "Manipulation.h"cxx . . $ `<file>/fon/Manipulation.h`/ |
| 27 | |
| 28 | #include "ManipulationEditor_enums.h"cxx . . $ `<file>/foned/ManipulationEditor_enums.h`/ |
| 29 | |
| 30 | Thing_definecxx . . $ SomeThingHandle# (ManipulationSoundArea, SoundArea) { |
| 31 | }; |
| 32 | DEFINE_FunctionArea_createcxx . . $ FunctionEditor# (ManipulationSoundArea, Sound) |
| 33 | |
| 34 | Thing_definecxx . . $ classManipulationPulsesArea. (ManipulationPulsesArea, PointArea) { |
| 35 | PointProcesscxx . . $ PointProcess# pulsescxx . . $ structManipulationPulsesArea#pulses(43db3c50dce602ea).() { return static_cast <PointProcesscxx . . $ PointProcess#> (ourcxx . . $ `melder/melder.h:42:9`! functioncxx . . $ structFunctionArea#function(8985a8e07d4255bd).()); } |
| 36 | void v_createMenuscxx . . $ structManipulationPulsesArea#v_createMenus(49f6e7a06ebc5aa8). () |
| 37 | override; |
| 38 | }; |
| 39 | DEFINE_FunctionArea_createcxx . . $ FunctionEditor# (ManipulationPulsesArea, PointProcess) |
| 40 | |
| 41 | Thing_definecxx . . $ classManipulationPitchTierArea. (ManipulationPitchTierArea, PitchTierArea) { |
| 42 | PitchTiercxx . . $ PitchTier# pitchcxx . . $ structManipulationPitchTierArea#pitch(f405ba4cd3cfcea5).() { return static_cast <PitchTiercxx . . $ PitchTier#> (ourcxx . . $ `melder/melder.h:42:9`! functioncxx . . $ structFunctionArea#function(8985a8e07d4255bd).()); } |
| 43 | ManipulationPulsesAreacxx . . $ ManipulationPulsesArea# borrowedPulsesAreacxx . . $ structManipulationPitchTierArea#borrowedPulsesArea.; |
| 44 | void v_drawInsidecxx . . $ structManipulationPitchTierArea#v_drawInside(49f6e7a06ebc5aa8). () |
| 45 | override; |
| 46 | void v_createMenuscxx . . $ structManipulationPitchTierArea#v_createMenus(49f6e7a06ebc5aa8). () |
| 47 | override; |
| 48 | #include "ManipulationEditor_prefs.h"cxx . . $ `<file>/foned/ManipulationEditor_prefs.h`/ |
| 49 | }; |
| 50 | DEFINE_FunctionArea_createcxx . . $ ManipulationPitchTierArea_create(1765152599996eaf). (ManipulationPitchTierArea, PitchTier) |
| 51 | |
| 52 | Thing_definecxx . . $ ManipulationDurationTierAreaHandle# (ManipulationDurationTierArea, DurationTierArea) { |
| 53 | DurationTiercxx . . $ DurationTier# durationcxx . . $ structManipulationDurationTierArea#duration(aaa64ef72daaef5f).() { return static_cast <DurationTiercxx . . $ DurationTier#> (ourcxx . . $ `melder/melder.h:42:9`! functioncxx . . $ structFunctionArea#function(8985a8e07d4255bd).()); } |
| 54 | void v_drawInsidecxx . . $ structManipulationDurationTierArea#v_drawInside(49f6e7a06ebc5aa8). () |
| 55 | override; |
| 56 | void v_createMenuscxx . . $ structManipulationDurationTierArea#v_createMenus(49f6e7a06ebc5aa8). () |
| 57 | override; |
| 58 | }; |
| 59 | DEFINE_FunctionArea_createcxx . . $ autoSomeThing#static_cast_move(8f979c7064dbabcf). (ManipulationDurationTierArea, DurationTier) |
| 60 | |
| 61 | |
| 62 | Thing_definecxx . . $ constManipulationEditor# (ManipulationEditor, FunctionEditor) { |
| 63 | DEFINE_FunctionAreacxx . . $ structManipulationEditor#soundArea(c09f9c582d02a6ac). (1, ManipulationSoundArea, soundArea) |
| 64 | DEFINE_FunctionAreacxx . . $ autoManipulationPitchTierArea# (2, ManipulationPitchTierArea, pitchTierArea) |
| 65 | DEFINE_FunctionAreacxx . . $ autoManipulationDurationTierArea# (3, ManipulationDurationTierArea, durationTierArea) |
| 66 | DEFINE_FunctionAreacxx . . $ structManipulationEditor#pulsesArea(8fa00db8ac63068). (4, ManipulationPulsesArea, pulsesArea) |
| 67 | |
| 68 | Manipulationcxx . . $ Manipulation# manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() { return static_cast <Manipulationcxx . . $ Manipulation#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).()); } |
| 69 | |
| 70 | void v1_dataChangedcxx . . $ structManipulationEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) override { |
| 71 | ManipulationEditor_Parentcxx . . $ ManipulationEditor_Parent# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (sender); |
| 72 | ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structManipulationEditor#soundArea(c09f9c582d02a6ac).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (ourcxx . . $ `melder/melder.h:42:9`! manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() -> soundcxx . . $ structManipulation#sound..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 73 | ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structManipulationEditor#pitchTierArea(aa2ef5e81631f4e0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (ourcxx . . $ `melder/melder.h:42:9`! manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() -> pitchcxx . . $ structManipulation#pitch..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 74 | if (! ourcxx . . $ `melder/melder.h:42:9`! manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() -> durationcxx . . $ structManipulation#duration.) // repair an old-fashioned Manipulation that has a PitchTier only |
| 75 | ourcxx . . $ `melder/melder.h:42:9`! manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() -> durationcxx . . $ structManipulation#duration. =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). DurationTier_createcxx . . $ DurationTier_create(a86647bd247c7eaf). (ourcxx . . $ `melder/melder.h:42:9`! manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() -> xmincxx . . $ structFunction#xmin., ourcxx . . $ `melder/melder.h:42:9`! manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() -> xmaxcxx . . $ structFunction#xmax.); |
| 76 | ourcxx . . $ `melder/melder.h:42:9`! durationTierAreacxx . . $ structManipulationEditor#durationTierArea(a389e7b6d5a427f5).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (ourcxx . . $ `melder/melder.h:42:9`! manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() -> durationcxx . . $ structManipulation#duration..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 77 | ourcxx . . $ `melder/melder.h:42:9`! pulsesAreacxx . . $ structManipulationEditor#pulsesArea(8fa00db8ac63068).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (ourcxx . . $ `melder/melder.h:42:9`! manipulationcxx . . $ structManipulationEditor#manipulation(67cfb20179997bdc).() -> pulsescxx . . $ structManipulation#pulses..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 78 | } |
| 79 | |
| 80 | autoPointProcesscxx . . $ autoPointProcess# previousPulsescxx . . $ structManipulationEditor#previousPulses.; |
| 81 | autoPitchTiercxx . . $ autoPitchTier# previousPitchcxx . . $ structManipulationEditor#previousPitch.; |
| 82 | autoDurationTiercxx . . $ autoDurationTier# previousDurationcxx . . $ structManipulationEditor#previousDuration.; |
| 83 | int synthesisMethodcxx . . $ structManipulationEditor#synthesisMethod.; |
| 84 | GuiMenuItemcxx . . $ GuiMenuItem# synthPulsesButtoncxx . . $ structManipulationEditor#synthPulsesButton., synthPulsesHumButtoncxx . . $ structManipulationEditor#synthPulsesHumButton.; |
| 85 | GuiMenuItemcxx . . $ GuiMenuItem# synthPulsesLpcButtoncxx . . $ structManipulationEditor#synthPulsesLpcButton.; |
| 86 | GuiMenuItemcxx . . $ GuiMenuItem# synthPitchButtoncxx . . $ structManipulationEditor#synthPitchButton., synthPitchHumButtoncxx . . $ structManipulationEditor#synthPitchHumButton.; |
| 87 | GuiMenuItemcxx . . $ GuiMenuItem# synthPulsesPitchButtoncxx . . $ structManipulationEditor#synthPulsesPitchButton., synthPulsesPitchHumButtoncxx . . $ structManipulationEditor#synthPulsesPitchHumButton.; |
| 88 | GuiMenuItemcxx . . $ GuiMenuItem# synthOverlapAddNodurButtoncxx . . $ structManipulationEditor#synthOverlapAddNodurButton., synthOverlapAddButtoncxx . . $ structManipulationEditor#synthOverlapAddButton.; |
| 89 | GuiMenuItemcxx . . $ GuiMenuItem# synthPitchLpcButtoncxx . . $ structManipulationEditor#synthPitchLpcButton.; |
| 90 | |
| 91 | Graphics_Viewportcxx . . $ Graphics_Viewport# insetcxx . . $ structManipulationEditor#inset.; |
| 92 | |
| 93 | void v_createMenuscxx . . $ structManipulationEditor#v_createMenus(49f6e7a06ebc5aa8). () |
| 94 | override; |
| 95 | void v_createMenuItems_helpcxx . . $ structManipulationEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) |
| 96 | override; |
| 97 | void v_distributeAreascxx . . $ structManipulationEditor#v_distributeAreas(49f6e7a06ebc5aa8). () override { |
| 98 | ourcxx . . $ `melder/melder.h:42:9`! pulsesAreacxx . . $ structManipulationEditor#pulsesArea(8fa00db8ac63068).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.67, 1.00); |
| 99 | ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structManipulationEditor#soundArea(c09f9c582d02a6ac).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.67, 1.00); |
| 100 | ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structManipulationEditor#pitchTierArea(aa2ef5e81631f4e0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.17, 0.67); |
| 101 | ourcxx . . $ `melder/melder.h:42:9`! durationTierAreacxx . . $ structManipulationEditor#durationTierArea(a389e7b6d5a427f5).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.17); |
| 102 | } |
| 103 | void v_drawcxx . . $ structManipulationEditor#v_draw(49f6e7a06ebc5aa8). () override { |
| 104 | FunctionArea_drawTwocxx . . $ FunctionArea_drawTwo(7a6077e804b01a0a). (ourcxx . . $ `melder/melder.h:42:9`! pulsesAreacxx . . $ structManipulationEditor#pulsesArea(8fa00db8ac63068).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structManipulationEditor#soundArea(c09f9c582d02a6ac).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 105 | FunctionArea_drawOnecxx . . $ FunctionArea_drawOne(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structManipulationEditor#pitchTierArea(aa2ef5e81631f4e0).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 106 | FunctionArea_drawOnecxx . . $ FunctionArea_drawOne(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! durationTierAreacxx . . $ structManipulationEditor#durationTierArea(a389e7b6d5a427f5).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 107 | } |
| 108 | void v_updateMenuItemscxx . . $ structManipulationEditor#v_updateMenuItems(49f6e7a06ebc5aa8). () |
| 109 | override; |
| 110 | void v_playcxx . . $ structManipulationEditor#v_play(bc12c9ec15586e6a). (double tmin, double tmax) |
| 111 | override; |
| 112 | void v_drawLegendscxx . . $ structManipulationEditor#v_drawLegends(49f6e7a06ebc5aa8). () override { |
| 113 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structManipulationEditor#soundArea(c09f9c582d02a6ac).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 114 | FunctionArea_legend_WAVEFORMcxx . . $ `foned/FunctionArea.h:248:10`! U" %%non-modifiable mono copy of sound", |
| 115 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structManipulationEditor#soundArea(c09f9c582d02a6ac).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false), |
| 116 | FunctionArea_legend_POLEScxx . . $ `foned/FunctionArea.h:247:10`! U" ##modifiable pulses", |
| 117 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! pulsesAreacxx . . $ structManipulationEditor#pulsesArea(8fa00db8ac63068).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 118 | ); |
| 119 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structManipulationEditor#pitchTierArea(aa2ef5e81631f4e0).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 120 | FunctionArea_legend_SPECKLEScxx . . $ `foned/FunctionArea.h:245:10`! U" %%pitch derived from pulses", |
| 121 | Melder_GREYcxx . . $ Melder_GREY., |
| 122 | FunctionArea_legend_LINES_SPECKLEScxx . . $ `foned/FunctionArea.h:246:10`! U" ##manipulatable pitch", |
| 123 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! pitchTierAreacxx . . $ structManipulationEditor#pitchTierArea(aa2ef5e81631f4e0).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 124 | ); |
| 125 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! durationTierAreacxx . . $ structManipulationEditor#durationTierArea(a389e7b6d5a427f5).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 126 | FunctionArea_legend_LINES_SPECKLEScxx . . $ `foned/FunctionArea.h:246:10`! U" ##manipulatable duration", |
| 127 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! durationTierAreacxx . . $ structManipulationEditor#durationTierArea(a389e7b6d5a427f5).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 128 | ); |
| 129 | } |
| 130 | }; |
| 131 | |
| 132 | autoManipulationEditorcxx . . $ autoManipulationEditor# ManipulationEditor_createcxx . . $ ManipulationEditor_create(3553cdab87a8e341). (conststring32cxx . . $ conststring32# title, Manipulationcxx . . $ Manipulation# manipulation); |
| 133 | |
| 134 | /* End of file ManipulationEditor.h */ |
| 135 | #endif |