Debian Codegraph @

fon/PointProcess_and_Sound.h

raw
1 /* PointProcess_and_Sound.h
2 *
3 * Copyright (C) 1992-2011,2015-2017,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 "PointProcess.h"
20 #include "Sound.h"
21
22 autoSound PointProcess_to_Sound_pulseTrain (PointProcess me, double samplingFrequency,
23 double adaptFactor, double adaptTime, integer interpolationDepth);
24 /*
25 Function:
26 create a time signal out of a point process.
27 Preconditions:
28 samplingFrequency > 0.0;
29 Arguments:
30 "adaptFactor" defaults to 1.
31 "adaptTime" defaults to 0.
32 "interpolationDepth" is the number of samples for sinxx interpolation in each direction.
33 */
34
35 autoSound PointProcess_to_Sound_phonation
36 (PointProcess me, double samplingFrequency, double adaptFactor, double maximumPeriod,
37 double openPhase, double collisionPhase, double power1, double power2);
38 #define PointProcess_to_Sound_phonation_DEFAULT_ADAPT_FACTOR 1.0
39 #define PointProcess_to_Sound_phonation_DEFAULT_MAXIMUM_PERIOD 0.05
40 #define PointProcess_to_Sound_phonation_DEFAULT_OPEN_PHASE 0.7
41 #define PointProcess_to_Sound_phonation_DEFAULT_COLLISION_PHASE 0.03
42 #define PointProcess_to_Sound_phonation_DEFAULT_POWER_1 3.0
43 #define PointProcess_to_Sound_phonation_DEFAULT_POWER_2 4.0
44
45 void PointProcess_playPart (PointProcess me, double tmin, double tmax, Sound_PlayCallback callback, Thing boss);
46 void PointProcess_play (PointProcess me, Sound_PlayCallback callback, Thing boss);
47 void PointProcess_hum (PointProcess me, double tmin, double tmax, Sound_PlayCallback callback, Thing boss);
48 autoSound PointProcess_to_Sound_hum (PointProcess me);
49
50 /* End of file PointProcess_and_Sound.h */