Debian Codegraph @

LPC/FormantPathArea.cpp

raw symbols SCIP
1 /* FormantPathArea.cpp
2 *
3 * Copyright (C) 2020-2023 David Weenink, 2022,2024 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 "FormantPathArea.h"cxx . . $ `<file>/LPC/FormantPathArea.h`/
20 #include "EditorM.h"cxx . . $ `<file>/sys/EditorM.h`/
21
22 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (FormantPathArea, SoundAnalysisArea, 0);
23 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (FormantPathArea_without_Sound, FormantPathArea, 0);
24
25 #include "Prefs_define.h"cxx . . $ `<file>/sys/Prefs_define.h`/
26 #include "FormantPathArea_prefs.h"cxx . . $ `<file>/LPC/FormantPathArea_prefs.h`/
27 #include "Prefs_install.h"cxx . . $ `<file>/sys/Prefs_install.h`/
28 #include "FormantPathArea_prefs.h"cxx . . $ `<file>/LPC/FormantPathArea_prefs.h`/
29 #include "Prefs_copyToInstance.h"cxx . . $ `<file>/sys/Prefs_copyToInstance.h`/
30 #include "FormantPathArea_prefs.h"cxx . . $ `<file>/LPC/FormantPathArea_prefs.h`/
31
32 void structFormantPathAreacxx . . $ structFormantPathArea# :: v_formantsInfocxx . . $ structFormantPathArea#v_formantsInfo(83f5f38750778ac8). () const {
33 /* Formants flag: */
34 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant show: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_showcxx . . $ structSoundAnalysisArea#instancePref_formant_show(50ce9a9e25b4a850).());
35 /* Formant settings: */
36 if (formantPathAnalysisParametersKnowncxx . . $ structFormantPathArea#formantPathAnalysisParametersKnown.) {
37 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant analysis parameters are known from the last analysis within the editor");
38 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant time step: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_timeStepcxx . . $ structFormantPathArea#instancePref_formant_path_timeStep(21b6c25e127938e2).(), U" seconds");
39 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant window length: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_windowLengthcxx . . $ structFormantPathArea#instancePref_formant_path_windowLength(21b6c25e127938e2).(), U" seconds");
40 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant number of poles: ", Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (2.0 * ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_maximumNumberOfFormantscxx . . $ structFormantPathArea#instancePref_formant_path_maximumNumberOfFormants(21b6c25e127938e2).()));
41 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant middle ceiling: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_middleFormantCeilingcxx . . $ structFormantPathArea#instancePref_formant_path_middleFormantCeiling(21b6c25e127938e2).(), U" Hertz");
42 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant ceiling step size: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_ceilingStepSizecxx . . $ structFormantPathArea#instancePref_formant_path_ceilingStepSize(21b6c25e127938e2).());
43 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant number of steps up / down: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_numberOfStepsUpDowncxx . . $ structFormantPathArea#instancePref_formant_path_numberOfStepsUpDown(57a65ae535d7db84).());
44 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant dynamic range: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_dynamicRangecxx . . $ structSoundAnalysisArea#instancePref_formant_dynamicRange(21b6c25e127938e2).(), U" dB");
45 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant dot size: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_dotSizecxx . . $ structSoundAnalysisArea#instancePref_formant_dotSize(21b6c25e127938e2).(), U" mm");
46 /* Advanced formant settings: */
47 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant method: ", kSoundAnalysisArea_formant_analysisMethod_getTextcxx . . $ kSoundAnalysisArea_formant_analysisMethod_getText(c1affe53b06d9b68). (ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_methodcxx . . $ structFormantPathArea#instancePref_formant_path_method(eb496ffa5345344d).()));
48 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant pre-emphasis from: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_preEmpasisFromcxx . . $ structFormantPathArea#instancePref_formant_path_preEmpasisFrom(21b6c25e127938e2).(), U" Hz");
49 } else {
50 FormantPathcxx . . $ FormantPath# formantPath = ourcxx . . $ `melder/melder.h:42:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).();
51 VECcxx . . $ VEC# ceilings = formantPath -> ceilingscxx . . $ structFormantPath#ceilings..getcxx . . $ autovector#get(e8d1da7fe68a6585).();
52 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (formantPath -> formantCandidates.size > 0);
53 Formantcxx . . $ Formant# formant = formantPath -> formantCandidatescxx . . $ structFormantPath#formantCandidates..atcxx . . $ CollectionOf#at. [cxx . . $ ArrayOf#`operator[]`(a7f36fee1ae21897).1];
54 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant analysis parameters could only be approximated from the FormantPath");
55 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant time step: ", formantPath -> dxcxx . . $ structSampled#dx., U" seconds");
56 const double duration = formantPath -> xmaxcxx . . $ structFunction#xmax. - formantPath-> xmincxx . . $ structFunction#xmin.;
57 const double approximateWindowDuration = 0.5 * (duration - formantPath -> nxcxx . . $ structSampled#nx. * formantPath -> dxcxx . . $ structSampled#dx.); // a little bit too small
58 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant window length: > ", approximateWindowDuration, U" seconds");
59 const integercxx . . $ integer# numberOfPoles = 2 * formant -> maxnFormantscxx . . $ structFormant#maxnFormants.;
60 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant number of poles: ", numberOfPoles, U" or ", numberOfPoles + 1);
61 const integercxx . . $ integer# middleCeilingIndex = (ceilings.sizecxx . . $ vector#size. + 1) / 2;
62 const double middleCeiling = ceilings [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).middleCeilingIndex];
63 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant middle ceiling: ", middleCeiling, U" Hertz");
64 const double stepSize = logcxx . . $ log(fee4f1d22bc8e617). (ceilings [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).middleCeilingIndex + 1] / middleCeiling);
65 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant ceiling step size: ", stepSize);
66 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant number of steps up / down: ", middleCeilingIndex - 1);
67 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant dynamic range: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_dynamicRangecxx . . $ structSoundAnalysisArea#instancePref_formant_dynamicRange(21b6c25e127938e2).(), U" dB");
68 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant dot size: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_dotSizecxx . . $ structSoundAnalysisArea#instancePref_formant_dotSize(21b6c25e127938e2).(), U" mm");
69 /* Advanced formant settings: */
70 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant method: unknown");
71 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Formant pre-emphasis from: unknown");
72 }
73 }
74
75 /*
76 Fast selection of an interval:
77 If the mouse click was near a ceiling line in the SoundAnalysisArea we select the whole interval
78 at that ceiling frequency.
79 */
80 bool structFormantPathAreacxx . . $ structFormantPathArea# :: v_mousecxx . . $ structFormantPathArea#v_mouse(3d5a26054778c78d). (GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event, double x_world, double localY_fraction) {
81 const double fmin = ourcxx . . $ `melder/melder.h:42:9`! instancePref_spectrogram_viewFromcxx . . $ structSoundAnalysisArea#instancePref_spectrogram_viewFrom(21b6c25e127938e2). ();
82 const double fmax = ourcxx . . $ `melder/melder.h:42:9`! instancePref_spectrogram_viewTocxx . . $ structSoundAnalysisArea#instancePref_spectrogram_viewTo(21b6c25e127938e2). ();
83 const double frequencyAtClickPoint = fmin + localY_fraction * (fmax - fmin);
84 integercxx . . $ integer# candidate;
85 double tmin, tmax;
86 FormantPath_getCandidateAtTimecxx . . $ FormantPath_getCandidateAtTime(b935a6477ff02c9c). (ourcxx . . $ `melder/melder.h:42:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).(), x_world, & tmin, & tmax, & candidate);
87 if (candidate > 0 ) {
88 const double ceilingFrequency = ourcxx . . $ `melder/melder.h:42:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> ceilingscxx . . $ structFormantPath#ceilings. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).candidate];
89 if (fabscxx . . $ fabs(fee4f1d22bc8e617). ((ceilingFrequency - frequencyAtClickPoint) / (fmax - fmin)) < 0.02) {
90 setSelectioncxx . . $ structFunctionArea#setSelection(bc12c9ec15586e6a). (tmin, tmax);
91 return true;
92 }
93 }
94 return FunctionEditor_defaultMouseInWideDataViewcxx . . $ FunctionEditor_defaultMouseInWideDataView(f60eeae5fe5430ba). (ourcxx . . $ `melder/melder.h:42:9`! functionEditorcxx . . $ structFunctionArea#functionEditor(985d6162d6c279b).(), event, x_world);
95 }
96
97 static void FormantPathArea_drawCeilingscxx . . $ FormantPathArea_drawCeilings(400a2fee14b5aa7a). (FormantPathAreacxx . . $ FormantPathArea# me, double tmin, double tmax, double fmin, double fmax) {
98 TextGridcxx . . $ TextGrid# path = mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> pathcxx . . $ structFormantPath#path..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).();
99 IntervalTiercxx . . $ IntervalTier# intervalTier = static_cast<IntervalTiercxx . . $ IntervalTier#> (path -> tierscxx . . $ structTextGrid#tiers. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab).atcxx . . $ CollectionOf#at. [cxx . . $ ArrayOf#`operator[]`(a7f36fee1ae21897).1]);
100 const integercxx . . $ integer# minIndex = IntervalTier_timeToLowIndexcxx . . $ IntervalTier_timeToLowIndex(726d97a25667305). (intervalTier, tmin);
101 const integercxx . . $ integer# maxIndex = IntervalTier_timeToHighIndexcxx . . $ IntervalTier_timeToHighIndex(726d97a25667305). (intervalTier, tmax);
102 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (minIndex > 0 && maxIndex > 0);
103 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), tmin, tmax, fmin, fmax);
104 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), kGraphics_horizontalAlignmentcxx . . $ kGraphics_horizontalAlignment#::CENTREcxx . . $ kGraphics_horizontalAlignment#CENTRE., Graphics_BASELINEcxx . . $ `sys/Graphics.h:255:9`!);
105 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), Melder_REDcxx . . $ Melder_RED.);
106 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), 3.0);
107 for (integercxx . . $ integer# iint = minIndex; iint <= maxIndex; iint ++) {
108 TextIntervalcxx . . $ TextInterval# textInterval = intervalTier -> intervalscxx . . $ structIntervalTier#intervals..atcxx . . $ CollectionOf#at. [cxx . . $ ArrayOf#`operator[]`(a7f36fee1ae21897).iint];
109 conststring32cxx . . $ conststring32# label = textInterval -> textcxx . . $ structTextInterval#text..getcxx . . $ _autostring#get(5a2a78a048fb49a8).();
110 if (label) {
111 const integercxx . . $ integer# index = Melder_atoicxx . . $ Melder_atoi(c94c67ff4219bf83). (label);
112 if (index > 0 && index <= mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> ceilingscxx . . $ structFormantPath#ceilings..sizecxx . . $ autovector#size.) {
113 const double ceiling = mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> ceilingscxx . . $ structFormantPath#ceilings. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).index];
114 const double xfrom = stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a). (textInterval -> xmincxx . . $ structFunction#xmin., tmin);
115 const double xto = stdcxx . . $ std/:: mincxx . . $ std/min(2a338fce5842aa6a). (textInterval -> xmaxcxx . . $ structFunction#xmax., tmax);
116 if (ceiling < fmax) {
117 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), xfrom, ceiling, xto, ceiling);
118 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), 0.5 * (xfrom + xto), ceiling + 50.0, Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (ceiling, 0));
119 } else
120 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), xfrom, fmax, xto, fmax);
121 }
122 }
123 }
124 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), 1.0);
125 }
126
127 void structFormantPathAreacxx . . $ structFormantPathArea# :: v_draw_analysis_formantscxx . . $ structFormantPathArea#v_draw_analysis_formants(49f6e7a06ebc5aa8). () {
128 if (ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_showcxx . . $ structSoundAnalysisArea#instancePref_formant_show(50ce9a9e25b4a850).()) {
129 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), Melder_REDcxx . . $ Melder_RED.);
130 Graphics_setSpeckleSizecxx . . $ Graphics_setSpeckleSize(2514a1c07b6be5e2). (ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_dotSizecxx . . $ structSoundAnalysisArea#instancePref_formant_dotSize(21b6c25e127938e2).());
131 MelderColourcxx . . $ MelderColour# oddColour = MelderColour_fromColourNamecxx . . $ MelderColour_fromColourName(ddf3ca81f5326095). (ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_oddColourcxx . . $ structFormantPathArea#instancePref_formant_path_oddColour(d608cbfe2b610d03).());
132 MelderColourcxx . . $ MelderColour# evenColour = MelderColour_fromColourNamecxx . . $ MelderColour_fromColourName(ddf3ca81f5326095). (ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_path_evenColourcxx . . $ structFormantPathArea#instancePref_formant_path_evenColour(d608cbfe2b610d03).());
133
134 Formant_drawSpeckles_insidecxx . . $ Formant_drawSpeckles_inside(36952de78a0af76c). (ourcxx . . $ `melder/melder.h:42:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionArea#startWindow(21b6c25e127938e2).(), ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionArea#endWindow(21b6c25e127938e2).(),
135 ourcxx . . $ `melder/melder.h:42:9`! instancePref_spectrogram_viewFromcxx . . $ structSoundAnalysisArea#instancePref_spectrogram_viewFrom(21b6c25e127938e2).(), ourcxx . . $ `melder/melder.h:42:9`! instancePref_spectrogram_viewTocxx . . $ structSoundAnalysisArea#instancePref_spectrogram_viewTo(21b6c25e127938e2).(),
136 ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_dynamicRangecxx . . $ structSoundAnalysisArea#instancePref_formant_dynamicRange(21b6c25e127938e2).(), oddColour, evenColour, true
137 );
138 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), Melder_PINKcxx . . $ Melder_PINK.);
139 FormantPathArea_drawCeilingscxx . . $ FormantPathArea_drawCeilings(400a2fee14b5aa7a). (this, ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionArea#startWindow(21b6c25e127938e2).(), ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionArea#endWindow(21b6c25e127938e2).(),
140 ourcxx . . $ `melder/melder.h:42:9`! instancePref_spectrogram_viewFromcxx . . $ structSoundAnalysisArea#instancePref_spectrogram_viewFrom(21b6c25e127938e2).(), ourcxx . . $ `melder/melder.h:42:9`! instancePref_spectrogram_viewTocxx . . $ structSoundAnalysisArea#instancePref_spectrogram_viewTo(21b6c25e127938e2).());
141 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), Melder_BLACKcxx . . $ Melder_BLACK.);
142 }
143 }
144
145
146 static void menu_cb_FormantSettingscxx . . $ menu_cb_FormantSettings(2cd61460ce822d94). (FormantPathAreacxx . . $ FormantPathArea# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
147 EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Formant analysis settings...", U"Sound: To FormantPath (burg)...")
148 REALcxx . . $ `sys/EditorM.h:95:9`! (timeStep, U"Time step (s)", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_timeStep ())
149 POSITIVEcxx . . $ `sys/EditorM.h:117:9`! (maximumNumberOfFormants, U"Max. number of formants", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_maximumNumberOfFormants ())
150 REALcxx . . $ `sys/EditorM.h:95:9`! (middleFormantCeiling, U"Middle formant ceiling (Hz)", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_middleFormantCeiling ())
151 POSITIVEcxx . . $ `sys/EditorM.h:117:9`! (windowLength, U"Window length (s)", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_windowLength ())
152 POSITIVEcxx . . $ `sys/EditorM.h:117:9`! (preEmphasisFrom, U"Pre-emphasis from (Hz)", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_preEmpasisFrom ())
153 COMMENTcxx . . $ `sys/EditorM.h:237:9`! (U"The maximum and minimum ceiling frequencies are determined as:")
154 COMMENTcxx . . $ `sys/EditorM.h:237:9`! (U" middleFormantCeiling * exp(+/- ceilingStepSize * numberOfStepsUpDown).")
155 POSITIVEcxx . . $ `sys/EditorM.h:117:9`! (ceilingStepSize, U"Ceiling step size", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_ceilingStepSize ())
156 NATURALcxx . . $ `sys/EditorM.h:173:9`! (numberOfStepsUpDown, U"Number of steps up / down", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_numberOfStepsUpDown ())
157 EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`!
158 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (timeStep, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_timeStep ())
159 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (maximumNumberOfFormants, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_maximumNumberOfFormants ())
160 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (middleFormantCeiling, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_middleFormantCeiling ())
161 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (windowLength, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_windowLength ())
162 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (preEmphasisFrom, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_preEmpasisFrom ())
163 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (ceilingStepSize, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_ceilingStepSize ())
164 SET_INTEGERcxx . . $ `sys/EditorM.h:465:9`! (numberOfStepsUpDown, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_numberOfStepsUpDown ())
165 EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`!
166 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (mycxx . . $ `melder/melder.h:44:9`! sound (),
167 U"There is no sound to analyze.");
168 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_timeStepcxx . . $ structFormantPathArea#setInstancePref_formant_path_timeStep(ba8836b59fb42830). (timeStep);
169 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_maximumNumberOfFormantscxx . . $ structFormantPathArea#setInstancePref_formant_path_maximumNumberOfFormants(ba8836b59fb42830). (maximumNumberOfFormants);
170 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_middleFormantCeilingcxx . . $ structFormantPathArea#setInstancePref_formant_path_middleFormantCeiling(ba8836b59fb42830). (middleFormantCeiling);
171 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_windowLengthcxx . . $ structFormantPathArea#setInstancePref_formant_path_windowLength(ba8836b59fb42830). (windowLength);
172 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_preEmpasisFromcxx . . $ structFormantPathArea#setInstancePref_formant_path_preEmpasisFrom(ba8836b59fb42830). (preEmphasisFrom);
173 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_ceilingStepSizecxx . . $ structFormantPathArea#setInstancePref_formant_path_ceilingStepSize(ba8836b59fb42830). (ceilingStepSize);
174 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_numberOfStepsUpDowncxx . . $ structFormantPathArea#setInstancePref_formant_path_numberOfStepsUpDown(1624ee8275b10bda). (numberOfStepsUpDown);
175 autoFormantPathcxx . . $ autoFormantPath# result = Sound_to_FormantPath_burgcxx . . $ Sound_to_FormantPath_burg(eb5656d5370e24ea). (mycxx . . $ `melder/melder.h:44:9`! soundcxx . . $ structSoundAnalysisArea#sound(f0b31236b65da120). (), timeStep, maximumNumberOfFormants, middleFormantCeiling, windowLength,
176 preEmphasisFrom, ceilingStepSize, numberOfStepsUpDown
177 );
178 mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> nxcxx . . $ structSampled#nx. = result ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). nxcxx . . $ structSampled#nx.;
179 mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> dxcxx . . $ structSampled#dx. = result ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). dxcxx . . $ structSampled#dx.;
180 mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> x1cxx . . $ structSampled#x1. = result ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). x1cxx . . $ structSampled#x1.;
181 mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> formantCandidatescxx . . $ structFormantPath#formantCandidates. =cxx . . $ OrderedOf#`operator=`(259b2968d4f5b3ca). result ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). formantCandidatescxx . . $ structFormantPath#formantCandidates..movecxx . . $ OrderedOf#move(e1684831d5de27f6).();
182 mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> ceilingscxx . . $ structFormantPath#ceilings. =cxx . . $ autovector#`operator=`(f4f0443dbfdd1e40). result ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). ceilingscxx . . $ structFormantPath#ceilings..movecxx . . $ autovector#move(57d90d7d77dfc011).();
183 mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() -> pathcxx . . $ structFormantPath#path. =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). result ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). pathcxx . . $ structFormantPath#path..movecxx . . $ autoSomeThing#move(25acc3554b7d1642).();
184 mycxx . . $ `melder/melder.h:44:9`! formantPathAnalysisParametersKnowncxx . . $ structFormantPathArea#formantPathAnalysisParametersKnown. = true;
185 mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant. =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). FormantPath_extractFormantcxx . . $ FormantPath_extractFormant(c1105e94bde1773c). (mycxx . . $ `melder/melder.h:44:9`! formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).());
186 FunctionArea_broadcastDataChangedcxx . . $ FunctionArea_broadcastDataChanged(88b39197b202d92f). (me);
187 EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`!
188 }
189
190 static void menu_cb_FormantDisplaySettingscxx . . $ menu_cb_FormantDisplaySettings(2cd61460ce822d94). (FormantPathAreacxx . . $ FormantPathArea# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
191 EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Formant colour settings", nullptr)
192 REALcxx . . $ `sys/EditorM.h:95:9`! (dynamicRange, U"Dynamic range (dB)", mycxx . . $ `melder/melder.h:44:9`! default_formant_dynamicRange())
193 POSITIVEcxx . . $ `sys/EditorM.h:117:9`! (dotSize, U"Dot size (mm)", mycxx . . $ `melder/melder.h:44:9`! default_formant_dotSize())
194 WORDcxx . . $ `sys/EditorM.h:184:9`! (oddPathColour_string, U"Dots in F1, F3, F5", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_oddColour())
195 WORDcxx . . $ `sys/EditorM.h:184:9`! (evenPathColour_string, U"Dots in F2, F4", mycxx . . $ `melder/melder.h:44:9`! default_formant_path_evenColour())
196 EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`!
197 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (dynamicRange, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_dynamicRange())
198 SET_REALcxx . . $ `sys/EditorM.h:462:9`! (dotSize, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_dotSize())
199 SET_STRINGcxx . . $ `sys/EditorM.h:477:9`! (oddPathColour_string, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_oddColour())
200 SET_STRINGcxx . . $ `sys/EditorM.h:477:9`! (evenPathColour_string, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_path_evenColour())
201 EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`!
202 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_dynamicRangecxx . . $ structSoundAnalysisArea#setInstancePref_formant_dynamicRange(ba8836b59fb42830). (dynamicRange);
203 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_dotSizecxx . . $ structSoundAnalysisArea#setInstancePref_formant_dotSize(ba8836b59fb42830). (dotSize);
204 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_oddColourcxx . . $ structFormantPathArea#setInstancePref_formant_path_oddColour(ff00d524ab0355ec). (oddPathColour_string);
205 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_path_evenColourcxx . . $ structFormantPathArea#setInstancePref_formant_path_evenColour(ff00d524ab0355ec). (evenPathColour_string);
206 FunctionArea_broadcastDataChangedcxx . . $ FunctionArea_broadcastDataChanged(88b39197b202d92f). (me);
207 EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`!
208 }
209
210 static void menu_cb_DrawVisibleFormantContourcxx . . $ menu_cb_DrawVisibleFormantContour(2cd61460ce822d94). (FormantPathAreacxx . . $ FormantPathArea# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
211 EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Draw visible formant contour", nullptr)
212 mycxx . . $ `melder/melder.h:44:9`! v_form_pictureWindowcxx . . $ structDataGui#v_form_pictureWindow(2b98fae8e13abb61). (cmd); // BUG: move to area
213 mycxx . . $ `melder/melder.h:44:9`! v_form_pictureMarginscxx . . $ structDataGui#v_form_pictureMargins(2b98fae8e13abb61). (cmd);
214 mycxx . . $ `melder/melder.h:44:9`! v_form_pictureSelectioncxx . . $ structFunctionArea#v_form_pictureSelection(2b98fae8e13abb61). (cmd);
215 BOOLEANcxx . . $ `sys/EditorM.h:228:9`! (garnish, U"Garnish", true)
216 EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`!
217 mycxx . . $ `melder/melder.h:44:9`! v_ok_pictureWindowcxx . . $ structDataGui#v_ok_pictureWindow(2b98fae8e13abb61). (cmd); // BUG: move to area
218 mycxx . . $ `melder/melder.h:44:9`! v_ok_pictureMarginscxx . . $ structDataGui#v_ok_pictureMargins(2b98fae8e13abb61). (cmd);
219 mycxx . . $ `melder/melder.h:44:9`! v_ok_pictureSelectioncxx . . $ structFunctionArea#v_ok_pictureSelection(2b98fae8e13abb61). (cmd);
220 SET_BOOLEANcxx . . $ `sys/EditorM.h:471:9`! (garnish, mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_picture_garnish())
221 EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`!
222 mycxx . . $ `melder/melder.h:44:9`! v_do_pictureWindowcxx . . $ structDataGui#v_do_pictureWindow(2b98fae8e13abb61). (cmd); // BUG: move to area
223 mycxx . . $ `melder/melder.h:44:9`! v_do_pictureMarginscxx . . $ structDataGui#v_do_pictureMargins(2b98fae8e13abb61). (cmd);
224 mycxx . . $ `melder/melder.h:44:9`! v_do_pictureSelectioncxx . . $ structFunctionArea#v_do_pictureSelection(2b98fae8e13abb61). (cmd);
225 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_picture_garnishcxx . . $ structSoundAnalysisArea#setInstancePref_formant_picture_garnish(b45ddcbc8423892c). (garnish);
226 if (! mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_showcxx . . $ structSoundAnalysisArea#instancePref_formant_show(50ce9a9e25b4a850).())
227 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No formant contour is visible.\nFirst choose \"Show formants\" from the Formants menu.");
228 DataGui_openPraatPicturecxx . . $ DataGui_openPraatPicture(4c5cf9f1c6ae526). (me);
229 Formant_drawSpecklescxx . . $ Formant_drawSpeckles(e07d2c1a1c131b2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionArea#startWindow(21b6c25e127938e2).(), mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionArea#endWindow(21b6c25e127938e2).(),
230 mycxx . . $ `melder/melder.h:44:9`! instancePref_spectrogram_viewTocxx . . $ structSoundAnalysisArea#instancePref_spectrogram_viewTo(21b6c25e127938e2).(), mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_dynamicRangecxx . . $ structSoundAnalysisArea#instancePref_formant_dynamicRange(21b6c25e127938e2).(),
231 garnish
232 );
233 FunctionArea_garnishPicturecxx . . $ FunctionArea_garnishPicture(88b39197b202d92f). (me);
234 DataGui_closePraatPicturecxx . . $ DataGui_closePraatPicture(4c5cf9f1c6ae526). (me);
235 EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`!
236 }
237
238 static void menu_cb_showFormantscxx . . $ menu_cb_showFormants(2cd61460ce822d94). (FormantPathAreacxx . . $ FormantPathArea# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
239 mycxx . . $ `melder/melder.h:44:9`! setInstancePref_formant_showcxx . . $ structSoundAnalysisArea#setInstancePref_formant_show(b45ddcbc8423892c). (! mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_showcxx . . $ structSoundAnalysisArea#instancePref_formant_show(50ce9a9e25b4a850).()); // toggle
240 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (mycxx . . $ `melder/melder.h:44:9`! formantTogglecxx . . $ structSoundAnalysisArea#formantToggle., mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_showcxx . . $ structSoundAnalysisArea#instancePref_formant_show(50ce9a9e25b4a850).()); // in case we're called from a script
241 FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (mycxx . . $ `melder/melder.h:44:9`! functionEditorcxx . . $ structFunctionArea#functionEditor(985d6162d6c279b).());
242 }
243
244 static void INFO_EDITOR__formantListingcxx . . $ INFO_EDITOR__formantListing(2cd61460ce822d94). (FormantPathAreacxx . . $ FormantPathArea# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) {
245 INFO_EDITORcxx . . $ `sys/EditorM.h:539:9`!
246 const double startTime = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionArea#startSelection(21b6c25e127938e2).(), endTime = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionArea#endSelection(21b6c25e127938e2).();
247 MelderInfo_opencxx . . $ MelderInfo_open(49f6e7a06ebc5aa8). ();
248 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Time_s F1_Hz F2_Hz F3_Hz F4_Hz");
249 if (startTime == endTime) {
250 const double f1 = Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1, startTime, kFormant_unitcxx . . $ kFormant_unit#::HERTZcxx . . $ kFormant_unit#HERTZ.);
251 const double f2 = Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 2, startTime, kFormant_unitcxx . . $ kFormant_unit#::HERTZcxx . . $ kFormant_unit#HERTZ.);
252 const double f3 = Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 3, startTime, kFormant_unitcxx . . $ kFormant_unit#::HERTZcxx . . $ kFormant_unit#HERTZ.);
253 const double f4 = Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 4, startTime, kFormant_unitcxx . . $ kFormant_unit#::HERTZcxx . . $ kFormant_unit#HERTZ.);
254 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (startTime, 6), U" ", Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (f1, 6), U" ", Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (f2, 6), U" ", Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (f3, 6), U" ", Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (f4, 6));
255 } else {
256 integercxx . . $ integer# i1, i2;
257 Sampled_getWindowSamplescxx . . $ Sampled_getWindowSamples(fe99094ed5bb3f6a). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), startTime, endTime, & i1, & i2);
258 for (integercxx . . $ integer# i = i1; i <= i2; i ++) {
259 const double t = Sampled_indexToXcxx . . $ Sampled_indexToX(65bcd2c9acbb3dd5). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), i);
260 const double f1 = Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1, t, kFormant_unitcxx . . $ kFormant_unit#::HERTZcxx . . $ kFormant_unit#HERTZ.);
261 const double f2 = Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 2, t, kFormant_unitcxx . . $ kFormant_unit#::HERTZcxx . . $ kFormant_unit#HERTZ.);
262 const double f3 = Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 3, t, kFormant_unitcxx . . $ kFormant_unit#::HERTZcxx . . $ kFormant_unit#HERTZ.);
263 const double f4 = Formant_getValueAtTimecxx . . $ Formant_getValueAtTime(d698bca4b3ab6c2d). (mycxx . . $ `melder/melder.h:44:9`! d_formantcxx . . $ structSoundAnalysisArea#d_formant..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 4, t, kFormant_unitcxx . . $ kFormant_unit#::HERTZcxx . . $ kFormant_unit#HERTZ.);
264 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (t, 6), U" ", Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (f1, 6), U" ", Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (f2, 6), U" ", Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (f3, 6), U" ", Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (f4, 6));
265 }
266 }
267 MelderInfo_closecxx . . $ MelderInfo_close(49f6e7a06ebc5aa8). ();
268 INFO_EDITOR_ENDcxx . . $ `sys/EditorM.h:540:9`!
269 }
270 void structFormantPathAreacxx . . $ structFormantPathArea# :: v_createMenuItems_formantcxx . . $ structFormantPathArea#v_createMenuItems_formant(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) {
271 ourcxx . . $ `melder/melder.h:42:9`! formantTogglecxx . . $ structSoundAnalysisArea#formantToggle. = FunctionAreaMenu_addCommandcxx . . $ FunctionAreaMenu_addCommand(e6bf179389aae652). (menu, U"Show formants",
272 GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`! | ( ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_showcxx . . $ structSoundAnalysisArea#instancePref_formant_show(50ce9a9e25b4a850).() ? GuiMenu_TOGGLE_ONcxx . . $ `sys/Gui.h:854:9`! : 0 ),
273 menu_cb_showFormantscxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this
274 );
275 // The following menu item should not be visible if there is no sound
276 // djmw: 20230211 I don't know how to test whether a sound is available here
277 FunctionAreaMenu_addCommandcxx . . $ FunctionAreaMenu_addCommand(e6bf179389aae652). (menu, U"Formant analysis settings...", 0,
278 menu_cb_FormantSettingscxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this);
279 FunctionAreaMenu_addCommandcxx . . $ FunctionAreaMenu_addCommand(e6bf179389aae652). (menu, U"Formant display settings...", 0,
280 menu_cb_FormantDisplaySettingscxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this);
281 FunctionAreaMenu_addCommandcxx . . $ FunctionAreaMenu_addCommand(e6bf179389aae652). (menu, U"Draw visible formant contour...", 0,
282 menu_cb_DrawVisibleFormantContourcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this);
283 FunctionAreaMenu_addCommandcxx . . $ FunctionAreaMenu_addCommand(e6bf179389aae652). (menu, U"Formant listing", 0,
284 INFO_EDITOR__formantListingcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this);
285 }
286
287
288 /* End of file FormantPathArea.cpp */