Debian Codegraph @

fon/praat_TimeFrameSampled.cpp

raw symbols SCIP
1 /* praat_TimeFrameSampled.cpp
2 *
3 * Copyright (C) 2016,2017,2019,2021,2022 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "praat_TimeFrameSampled.h"cxx . . $ `<file>/fon/praat_TimeFrameSampled.h`/
20
21 // MARK: - TIMEFRAMESAMPLED
22
23 DIRECTcxx . . $ `sys/praatM.h:412:9`! (INTEGER_TimeFrameSampled_getNumberOfFrames) {
24 QUERY_ONE_FOR_REALcxx . . $ `sys/praatM.h:827:9`! (Sampled)
25 const integercxx . . $ integer# result = mycxx . . $ `melder/melder.h:44:9`! nxcxx . . $ structSampled#nx.;
26 QUERY_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:829:9`! (U" frames");
27 }
28
29 FORMcxx . . $ `sys/praatM.h:79:9`! (REAL_TimeFrameSampled_getFrameNumberFromTime, U"Get frame number from time", U"Get frame number from time...") {
30 REALcxx . . $ `sys/praatM.h:92:9`! (time, U"Time (s)", U"0.5")
31 OKcxx . . $ `sys/praatM.h:327:9`!
32 DOcxx . . $ `sys/praatM.h:354:9`!
33 QUERY_ONE_FOR_REALcxx . . $ `sys/praatM.h:827:9`! (Sampled)
34 const double result = Sampled_xToIndexcxx . . $ Sampled_xToIndex(b395a896ba2eff9a). (me, time);
35 QUERY_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:829:9`! (U" (frame as a real number)")
36 }
37
38 DIRECTcxx . . $ `sys/praatM.h:412:9`! (REAL_TimeFrameSampled_getTimeStep) {
39 QUERY_ONE_FOR_REALcxx . . $ `sys/praatM.h:827:9`! (Sampled)
40 const double result = mycxx . . $ `melder/melder.h:44:9`! dxcxx . . $ structSampled#dx.;
41 QUERY_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:829:9`! (U" seconds")
42 }
43
44 FORMcxx . . $ `sys/praatM.h:79:9`! (REAL_TimeFrameSampled_getTimeFromFrameNumber, U"Get time from frame number", U"Get time from frame number...") {
45 NATURALcxx . . $ `sys/praatM.h:120:9`! (frameNumber, U"Frame number", U"1")
46 OKcxx . . $ `sys/praatM.h:327:9`!
47 DOcxx . . $ `sys/praatM.h:354:9`!
48 QUERY_ONE_FOR_REALcxx . . $ `sys/praatM.h:827:9`! (Sampled)
49 const double result = Sampled_indexToXcxx . . $ Sampled_indexToX(65bcd2c9acbb3dd5). (me, frameNumber);
50 QUERY_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:829:9`! (U" seconds")
51 }
52
53 DIRECTcxx . . $ `sys/praatM.h:412:9`! (NUMVEC_TimeFrameSampled_listAllFrameTimes) {
54 QUERY_ONE_FOR_REAL_VECTORcxx . . $ `sys/praatM.h:947:9`! (Sampled)
55 autoVECcxx . . $ autoVEC# result = Sampled_listAllXValuescxx . . $ Sampled_listAllXValues(9c7a04c4874f3417). (me);
56 QUERY_ONE_FOR_REAL_VECTOR_ENDcxx . . $ `sys/praatM.h:949:9`!
57 }
58
59 // MARK: - buttons
60
61 void praat_TimeFrameSampled_query_initcxx . . $ praat_TimeFrameSampled_query_init(b2b8400651464df9). (ClassInfocxx . . $ ClassInfo# klas) {
62 praat_TimeFunction_query_initcxx . . $ praat_TimeFunction_query_init(b2b8400651464df9). (klas);
63 praat_addAction1cxx . . $ `sys/praat.h:72:9`! (klas, 1, U"Query time sampling", nullptr, 1, nullptr);
64 praat_addAction1cxx . . $ `sys/praat.h:72:9`! (klas, 1, U"Get number of frames", nullptr, 2, INTEGER_TimeFrameSampled_getNumberOfFrames);
65 praat_addAction1cxx . . $ `sys/praat.h:72:9`! (klas, 1, U"Get time step || Get frame length || Get frame duration", nullptr, 2, REAL_TimeFrameSampled_getTimeStep);
66 // alternatives GuiMenu_DEPRECATED_2004
67 praat_addAction1cxx . . $ `sys/praat.h:72:9`! (klas, 1, U"Get time from frame number... || Get time from frame...", nullptr, 2, REAL_TimeFrameSampled_getTimeFromFrameNumber);
68 // alternatives GuiMenu_DEPRECATED_2004
69 praat_addAction1cxx . . $ `sys/praat.h:72:9`! (klas, 1, U"List all frame times", nullptr, 2, NUMVEC_TimeFrameSampled_listAllFrameTimes);
70 praat_addAction1cxx . . $ `sys/praat.h:72:9`! (klas, 1, U"Get frame number from time... || Get frame from time...", nullptr, 2, REAL_TimeFrameSampled_getFrameNumberFromTime);
71 // alternatives GuiMenu_DEPRECATED_2004
72 }
73
74 /* End of file praat_TimeFrameSampled.cpp */