Debian Codegraph @

LPC/FormantPathArea.h

raw symbols SCIP
1 #cxx . . $ `<file>/LPC/FormantPathArea.h`/ifndef _FormantPathArea_h_
2 #define _FormantPathArea_h_cxx . . $ `LPC/FormantPathArea.h:2:9`!
3 /* FormantPathEditor.h
4 *
5 * Copyright (C) 2020-2023 David Weenink, 2022-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 "FormantPath.h"cxx . . $ `<file>/LPC/FormantPath.h`/
22 #include "SoundAnalysisArea.h"cxx . . $ `<file>/foned/SoundAnalysisArea.h`/
23 #include "TextGrid.h"cxx . . $ `<file>/fon/TextGrid.h`/
24
25 /*
26 The explanation following is for analyses with different maximum formant frequencies (i.e. different ceiling frequencies).
27 The <name>-log tier can have multiple intervals. Each interval shows a particular analysis prefered by the user. It shows first the <ceiling> that was selected by the user, then a ';' separator and finally the number of parameters per track of the formant modeler.
28 Its content could be, for example '5000; 5 5 5', which means that the analysis with a ceiling of 5000 Hz was chosen and the Formant modeler used F1, F2, and F3 in the modelling and reserved 5 coefficients to model F1, 5 coefficients to model F2 and 5 coefficients to model F3. The <ceiling> number must match one of the possible ceiling frequencies (rounded to integer Hz values)
29 An empty interval always implies the default analysis. Therefore only intervals where you want a non-default have to be specified.
30
31 There is no need to permanently store the FormantModelers because they can easily
32 be calculated whenever they are needed from the information in the tiers.
33
34 Multichannel sounds don't make sense with respect to the analysis part. If both channels are the same sound, one is redundant.
35 If two different sounds, then average (convert to mono), as in other editors.
36 */
37
38 Thing_definecxx . . $ structFormantPathArea# (FormantPathArea, SoundAnalysisArea) {
39 FormantPathcxx . . $ FormantPath# _formantPathcxx . . $ structFormantPathArea#_formantPath.;
40 FormantPathcxx . . $ FormantPath# formantPathcxx . . $ structFormantPathArea#formantPath(9ac62644e43759d2).() const { return ourcxx . . $ `melder/melder.h:42:9`! _formantPathcxx . . $ structFormantPathArea#_formantPath.; }
41 bool formantPathAnalysisParametersKnowncxx . . $ structFormantPathArea#formantPathAnalysisParametersKnown. = false;
42
43 double maximumInitialLengthOfWindowcxx . . $ structFormantPathArea#maximumInitialLengthOfWindow(31fa7155c10fdd13).() override {
44 return 5.0;
45 }
46 void v_formantsInfocxx . . $ structFormantPathArea#v_formantsInfo(83f5f38750778ac8). () const
47 override;
48 void v_draw_analysis_formantscxx . . $ structFormantPathArea#v_draw_analysis_formants(49f6e7a06ebc5aa8). ()
49 override;
50 void v_createMenuItems_formantcxx . . $ structFormantPathArea#v_createMenuItems_formant(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu)
51 override;
52 bool v_mousecxx . . $ structFormantPathArea#v_mouse(3d5a26054778c78d). (GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event, double x_world, double localY_fraction)
53 override;
54 void v_reset_analysiscxx . . $ structFormantPathArea#v_reset_analysis(49f6e7a06ebc5aa8). () override {
55 ourcxx . . $ `melder/melder.h:42:9`! d_spectrogramListcxx . . $ structSoundAnalysisArea#d_spectrogramList.. resetcxx . . $ autoSomeThing#reset(ced63f7c635d850d).();
56 ourcxx . . $ `melder/melder.h:42:9`! d_pitchcxx . . $ structSoundAnalysisArea#d_pitch.. resetcxx . . $ autoSomeThing#reset(ced63f7c635d850d).();
57 ourcxx . . $ `melder/melder.h:42:9`! d_intensitycxx . . $ structSoundAnalysisArea#d_intensity.. resetcxx . . $ autoSomeThing#reset(ced63f7c635d850d).();
58 ourcxx . . $ `melder/melder.h:42:9`! d_pulsescxx . . $ structSoundAnalysisArea#d_pulses.. resetcxx . . $ autoSomeThing#reset(ced63f7c635d850d).();
59 // not our formant!
60 }
61
62 #include "FormantPathArea_prefs.h"cxx . . $ `<file>/LPC/FormantPathArea_prefs.h`/
63 };
64
65 Thing_definecxx . . $ SomeThingHandle# (FormantPathArea_without_Sound, FormantPathArea) {
66 virtual bool v_hasSpectrogramcxx . . $ structFormantPathArea_without_Sound#v_hasSpectrogram(c9857a73d68e59ba). () { return false; }
67 virtual bool v_hasPitchcxx . . $ structFormantPathArea_without_Sound#v_hasPitch(c9857a73d68e59ba). () { return false; }
68 virtual bool v_hasIntensitycxx . . $ structFormantPathArea_without_Sound#v_hasIntensity(c9857a73d68e59ba). () { return false; }
69 virtual bool v_hasPulsescxx . . $ structFormantPathArea_without_Sound#v_hasPulses(c9857a73d68e59ba). () { return false; }
70 };
71
72 DEFINE_FunctionArea_createcxx . . $ Sound# (FormantPathArea, Sound)
73 DEFINE_FunctionArea_createcxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f). (FormantPathArea_without_Sound, Sound)
74
75 /* End of file FormantPathArea.h */
76 #endif