Debian Codegraph @

fon/PitchTier.h

raw
1 #ifndef _PitchTier_h_
2 #define _PitchTier_h_
3 /* PitchTier.h
4 *
5 * Copyright (C) 1992-2005,2007,2010-2012,2015-2018,2021-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 "RealTier.h"
22 #include "Graphics.h"
23 #include "Sound.h"
24 #include "Pitch.h"
25
26 /********** class PitchTier **********/
27
28 Thing_define (PitchTier, RealTier) {
29 void v1_info ()
30 override;
31 int v_domainQuantity () const
32 override { return MelderQuantity_TIME_SECONDS; }
33 };
34
35 autoPitchTier PitchTier_create (double tmin, double tmax);
36 /*
37 Postconditions:
38 result -> xmin == tmin;
39 result -> xmax == tmax;
40 result -> points.size == 0;
41 */
42
43 void PitchTier_shiftFrequencies (PitchTier me, double tmin, double tmax, double shift, kPitch_unit units);
44 void PitchTier_multiplyFrequencies (PitchTier me, double tmin, double tmax, double factor);
45
46 void PitchTier_draw (PitchTier me, Graphics g, double tmin, double tmax,
47 double fmin, double fmax, bool garnish, conststring32 method);
48
49 autoPitchTier PointProcess_upto_PitchTier (PointProcess me, double frequency);
50 void PitchTier_stylize (PitchTier me, double frequencyResolution, bool useSemitones);
51
52 void PitchTier_writeToPitchTierSpreadsheetFile (PitchTier me, MelderFile file);
53 void PitchTier_writeToHeaderlessSpreadsheetFile (PitchTier me, MelderFile file);
54
55 autoPitchTier RealTier_to_PitchTier (RealTier me);
56
57 /* End of file PitchTier.h */
58 #endif