Debian Codegraph @

fon/Ltas.h

raw symbols SCIP
1 #cxx . . $ `<file>/fon/Ltas.h`/ifndef _Ltas_h_
2 #define _Ltas_h_cxx . . $ `fon/Ltas.h:2:9`!
3 /* Ltas.h
4 *
5 * Copyright (C) 1992-2012,2015-2019,2022,2023 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 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 "Spectrum.h"cxx . . $ `<file>/fon/Spectrum.h`/
22 #include "Sound.h"cxx . . $ `<file>/fon/Sound.h`/
23 #include "PointProcess.h"cxx . . $ `<file>/fon/PointProcess.h`/
24 #include "Collection.h"cxx . . $ `<file>/sys/Collection.h`/
25
26 Thing_definecxx . . $ Ltas# (Ltas, Vector) {
27 void v1_infocxx . . $ structLtas#v1_info(49f6e7a06ebc5aa8). ()
28 override;
29 int v_domainQuantitycxx . . $ structLtas#v_domainQuantity(455f465bc33b4cdf). () const
30 override { return MelderQuantity_FREQUENCY_HERTZcxx . . $ `melder/melder_quantity.h:23:9`!; }
31 double v_convertStandardToSpecialUnitcxx . . $ structLtas#v_convertStandardToSpecialUnit(d783654ce2b2ffd0). (double value, integercxx . . $ integer# level, int unit) const
32 override;
33 double v_convertSpecialToStandardUnitcxx . . $ structLtas#v_convertSpecialToStandardUnit(d783654ce2b2ffd0). (double value, integercxx . . $ integer# level, int unit) const
34 override;
35 };
36
37 /*
38 Attributes:
39 xmin // Minimum frequency (Hz).
40 xmax > xmin // Maximum frequency (Hz).
41 nx >= 1 // Number of bands.
42 dx > 0.0 // Band width (Hz).
43 x1 // Centre of first band (Hz).
44 ymin, ymax, dy, y1 = 1.0
45 ny = 1
46 z [1] [1..nx] // The intensity per band, in dB/Hz.
47 */
48
49 autoLtascxx . . $ autoLtas# Ltas_createcxx . . $ Ltas_create(648e44e4ad796074). (integercxx . . $ integer# nx, double dx);
50 /*
51 Function:
52 create an Ltas.
53 Preconditions:
54 nx >= 1;
55 dx > 0.0;
56 Postconditions:
57 my xmin == 0.0; my ymin == 1;
58 my xmax == nx * dx; my ymax == 1;
59 my nx == nx; my ny == 1;
60 my dx == dx; my dy == 1;
61 my x1 == 0.5 * dx; my y1 == 1;
62 my z [1] [1..nx] == 1e-4; // straight tube, area 1 cm2.
63 */
64
65 void Ltas_drawcxx . . $ Ltas_draw(a12d7cd20dacbea1). (Ltascxx . . $ Ltas# me, Graphicscxx . . $ Graphics# g, double fmin, double fmax,
66 double minimum, double maximum, bool garnish, conststring32cxx . . $ conststring32# method);
67
68 autoMatrixcxx . . $ autoMatrix# Ltas_to_Matrixcxx . . $ Ltas_to_Matrix(caf2c528c1811973). (Ltascxx . . $ Ltas# me);
69 autoLtascxx . . $ autoLtas# Matrix_to_Ltascxx . . $ Matrix_to_Ltas(55ea76051176881f). (Matrixcxx . . $ Matrix# me);
70
71 Collection_definecxx . . $ autoSomeThing# (LtasBag, CollectionOf, Ltas) {
72 };
73
74 autoLtascxx . . $ autoLtas# Ltases_mergecxx . . $ Ltases_merge(36736a616dc7c926). (LtasBagcxx . . $ LtasBag# ltases);
75 autoLtascxx . . $ autoLtas# Ltases_averagecxx . . $ Ltases_average(36736a616dc7c926). (LtasBagcxx . . $ LtasBag# ltases);
76
77 autoLtascxx . . $ autoLtas# Ltas_computeTrendLinecxx . . $ Ltas_computeTrendLine(5dfb67f1c4ab263e). (Ltascxx . . $ Ltas# me, double fmin, double fmax);
78 autoLtascxx . . $ autoLtas# Ltas_subtractTrendLinecxx . . $ Ltas_subtractTrendLine(5dfb67f1c4ab263e). (Ltascxx . . $ Ltas# me, double fmin, double fmax);
79
80 /* Direct computations. */
81
82 autoLtascxx . . $ autoLtas# Spectrum_to_Ltascxx . . $ Spectrum_to_Ltas(8eaea613250bbc86). (Spectrumcxx . . $ Spectrum# me, double bandwidth);
83 autoLtascxx . . $ autoLtas# Spectrum_to_Ltas_1to1cxx . . $ Spectrum_to_Ltas_1to1(f1266e571d43bf18). (Spectrumcxx . . $ Spectrum# me);
84 autoLtascxx . . $ autoLtas# PointProcess_Sound_to_Ltascxx . . $ PointProcess_Sound_to_Ltas(112b4bca1360aebe). (PointProcesscxx . . $ PointProcess# pulses, Soundcxx . . $ Sound# sound,
85 double maximumFrequency, double bandWidth,
86 double shortestPeriod, double longestPeriod, double maximumPeriodFactor);
87 autoLtascxx . . $ autoLtas# PointProcess_Sound_to_Ltas_harmonicscxx . . $ PointProcess_Sound_to_Ltas_harmonics(93701012d179b3cf). (PointProcesscxx . . $ PointProcess# pulses, Soundcxx . . $ Sound# sound,
88 integercxx . . $ integer# maximumHarmonic,
89 double shortestPeriod, double longestPeriod, double maximumPeriodFactor);
90
91 /* Shortcuts. */
92
93 autoLtascxx . . $ autoLtas# Sound_to_Ltascxx . . $ Sound_to_Ltas(348e09b2d2208086). (Soundcxx . . $ Sound# me, double bandwidth);
94 autoLtascxx . . $ autoLtas# Sound_to_Ltas_pitchCorrectedcxx . . $ Sound_to_Ltas_pitchCorrected(90227e30b330d163). (Soundcxx . . $ Sound# sound, double pitchFloor, double pitchCeiling,
95 double maximumFrequency, double bandWidth,
96 double shortestPeriod, double longestPeriod, double maximumPeriodFactor);
97
98 double Ltas_getSlopecxx . . $ Ltas_getSlope(d983d55a8d36cccb). (Ltascxx . . $ Ltas# me, double f1min, double f1max, double f2min, double f2max, int averagingUnits);
99 double Ltas_getLocalPeakHeightcxx . . $ Ltas_getLocalPeakHeight(d983d55a8d36cccb). (Ltascxx . . $ Ltas# me, double environmentMin, double environmentMax, double peakMin, double peakMax, int averagingUnits);
100
101 /* End of file Ltas.h */
102 #endif