| 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"cxx . . $ `<file>/fon/PointProcess.h`/ |
| 20 | #include "Sound.h"cxx . . $ `<file>/fon/Sound.h`/ |
| 21 | |
| 22 | autoSoundcxx . . $ autoSound# PointProcess_to_Sound_pulseTraincxx . . $ PointProcess_to_Sound_pulseTrain(187ff6b615b4a390). (PointProcesscxx . . $ PointProcess# me, double samplingFrequency, |
| 23 | double adaptFactor, double adaptTime, integercxx . . $ 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 | autoSoundcxx . . $ autoSound# PointProcess_to_Sound_phonationcxx . . $ PointProcess_to_Sound_phonation(b0e41f72db7b1350). |
| 36 | (PointProcesscxx . . $ 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_FACTORcxx . . $ `fon/PointProcess_and_Sound.h:38:9`! 1.0 |
| 39 | #define PointProcess_to_Sound_phonation_DEFAULT_MAXIMUM_PERIODcxx . . $ `fon/PointProcess_and_Sound.h:39:9`! 0.05 |
| 40 | #define PointProcess_to_Sound_phonation_DEFAULT_OPEN_PHASEcxx . . $ `fon/PointProcess_and_Sound.h:40:9`! 0.7 |
| 41 | #define PointProcess_to_Sound_phonation_DEFAULT_COLLISION_PHASEcxx . . $ `fon/PointProcess_and_Sound.h:41:9`! 0.03 |
| 42 | #define PointProcess_to_Sound_phonation_DEFAULT_POWER_1cxx . . $ `fon/PointProcess_and_Sound.h:42:9`! 3.0 |
| 43 | #define PointProcess_to_Sound_phonation_DEFAULT_POWER_2cxx . . $ `fon/PointProcess_and_Sound.h:43:9`! 4.0 |
| 44 | |
| 45 | void PointProcess_playPartcxx . . $ PointProcess_playPart(76318b02fce8ae70). (PointProcesscxx . . $ PointProcess# me, double tmin, double tmax, Sound_PlayCallbackcxx . . $ Sound_PlayCallback# callback, Thingcxx . . $ Thing# boss); |
| 46 | void PointProcess_playcxx . . $ PointProcess_play(9b74fc6f188c3c59). (PointProcesscxx . . $ PointProcess# me, Sound_PlayCallbackcxx . . $ Sound_PlayCallback# callback, Thingcxx . . $ Thing# boss); |
| 47 | void PointProcess_humcxx . . $ PointProcess_hum(76318b02fce8ae70). (PointProcesscxx . . $ PointProcess# me, double tmin, double tmax, Sound_PlayCallbackcxx . . $ Sound_PlayCallback# callback, Thingcxx . . $ Thing# boss); |
| 48 | autoSoundcxx . . $ autoSound# PointProcess_to_Sound_humcxx . . $ PointProcess_to_Sound_hum(e320a0d398950b85). (PointProcesscxx . . $ PointProcess# me); |
| 49 | |
| 50 | /* End of file PointProcess_and_Sound.h */ |