Debian Codegraph @

sensors/Electroglottogram.h

raw symbols SCIP
1 #cxx . . $ `<file>/sensors/Electroglottogram.h`/ifndef _Electroglottogram_h_
2 #define _Electroglottogram_h_cxx . . $ `sensors/Electroglottogram.h:2:9`!
3 /* Electroglottogram.h
4 *
5 * Copyright (C) 2019-2023 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 "Sound.h"cxx . . $ `<file>/fon/Sound.h`/
22 #include "AmplitudeTier.h"cxx . . $ `<file>/fon/AmplitudeTier.h`/
23 #include "TextGrid.h"cxx . . $ `<file>/fon/TextGrid.h`/
24
25 #include "Electroglottogram_enums.h"cxx . . $ `<file>/sensors/Electroglottogram_enums.h`/
26
27 Thing_definecxx . . $ `sys/Thing.h:60:9`! (Electroglottogram, Sound) {
28 void v1_infocxx . . $ structElectroglottogram#v1_info(49f6e7a06ebc5aa8). ()
29 override;
30 };
31
32 /*
33 An Electroglottogram represents the degree of contact between the (vibrating) vocal folds during voice production.
34 It is measured at the throat.
35 It will be represented as a one channel Sound.
36 There might be an accompanying sound. They are both sampled at the same sampling frequency.
37 */
38
39 autoElectroglottogramcxx . . $ autoElectroglottogram# Electroglottogram_createcxx . . $ Electroglottogram_create(46f24b7387f8f30f). (double xmin, double xmax, integercxx . . $ integer# nx, double dx, double x1);
40
41 void Electroglottogram_drawStylizedcxx . . $ Electroglottogram_drawStylized(b6aa5169b3b84bbd). (Graphicscxx . . $ Graphics# g, bool marks, bool levels);
42
43 autoElectroglottogramcxx . . $ autoElectroglottogram# Sound_extractElectroglottogramcxx . . $ Sound_extractElectroglottogram(4ea7eb8653411c6d). (Soundcxx . . $ Sound# me, integercxx . . $ integer# channel, bool invert);
44
45 autoAmplitudeTiercxx . . $ autoAmplitudeTier# Electroglottogram_and_AmplitudeTiers_getLevelscxx . . $ Electroglottogram_and_AmplitudeTiers_getLevels(2c506c98b6e68fb5). (Electroglottogramcxx . . $ Electroglottogram# me, AmplitudeTiercxx . . $ AmplitudeTier# peaks, AmplitudeTiercxx . . $ AmplitudeTier# valleys, double closingLevelPercentage);
46
47 // TODO better name
48 autoTextTiercxx . . $ autoTextTier# Electroglottogram_to_TextTier_closedGlottiscxx . . $ Electroglottogram_to_TextTier_closedGlottis(d34116bdc0534c22). (Electroglottogramcxx . . $ Electroglottogram# me, double pitchFloor, double PitchCeiling, double closingThreshold, double silenceThreshold, kElectroglottogram_findClosedIntervalMethodcxx . . $ kElectroglottogram_findClosedIntervalMethod# method);
49
50 autoAmplitudeTiercxx . . $ autoAmplitudeTier# Electroglottogram_to_AmplitudeTier_levelscxx . . $ Electroglottogram_to_AmplitudeTier_levels(26855ed933eba4b0). (Electroglottogramcxx . . $ Electroglottogram# me, double pitchFloor, double pitchCeiling, double closingThreshold, autoAmplitudeTiercxx . . $ autoAmplitudeTier# *out_peaks, autoAmplitudeTiercxx . . $ autoAmplitudeTier# *out_valleys);
51
52 autoTextGridcxx . . $ autoTextGrid# Electroglottogram_to_TextGrid_closedGlottiscxx . . $ Electroglottogram_to_TextGrid_closedGlottis(5f0193a427665836). (Electroglottogramcxx . . $ Electroglottogram# me, double pitchFloor, double pitchCeiling, double closingThreshold, double peakThresholdFraction);
53
54 autoSoundcxx . . $ autoSound# Electroglottogram_derivativecxx . . $ Electroglottogram_derivative(d06b633b17213879). (Electroglottogramcxx . . $ Electroglottogram# me, double lowPassFrequency, double smoothing, double peakAmplitude);
55 /* The real derivative */
56
57 autoSoundcxx . . $ autoSound# Electroglottogram_firstCentralDifferencecxx . . $ Electroglottogram_firstCentralDifference(f4a160f94e6bf470). (Electroglottogramcxx . . $ Electroglottogram# me, double peakAmplitude);
58 /* d(EEG)/dt [col] = z [col+1] - z [col-1] */
59
60 autoElectroglottogramcxx . . $ autoElectroglottogram# Electroglottogram_highPassFiltercxx . . $ Electroglottogram_highPassFilter(2671f9865a5ef66a). (Electroglottogramcxx . . $ Electroglottogram# me, double fromFrequency, double smoothing);
61 /*
62 To remove drift.
63 */
64
65 autoSoundcxx . . $ autoSound# Electroglottogram_to_Soundcxx . . $ Electroglottogram_to_Sound(6d3c54e5a4940ed). (Electroglottogramcxx . . $ Electroglottogram# me);
66
67 #endif
68
69 /* End of file Electroglottogram.h */
70