Debian Codegraph @

foned/SoundAnalysisArea.h

raw symbols SCIP
1 #cxx . . $ `<file>/foned/SoundAnalysisArea.h`/ifndef _SoundAnalysisArea_h_
2 #define _SoundAnalysisArea_h_cxx . . $ `foned/SoundAnalysisArea.h:2:9`!
3 /* SoundAnalysisArea.h
4 *
5 * Copyright (C) 1992-2005,2007-2024,2026 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 3 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 "FunctionArea.h"cxx . . $ `<file>/foned/FunctionArea.h`/
22 #include "Sound_and_Spectrogram.h"cxx . . $ `<file>/fon/Sound_and_Spectrogram.h`/
23 #include "Pitch.h"cxx . . $ `<file>/fon/Pitch.h`/
24 #include "Intensity.h"cxx . . $ `<file>/fon/Intensity.h`/
25 #include "Formant.h"cxx . . $ `<file>/fon/Formant.h`/
26 #include "PointProcess.h"cxx . . $ `<file>/fon/PointProcess.h`/
27 #include "LongSound.h"cxx . . $ `<file>/fon/LongSound.h`/
28
29 #include "SoundAnalysisArea_enums.h"cxx . . $ `<file>/foned/SoundAnalysisArea_enums.h`/
30
31 Thing_definecxx . . $ SoundAnalysisArea_Parent# (SoundAnalysisArea, FunctionArea) {
32 SampledXYcxx . . $ SampledXY# soundOrLongSoundcxx . . $ structSoundAnalysisArea#soundOrLongSound(e416179ecdeca61e).() const { return static_cast <SampledXYcxx . . $ SampledXY#> (ourcxx . . $ `melder/melder.h:42:9`! functioncxx . . $ structFunctionArea#function(8985a8e07d4255bd).()); }
33 Soundcxx . . $ Sound# soundcxx . . $ structSoundAnalysisArea#sound(f0b31236b65da120).() const {
34 return ourcxx . . $ `melder/melder.h:42:9`! soundOrLongSoundcxx . . $ structSoundAnalysisArea#soundOrLongSound(e416179ecdeca61e).() && Thing_isacxx . . $ Thing_isa(8cbb12e93d03b2a1). (ourcxx . . $ `melder/melder.h:42:9`! soundOrLongSoundcxx . . $ structSoundAnalysisArea#soundOrLongSound(e416179ecdeca61e).(), classSoundcxx . . $ classSound.) ? (Soundcxx . . $ Sound#) ourcxx . . $ `melder/melder.h:42:9`! soundOrLongSoundcxx . . $ structSoundAnalysisArea#soundOrLongSound(e416179ecdeca61e).() : nullptr;
35 }
36 LongSoundcxx . . $ LongSound# longSoundcxx . . $ structSoundAnalysisArea#longSound(6208252a0c36139e).() const {
37 return ourcxx . . $ `melder/melder.h:42:9`! soundOrLongSoundcxx . . $ structSoundAnalysisArea#soundOrLongSound(e416179ecdeca61e).() && Thing_isacxx . . $ Thing_isa(8cbb12e93d03b2a1). (ourcxx . . $ `melder/melder.h:42:9`! soundOrLongSoundcxx . . $ structSoundAnalysisArea#soundOrLongSound(e416179ecdeca61e).(), classLongSoundcxx . . $ classLongSound.) ? (LongSoundcxx . . $ LongSound#) ourcxx . . $ `melder/melder.h:42:9`! soundOrLongSoundcxx . . $ structSoundAnalysisArea#soundOrLongSound(e416179ecdeca61e).() : nullptr;
38 }
39
40 autoSpectrogramListcxx . . $ autoSpectrogramList# d_spectrogramListcxx . . $ structSoundAnalysisArea#d_spectrogramList.;
41 double d_spectrogram_cursorcxx . . $ structSoundAnalysisArea#d_spectrogram_cursor.;
42 autoPitchcxx . . $ autoPitch# d_pitchcxx . . $ structSoundAnalysisArea#d_pitch.;
43 autoIntensitycxx . . $ autoIntensity# d_intensitycxx . . $ structSoundAnalysisArea#d_intensity.;
44 autoFormantcxx . . $ autoFormant# d_formantcxx . . $ structSoundAnalysisArea#d_formant.;
45 autoPointProcesscxx . . $ autoPointProcess# d_pulsescxx . . $ structSoundAnalysisArea#d_pulses.;
46 GuiMenuItemcxx . . $ GuiMenuItem# spectrogramTogglecxx . . $ structSoundAnalysisArea#spectrogramToggle., pitchTogglecxx . . $ structSoundAnalysisArea#pitchToggle., intensityTogglecxx . . $ structSoundAnalysisArea#intensityToggle., formantTogglecxx . . $ structSoundAnalysisArea#formantToggle., pulsesTogglecxx . . $ structSoundAnalysisArea#pulsesToggle.;
47 GuiMenuItemcxx . . $ GuiMenuItem# pitchFilteredAutocorrelationTogglecxx . . $ structSoundAnalysisArea#pitchFilteredAutocorrelationToggle., pitchRawCrossCorrelationTogglecxx . . $ structSoundAnalysisArea#pitchRawCrossCorrelationToggle., pitchRawAutocorrelationTogglecxx . . $ structSoundAnalysisArea#pitchRawAutocorrelationToggle.,
48 pitchFilteredCrossCorrelationTogglecxx . . $ structSoundAnalysisArea#pitchFilteredCrossCorrelationToggle.;
49
50 virtual bool v_hasSpectrogramcxx . . $ structSoundAnalysisArea#v_hasSpectrogram(c9857a73d68e59ba). () { return true; }
51 virtual bool v_hasPitchcxx . . $ structSoundAnalysisArea#v_hasPitch(c9857a73d68e59ba). () { return true; }
52 virtual bool v_hasIntensitycxx . . $ structSoundAnalysisArea#v_hasIntensity(c9857a73d68e59ba). () { return true; }
53 virtual bool v_hasFormantscxx . . $ structSoundAnalysisArea#v_hasFormants(c9857a73d68e59ba). () { return true; }
54 virtual bool v_hasPulsescxx . . $ structSoundAnalysisArea#v_hasPulses(c9857a73d68e59ba). () { return true; }
55 virtual void v_reset_analysiscxx . . $ structSoundAnalysisArea#v_reset_analysis(49f6e7a06ebc5aa8). ();
56
57 virtual void v_spectrogramInfocxx . . $ structSoundAnalysisArea#v_spectrogramInfo(83f5f38750778ac8). () const;
58 virtual void v_pitchInfocxx . . $ structSoundAnalysisArea#v_pitchInfo(83f5f38750778ac8). () const;
59 virtual void v_intensityInfocxx . . $ structSoundAnalysisArea#v_intensityInfo(83f5f38750778ac8). () const;
60 virtual void v_formantsInfocxx . . $ structSoundAnalysisArea#v_formantsInfo(83f5f38750778ac8). () const;
61 virtual void v_pulsesInfocxx . . $ structSoundAnalysisArea#v_pulsesInfo(83f5f38750778ac8). () const;
62
63 protected:
64 void v_computeAuxiliaryDatacxx . . $ structSoundAnalysisArea#v_computeAuxiliaryData(49f6e7a06ebc5aa8). () override {
65 ourcxx . . $ `melder/melder.h:42:9`! v_reset_analysiscxx . . $ structSoundAnalysisArea#v_reset_analysis(49f6e7a06ebc5aa8). ();
66 }
67
68 public:
69 void v_windowChangedcxx . . $ structSoundAnalysisArea#v_windowChanged(49f6e7a06ebc5aa8). () override {
70 ourcxx . . $ `melder/melder.h:42:9`! v_reset_analysiscxx . . $ structSoundAnalysisArea#v_reset_analysis(49f6e7a06ebc5aa8). ();
71 }
72 bool hasContentToShowcxx . . $ structSoundAnalysisArea#hasContentToShow(c9857a73d68e59ba). () {
73 return ourcxx . . $ `melder/melder.h:42:9`! instancePref_spectrogram_showcxx . . $ structSoundAnalysisArea#instancePref_spectrogram_show(50ce9a9e25b4a850).() || ourcxx . . $ `melder/melder.h:42:9`! instancePref_pitch_showcxx . . $ structSoundAnalysisArea#instancePref_pitch_show(50ce9a9e25b4a850).() ||
74 ourcxx . . $ `melder/melder.h:42:9`! instancePref_intensity_showcxx . . $ structSoundAnalysisArea#instancePref_intensity_show(50ce9a9e25b4a850).() || ourcxx . . $ `melder/melder.h:42:9`! instancePref_formant_showcxx . . $ structSoundAnalysisArea#instancePref_formant_show(50ce9a9e25b4a850).();
75 }
76 bool hasPulsesToShowcxx . . $ structSoundAnalysisArea#hasPulsesToShow(c9857a73d68e59ba). () {
77 return ourcxx . . $ `melder/melder.h:42:9`! instancePref_pulses_showcxx . . $ structSoundAnalysisArea#instancePref_pulses_show(50ce9a9e25b4a850).() && ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionArea#endWindow(21b6c25e127938e2).() - ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionArea#startWindow(21b6c25e127938e2).() <= ourcxx . . $ `melder/melder.h:42:9`! instancePref_longestAnalysiscxx . . $ structSoundAnalysisArea#instancePref_longestAnalysis(21b6c25e127938e2).() && ourcxx . . $ `melder/melder.h:42:9`! d_pulsescxx . . $ structSoundAnalysisArea#d_pulses.;
78 }
79
80 public:
81 void v1_infocxx . . $ structSoundAnalysisArea#v1_info(49f6e7a06ebc5aa8). ()
82 override;
83 bool v_mousecxx . . $ structSoundAnalysisArea#v_mouse(3d5a26054778c78d). (GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event, double x_world, double localY_fraction)
84 override;
85 virtual void v_draw_analysiscxx . . $ structSoundAnalysisArea#v_draw_analysis(49f6e7a06ebc5aa8). ();
86 virtual void v_draw_analysis_pulsescxx . . $ structSoundAnalysisArea#v_draw_analysis_pulses(49f6e7a06ebc5aa8). ();
87 virtual void v_draw_analysis_formantscxx . . $ structSoundAnalysisArea#v_draw_analysis_formants(49f6e7a06ebc5aa8). ();
88 void v_createMenuscxx . . $ structSoundAnalysisArea#v_createMenus(49f6e7a06ebc5aa8). ()
89 override;
90 virtual void v_createMenuItems_formantcxx . . $ structSoundAnalysisArea#v_createMenuItems_formant(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu);
91 void v_updateMenuItemscxx . . $ structSoundAnalysisArea#v_updateMenuItems(49f6e7a06ebc5aa8). ()
92 override;
93
94 #include "SoundAnalysisArea_prefs.h"cxx . . $ `<file>/foned/SoundAnalysisArea_prefs.h`/
95 double dynamic_instancePref_pitch_floorcxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_floor(31fa7155c10fdd13). ();
96 double dynamic_instancePref_pitch_ceilingOrTopcxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_ceilingOrTop(31fa7155c10fdd13). ();
97 kPitch_unitcxx . . $ kPitch_unit# dynamic_instancePref_pitch_unitcxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_unit(a2501affae63d6db). ();
98 kSoundAnalysisArea_pitch_drawingMethodcxx . . $ kSoundAnalysisArea_pitch_drawingMethod# dynamic_instancePref_pitch_drawingMethodcxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_drawingMethod(8950e04adaff2354). ();
99 double dynamic_instancePref_pitch_viewFromcxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_viewFrom(31fa7155c10fdd13). ();
100 double dynamic_instancePref_pitch_viewTocxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_viewTo(31fa7155c10fdd13). ();
101 bool dynamic_instancePref_pitch_veryAccuratecxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_veryAccurate(c9857a73d68e59ba). ();
102 integercxx . . $ integer# dynamic_instancePref_pitch_maximumNumberOfCandidatescxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_maximumNumberOfCandidates(da6335ded91d79c2). ();
103 double dynamic_instancePref_pitch_silenceThresholdcxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_silenceThreshold(31fa7155c10fdd13). ();
104 double dynamic_instancePref_pitch_voicingThresholdcxx . . $ structSoundAnalysisArea#dynamic_instancePref_pitch_voicingThreshold(31fa7155c10fdd13). ();
105
106 void v9_repairPreferencescxx . . $ structSoundAnalysisArea#v9_repairPreferences(49f6e7a06ebc5aa8). () override;
107 };
108
109 DEFINE_FunctionArea_createcxx . . $ FunctionArea_init(fcb57ab2b3c1d4b0). (SoundAnalysisArea, Sound)
110
111 void SoundAnalysisArea_haveVisibleSpectrogramcxx . . $ SoundAnalysisArea_haveVisibleSpectrogram(16a0e84e612eeb2). (SoundAnalysisAreacxx . . $ SoundAnalysisArea# me);
112 void SoundAnalysisArea_haveVisiblePitchcxx . . $ SoundAnalysisArea_haveVisiblePitch(16a0e84e612eeb2). (SoundAnalysisAreacxx . . $ SoundAnalysisArea# me);
113 void SoundAnalysisArea_haveVisibleIntensitycxx . . $ SoundAnalysisArea_haveVisibleIntensity(16a0e84e612eeb2). (SoundAnalysisAreacxx . . $ SoundAnalysisArea# me);
114 void SoundAnalysisArea_haveVisibleFormantscxx . . $ SoundAnalysisArea_haveVisibleFormants(16a0e84e612eeb2). (SoundAnalysisAreacxx . . $ SoundAnalysisArea# me);
115 void SoundAnalysisArea_haveVisiblePulsescxx . . $ SoundAnalysisArea_haveVisiblePulses(16a0e84e612eeb2). (SoundAnalysisAreacxx . . $ SoundAnalysisArea# me);
116
117 bool SoundAnalysisArea_mousecxx . . $ SoundAnalysisArea_mouse(4493daeead2eede9). (SoundAnalysisAreacxx . . $ SoundAnalysisArea# me, GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event, double x_world, double y_fraction);
118
119 inline void SoundAnalysisArea_drawDefaultLegendscxx . . $ SoundAnalysisArea_drawDefaultLegends(16a0e84e612eeb2). (SoundAnalysisAreacxx . . $ SoundAnalysisArea# me) {
120 if (mycxx . . $ `melder/melder.h:44:9`! hasContentToShowcxx . . $ structSoundAnalysisArea#hasContentToShow(c9857a73d68e59ba). () && mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionArea#endWindow(21b6c25e127938e2).() - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionArea#startWindow(21b6c25e127938e2).() <= mycxx . . $ `melder/melder.h:44:9`! instancePref_longestAnalysiscxx . . $ structSoundAnalysisArea#instancePref_longestAnalysis(21b6c25e127938e2).())
121 FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (me,
122 mycxx . . $ `melder/melder.h:44:9`! instancePref_spectrogram_showcxx . . $ structSoundAnalysisArea#instancePref_spectrogram_show(50ce9a9e25b4a850).() ? FunctionArea_legend_GREYScxx . . $ `foned/FunctionArea.h:249:10`! U" %%derived spectrogram" : U"", 1.2 *cxx . . $ `operator*`(b464376f9cf8932a). Melder_BLACKcxx . . $ Melder_BLACK.,
123 mycxx . . $ `melder/melder.h:44:9`! instancePref_formant_showcxx . . $ structSoundAnalysisArea#instancePref_formant_show(50ce9a9e25b4a850).() ? FunctionArea_legend_SPECKLEScxx . . $ `foned/FunctionArea.h:245:10`! U" %%derived formants" : U"", 1.2 *cxx . . $ `operator*`(b464376f9cf8932a). Melder_REDcxx . . $ Melder_RED.,
124 mycxx . . $ `melder/melder.h:44:9`! instancePref_intensity_showcxx . . $ structSoundAnalysisArea#instancePref_intensity_show(50ce9a9e25b4a850).() ? FunctionArea_legend_LINEScxx . . $ `foned/FunctionArea.h:244:10`! U" %%derived intensity" : U"", 1.2 *cxx . . $ `operator*`(b464376f9cf8932a). Melder_GREENcxx . . $ Melder_GREEN.,
125 mycxx . . $ `melder/melder.h:44:9`! instancePref_pitch_showcxx . . $ structSoundAnalysisArea#instancePref_pitch_show(50ce9a9e25b4a850).() ? FunctionArea_legend_LINES_SPECKLEScxx . . $ `foned/FunctionArea.h:246:10`! U" %%derived pitch" : U"", 1.2 *cxx . . $ `operator*`(b464376f9cf8932a). Melder_BLUEcxx . . $ Melder_BLUE.
126 );
127 }
128
129 /* End of file SoundAnalysisArea.h */
130 #endif