Debian Codegraph @

foned/FormantGridArea.h

raw symbols SCIP
1 #cxx . . $ `<file>/foned/FormantGridArea.h`/ifndef _FormantGridArea_h_
2 #define _FormantGridArea_h_cxx . . $ `foned/FormantGridArea.h:2:9`!
3 /* FormantGridArea.h
4 *
5 * Copyright (C) 2008-2018,2020,2022 Paul Boersma & David Weenink
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 "FormantGrid.h"cxx . . $ `<file>/fon/FormantGrid.h`/
22 #include "RealTierArea.h"cxx . . $ `<file>/foned/RealTierArea.h`/
23
24 Thing_definecxx . . $ autoFormantGridArea# (FormantGridArea, RealTierArea) {
25 FormantGridcxx . . $ FormantGrid# _formantGridcxx . . $ structFormantGridArea#_formantGrid.;
26 FormantGridcxx . . $ FormantGrid# formantGridcxx . . $ structFormantGridArea#formantGrid(34e69b399e0d091).() { return ourcxx . . $ `melder/melder.h:42:9`! _formantGridcxx . . $ structFormantGridArea#_formantGrid.; }
27
28 bool editingBandwidthscxx . . $ structFormantGridArea#editingBandwidths. = false;
29 integercxx . . $ integer# selectedFormantcxx . . $ structFormantGridArea#selectedFormant. = 1;
30 GuiMenuItemcxx . . $ GuiMenuItem# d_bandwidthsTogglecxx . . $ structFormantGridArea#d_bandwidthsToggle.;
31
32 void v_updateScalingcxx . . $ structFormantGridArea#v_updateScaling(49f6e7a06ebc5aa8). () override {
33 if (ourcxx . . $ `melder/melder.h:42:9`! editingBandwidthscxx . . $ structFormantGridArea#editingBandwidths.) {
34 Melder_assertcxx . . $ structFormantGridArea#instancePref_bandwidthFloor(21b6c25e127938e2). (isdefined (ourcxx . . $ `melder/melder.h:42:9`! instancePref_bandwidthFloor()));
35 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (ourcxx . . $ `melder/melder.h:42:9`! instancePref_bandwidthCeiling()));
36 ourcxx . . $ `melder/melder.h:42:9`! ymincxx . . $ structRealTierArea#ymin. = ourcxx . . $ `melder/melder.h:42:9`! instancePref_bandwidthFloorcxx . . $ structFormantGridArea#instancePref_bandwidthFloor(21b6c25e127938e2).();
37 ourcxx . . $ `melder/melder.h:42:9`! ymaxcxx . . $ structRealTierArea#ymax. = ourcxx . . $ `melder/melder.h:42:9`! instancePref_bandwidthCeilingcxx . . $ structFormantGridArea#instancePref_bandwidthCeiling(21b6c25e127938e2).();
38 } else {
39 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (ourcxx . . $ `melder/melder.h:42:9`! instancePref_formantFloor()));
40 Melder_assertcxx . . $ isdefined(f8197d536af80c96). (isdefined (ourcxx . . $ `melder/melder.h:42:9`! instancePref_formantCeiling()));
41 ourcxx . . $ `melder/melder.h:42:9`! ymincxx . . $ structRealTierArea#ymin. = ourcxx . . $ `melder/melder.h:42:9`! instancePref_formantFloorcxx . . $ structFormantGridArea#instancePref_formantFloor(21b6c25e127938e2).();
42 ourcxx . . $ `melder/melder.h:42:9`! ymaxcxx . . $ structRealTierArea#ymax. = ourcxx . . $ `melder/melder.h:42:9`! instancePref_formantCeilingcxx . . $ structFormantGridArea#instancePref_formantCeiling(21b6c25e127938e2).();
43 }
44 if (ourcxx . . $ `melder/melder.h:42:9`! realTiercxx . . $ structRealTierArea#realTier(4001a6d851086b3b).() && ourcxx . . $ `melder/melder.h:42:9`! realTiercxx . . $ structRealTierArea#realTier(4001a6d851086b3b).() -> pointscxx . . $ structRealTier#points..sizecxx . . $ CollectionOf#size. > 0) {
45 Melder_assertcxx . . $ structRealTierArea#v_maximumLegalY(31fa7155c10fdd13). (! (ourcxx . . $ `melder/melder.h:42:9`! v_maximumLegalY() < ourcxx . . $ `melder/melder.h:42:9`! v_minimumLegalY())); // NaN-safe
46 const double minimumValue = Melder_clippedcxx . . $ Melder_clipped(5eb09607cedc971b). (ourcxx . . $ `melder/melder.h:42:9`! v_minimumLegalYcxx . . $ structFormantGridArea#v_minimumLegalY(31fa7155c10fdd13).(), RealTier_getMinimumValuecxx . . $ RealTier_getMinimumValue(77f29e426b60f650). (ourcxx . . $ `melder/melder.h:42:9`! realTiercxx . . $ structRealTierArea#realTier(4001a6d851086b3b).()), ourcxx . . $ `melder/melder.h:42:9`! v_maximumLegalYcxx . . $ structRealTierArea#v_maximumLegalY(31fa7155c10fdd13).());
47 const double maximumValue = Melder_clippedcxx . . $ Melder_clipped(5eb09607cedc971b). (ourcxx . . $ `melder/melder.h:42:9`! v_minimumLegalYcxx . . $ structFormantGridArea#v_minimumLegalY(31fa7155c10fdd13).(), RealTier_getMaximumValuecxx . . $ RealTier_getMaximumValue(77f29e426b60f650). (ourcxx . . $ `melder/melder.h:42:9`! realTiercxx . . $ structRealTierArea#realTier(4001a6d851086b3b).()), ourcxx . . $ `melder/melder.h:42:9`! v_maximumLegalYcxx . . $ structRealTierArea#v_maximumLegalY(31fa7155c10fdd13).());
48 Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& ourcxx . . $ `melder/melder.h:42:9`! ymincxx . . $ structRealTierArea#ymin., minimumValue);
49 Melder_clipLeftcxx . . $ Melder_clipLeft(6245cd023a7d1552). (maximumValue, & ourcxx . . $ `melder/melder.h:42:9`! ymaxcxx . . $ structRealTierArea#ymax.);
50 }
51 if (ourcxx . . $ `melder/melder.h:42:9`! ycursorcxx . . $ structRealTierArea#ycursor. <= ourcxx . . $ `melder/melder.h:42:9`! ymincxx . . $ structRealTierArea#ymin. || ourcxx . . $ `melder/melder.h:42:9`! ycursorcxx . . $ structRealTierArea#ycursor. >= ourcxx . . $ `melder/melder.h:42:9`! ymaxcxx . . $ structRealTierArea#ymax.)
52 ourcxx . . $ `melder/melder.h:42:9`! ycursorcxx . . $ structRealTierArea#ycursor. = 0.382 * ourcxx . . $ `melder/melder.h:42:9`! ymincxx . . $ structRealTierArea#ymin. + 0.618 * ourcxx . . $ `melder/melder.h:42:9`! ymaxcxx . . $ structRealTierArea#ymax.;
53 }
54 conststring32cxx . . $ conststring32# v_menuTitlecxx . . $ structFormantGridArea#v_menuTitle(1912f6684645c851). ()
55 override { return U"FormantGrid"; }
56 double v_minimumLegalYcxx . . $ structFormantGridArea#v_minimumLegalY(31fa7155c10fdd13). ()
57 override { return 0.0; }
58 conststring32cxx . . $ conststring32# v_rightTickUnitscxx . . $ structFormantGridArea#v_rightTickUnits(1912f6684645c851). ()
59 override { return U" Hz"; }
60 void v_drawInsidecxx . . $ structFormantGridArea#v_drawInside(49f6e7a06ebc5aa8). ()
61 override;
62 void v_createMenuscxx . . $ structFormantGridArea#v_createMenus(49f6e7a06ebc5aa8). ()
63 override;
64
65 virtual bool v_hasSourceMenucxx . . $ structFormantGridArea#v_hasSourceMenu(c9857a73d68e59ba). () { return true; }
66
67 #include "FormantGridArea_prefs.h"cxx . . $ `<file>/foned/FormantGridArea_prefs.h`/
68 };
69
70 DEFINE_FunctionArea_createcxx . . $ FunctionArea_init(fcb57ab2b3c1d4b0). (FormantGridArea, FormantGrid)
71
72 void FormantGridArea_playPartcxx . . $ FormantGridArea_playPart(9c4fed6f51f60245). (FormantGridAreacxx . . $ FormantGridArea# me, double startTime, double endTime, Sound_PlayCallbackcxx . . $ Sound_PlayCallback# playCallback, Thingcxx . . $ Thing# playBoss);
73
74 /* End of file FormantGridArea.h */
75 #endif