| 1 | #cxx . . $ `<file>/fon/FormantGrid.h`/ifndef _FormantGrid_h_ |
| 2 | #define _FormantGrid_h_cxx . . $ `fon/FormantGrid.h:2:9`! |
| 3 | /* FormantGrid.h |
| 4 | * |
| 5 | * Copyright (C) 2008-2012,2014-2018,2025 Paul Boersma & David Weenink |
| 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"cxx . . $ `<file>/fon/RealTier.h`/ |
| 22 | #include "Sound.h"cxx . . $ `<file>/fon/Sound.h`/ |
| 23 | #include "Formant.h"cxx . . $ `<file>/fon/Formant.h`/ |
| 24 | |
| 25 | Thing_declarecxx . . $ constInterpreter# (Interpreter); |
| 26 | |
| 27 | #include "FormantGrid_def.h"cxx . . $ `<file>/fon/FormantGrid_def.h`/ |
| 28 | |
| 29 | void FormantGrid_initcxx . . $ FormantGrid_init(b9222a94efd1f8ed). (FormantGridcxx . . $ FormantGrid# me, double tmin, double tmax, integercxx . . $ integer# numberOfFormants); |
| 30 | autoFormantGridcxx . . $ autoFormantGrid# FormantGrid_createEmptycxx . . $ FormantGrid_createEmpty(73275a7b30af7b50). (double tmin, double tmax, integercxx . . $ integer# numberOfFormants); |
| 31 | |
| 32 | autoFormantGridcxx . . $ autoFormantGrid# FormantGrid_createcxx . . $ FormantGrid_create(8dccade83a8cf46e). (double tmin, double tmax, integercxx . . $ integer# numberOfFormants, |
| 33 | double initialFirstFormant, double initialFormantSpacing, |
| 34 | double initialFirstBandwidth, double initialBandwidthSpacing); |
| 35 | |
| 36 | double FormantGrid_getFormantAtTimecxx . . $ FormantGrid_getFormantAtTime(175baec10880f703). (constFormantGridcxx . . $ constFormantGrid# me, integercxx . . $ integer# formantNumber, double time); |
| 37 | double FormantGrid_getBandwidthAtTimecxx . . $ FormantGrid_getBandwidthAtTime(175baec10880f703). (constFormantGridcxx . . $ constFormantGrid# me, integercxx . . $ integer# formantNumber, double time); |
| 38 | |
| 39 | void FormantGrid_addFormantPointcxx . . $ FormantGrid_addFormantPoint(a8593809562a6688). (mutableFormantGridcxx . . $ mutableFormantGrid# me, integercxx . . $ integer# formantNumber, double time, double value); |
| 40 | void FormantGrid_addBandwidthPointcxx . . $ FormantGrid_addBandwidthPoint(a8593809562a6688). (mutableFormantGridcxx . . $ mutableFormantGrid# me, integercxx . . $ integer# formantNumber, double time, double value); |
| 41 | void FormantGrid_removeFormantPointsBetweencxx . . $ FormantGrid_removeFormantPointsBetween(a8593809562a6688). (mutableFormantGridcxx . . $ mutableFormantGrid# me, integercxx . . $ integer# formantNumber, double tmin, double tmax); |
| 42 | void FormantGrid_removeBandwidthPointsBetweencxx . . $ FormantGrid_removeBandwidthPointsBetween(a8593809562a6688). (mutableFormantGridcxx . . $ mutableFormantGrid# me, integercxx . . $ integer# formantNumber, double tmin, double tmax); |
| 43 | |
| 44 | void Sound_FormantGrid_filter_inplacecxx . . $ Sound_FormantGrid_filter_inplace(c894ca9e037130f5). (mutableSoundcxx . . $ mutableSound# me, constFormantGridcxx . . $ constFormantGrid# formantGrid); |
| 45 | autoSoundcxx . . $ autoSound# Sound_FormantGrid_filtercxx . . $ Sound_FormantGrid_filter(aea610c363f1f102). (constSoundcxx . . $ constSound# me, constFormantGridcxx . . $ constFormantGrid# formantGrid); |
| 46 | autoSoundcxx . . $ autoSound# Sound_FormantGrid_filter_noscalecxx . . $ Sound_FormantGrid_filter_noscale(aea610c363f1f102). (constSoundcxx . . $ constSound# me, constFormantGridcxx . . $ constFormantGrid# formantGrid); |
| 47 | |
| 48 | autoSoundcxx . . $ autoSound# FormantGrid_to_Soundcxx . . $ FormantGrid_to_Sound(d788281f49b8a3b8). ( |
| 49 | constFormantGridcxx . . $ constFormantGrid# me, |
| 50 | double samplingFrequency, // the sample rate of the resulting Sound |
| 51 | double tStart, double f0Start, // time and F0 of the first pitch point |
| 52 | double tMid, double f0Mid, // time and F0 of the second pitch point |
| 53 | double tEnd, double f0End, // time and F0 of the third pitch point |
| 54 | double adaptFactor, double maximumPeriod, // pulse generation settings |
| 55 | double openPhase, double collisionPhase, double power1, double power2 // phonation shape settings |
| 56 | ); |
| 57 | void FormantGrid_playPartcxx . . $ FormantGrid_playPart(ac04658399c42f9c). ( |
| 58 | constFormantGridcxx . . $ constFormantGrid# me, |
| 59 | double tmin, double tmax, // the time range of the part to play |
| 60 | double samplingFrequency, // the sample rate of the resulting Sound |
| 61 | double tStart, double f0Start, // time and F0 of the first pitch point |
| 62 | double tMid, double f0Mid, // time and F0 of the second pitch point |
| 63 | double tEnd, double f0End, // time and F0 of the third pitch point |
| 64 | double adaptFactor, double maximumPeriod, // pulse generation settings |
| 65 | double openPhase, double collisionPhase, double power1, double power2, // phonation shape settings |
| 66 | Sound_PlayCallbackcxx . . $ Sound_PlayCallback# playCallback, mutableThingcxx . . $ mutableThing# playBoss // callback to boss: cancel playing, show running cursor... |
| 67 | ); |
| 68 | |
| 69 | void FormantGrid_formula_frequenciescxx . . $ FormantGrid_formula_frequencies(e82ad802bc23bc8c). ( |
| 70 | mutableFormantGridcxx . . $ mutableFormantGrid# me, // the source (and often also the target, namely if `thee` is null) |
| 71 | conststring32cxx . . $ conststring32# expression, |
| 72 | Interpretercxx . . $ Interpreter# interpreter, |
| 73 | mutableFormantGridcxx . . $ mutableFormantGrid# thee // the target (if not null) |
| 74 | ); |
| 75 | void FormantGrid_formula_bandwidthscxx . . $ FormantGrid_formula_bandwidths(e82ad802bc23bc8c). ( |
| 76 | mutableFormantGridcxx . . $ mutableFormantGrid# me, // the source (and often also the target, namely if `thee` is null) |
| 77 | conststring32cxx . . $ conststring32# expression, |
| 78 | Interpretercxx . . $ Interpreter# interpreter, |
| 79 | mutableFormantGridcxx . . $ mutableFormantGrid# thee // the target (if not null) |
| 80 | ); |
| 81 | |
| 82 | autoFormantGridcxx . . $ autoFormantGrid# Formant_downto_FormantGridcxx . . $ Formant_downto_FormantGrid(e5fbb1b24a0773f9). (constFormantcxx . . $ constFormant# me); |
| 83 | autoFormantcxx . . $ autoFormant# FormantGrid_to_Formantcxx . . $ FormantGrid_to_Formant(672bf9422707277). (constFormantGridcxx . . $ constFormantGrid# me, double dt, double intensity); |
| 84 | |
| 85 | autoSoundcxx . . $ autoSound# Sound_Formant_filtercxx . . $ Sound_Formant_filter(138f167c247d8bc6). (constSoundcxx . . $ constSound# me, constFormantcxx . . $ constFormant# formant); |
| 86 | autoSoundcxx . . $ autoSound# Sound_Formant_filter_noscalecxx . . $ Sound_Formant_filter_noscale(138f167c247d8bc6). (constSoundcxx . . $ constSound# me, constFormantcxx . . $ constFormant# formant); |
| 87 | |
| 88 | /* End of file FormantGrid.h */ |
| 89 | #endif |