| 1 |
/* praat_KlattGrid_init.cpp |
| 2 |
* |
| 3 |
* Copyright (C) 2009-2021 David Weenink, 2011,2012,2014-2019,2021-2024,2026 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 3 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. See the GNU |
| 13 |
* 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 |
/* |
| 20 |
djmw 20090420 |
| 21 |
*/ |
| 22 |
|
| 23 |
#include "IntensityTierEditor.h" |
| 24 |
#include "KlattGridEditors.h" |
| 25 |
#include "KlattTable.h" |
| 26 |
|
| 27 |
#include "praat_TimeFunction.h" |
| 28 |
|
| 29 |
/******************* KlattGrid *********************************/ |
| 30 |
|
| 31 |
#define KlattGrid_4formants_addCommonField(formantType) \ |
| 32 |
OPTIONMENU_ENUM (kKlattGridFormantType, formantType, U"Formant type", kKlattGridFormantType::DEFAULT) |
| 33 |
|
| 34 |
#define KlattGrid_6formants_addCommonField(formantType) \ |
| 35 |
OPTIONMENU_ENUM (kKlattGridFormantType, formantType, U"Formant type", kKlattGridFormantType::DEFAULT) |
| 36 |
|
| 37 |
|
| 38 |
#define KlattGrid_PhonationGridPlayOptions_addCommonFields(useVoicing,useFlutter,useDoublePulsing,useCollisionPhase,useSpectralTilt,flowFunctionType,useFlowDerivative,useAspiration,useBreathiness) \ |
| 39 |
BOOLEAN (useVoicing, U"Voicing", true) \ |
| 40 |
BOOLEAN (useFlutter, U"Flutter", true) \ |
| 41 |
BOOLEAN (useDoublePulsing, U"Double pulsing", true) \ |
| 42 |
BOOLEAN (useCollisionPhase, U"Collision phase", true) \ |
| 43 |
BOOLEAN (useSpectralTilt, U"Spectral tilt", true) \ |
| 44 |
OPTIONMENU (flowFunctionType, U"Flow function", 1) \ |
| 45 |
OPTION (U"Powers in tiers") \ |
| 46 |
OPTION (U"t^2-t^3") \ |
| 47 |
OPTION (U"t^3-t^4") \ |
| 48 |
BOOLEAN (useFlowDerivative, U"Flow derivative", true) \ |
| 49 |
BOOLEAN (useAspiration, U"Aspiration", true) \ |
| 50 |
BOOLEAN (useBreathiness, U"Breathiness", true) |
| 51 |
|
| 52 |
static void KlattGrid_PhonationGridPlayOptions (KlattGrid me, int useVoicing, int useFlutter, int useDoublePulsing, |
| 53 |
int useCollisionPhase, int useSpectralTilt, int flowFunctionType, int useFlowDerivative, int useAspiration, int useBreathiness) |
| 54 |
{ |
| 55 |
PhonationGridPlayOptions pp = my phonation -> options.get(); |
| 56 |
pp -> voicing = useVoicing; |
| 57 |
pp -> flutter = useFlutter; |
| 58 |
pp -> doublePulsing = useDoublePulsing; |
| 59 |
pp -> collisionPhase = useCollisionPhase; |
| 60 |
pp -> spectralTilt = useSpectralTilt; |
| 61 |
pp -> flowFunction = flowFunctionType; |
| 62 |
pp -> flowDerivative = useFlowDerivative; |
| 63 |
pp -> aspiration = useAspiration; |
| 64 |
pp -> breathiness = useBreathiness; |
| 65 |
} |
| 66 |
|
| 67 |
#define KlattGrid_formantSelection_vocalTract_commonFields(filterModel,fromOralFormant,toOralFormant,fromNasalFormant,toNasalFormant,fromNasalAntiFormant,toNasalAntiFormant) \ |
| 68 |
OPTIONMENU_ENUM (kKlattGridFilterModel, filterModel, U"Filter model", kKlattGridFilterModel::DEFAULT) \ |
| 69 |
INTEGER (fromOralFormant, U"left Oral formant range", U"1") \ |
| 70 |
INTEGER (toOralFormant, U"right Oral formant range", U"5") \ |
| 71 |
INTEGER (fromNasalFormant, U"left Nasal formant range", U"1") \ |
| 72 |
INTEGER (toNasalFormant, U"right Nasal formant range", U"1") \ |
| 73 |
INTEGER (fromNasalAntiFormant, U"left Nasal antiformant range", U"1") \ |
| 74 |
INTEGER (toNasalAntiFormant, U"right Nasal antiformant range", U"1") |
| 75 |
|
| 76 |
static void KlattGrid_formantSelection_vocalTract (KlattGrid me, kKlattGridFilterModel filterModel, integer fromOralFormant, |
| 77 |
integer toOralFormant, integer fromNasalFormant, integer toNasalFormant, integer fromNasalAntiFormant, integer toNasalAntiFormant) |
| 78 |
{ |
| 79 |
VocalTractGridPlayOptions pv = my vocalTract -> options.get(); |
| 80 |
pv -> filterModel = filterModel; |
| 81 |
pv -> startOralFormant = fromOralFormant; |
| 82 |
pv -> endOralFormant = toOralFormant; |
| 83 |
pv -> startNasalFormant = fromNasalFormant; |
| 84 |
pv -> endNasalFormant = toNasalFormant; |
| 85 |
pv -> startNasalAntiFormant = fromNasalAntiFormant; |
| 86 |
pv -> endNasalAntiFormant = toNasalAntiFormant; |
| 87 |
} |
| 88 |
|
| 89 |
#define KlattGrid_formantSelection_coupling_commonFields(fromTrachealFormant,toTrachealFormant,fromTrachealAntiFormant,toTrachealAntiFormant,fromDeltaFormant,toDeltaFormant,fromDeltaBandwidth,toDeltaBandwidth) \ |
| 90 |
INTEGER (fromTrachealFormant, U"left Tracheal formant range", U"1") \ |
| 91 |
INTEGER (toTrachealFormant, U"right Tracheal formant range", U"1") \ |
| 92 |
INTEGER (fromTrachealAntiFormant, U"left Tracheal antiformant range", U"1") \ |
| 93 |
INTEGER (toTrachealAntiFormant, U"right Tracheal antiformant range", U"1") \ |
| 94 |
INTEGER (fromDeltaFormant, U"left Delta formant range", U"1") \ |
| 95 |
INTEGER (toDeltaFormant, U"right Delta formant range", U"1") \ |
| 96 |
INTEGER (fromDeltaBandwidth, U"left Delta bandwidth range", U"1") \ |
| 97 |
INTEGER (toDeltaBandwidth, U"right Delta bandwidth range", U"1") |
| 98 |
|
| 99 |
static void KlattGrid_formantSelection_coupling (KlattGrid me, integer fromTrachealFormant, integer toTrachealFormant, |
| 100 |
integer fromTrachealAntiFormant, integer toTrachealAntiFormant, integer fromDeltaFormant, integer toDeltaFormant, |
| 101 |
integer fromDeltaBandwidth, integer toDeltaBandwidth) |
| 102 |
{ |
| 103 |
CouplingGridPlayOptions pc = my coupling -> options.get(); |
| 104 |
pc -> startTrachealFormant = fromTrachealFormant; |
| 105 |
pc -> endTrachealFormant = toTrachealFormant; |
| 106 |
pc -> startTrachealAntiFormant = fromTrachealAntiFormant; |
| 107 |
pc -> endTrachealAntiFormant = toTrachealAntiFormant; |
| 108 |
pc -> startDeltaFormant = fromDeltaFormant; |
| 109 |
pc -> endDeltaFormant = toDeltaFormant; |
| 110 |
pc -> startDeltaBandwidth = fromDeltaBandwidth; |
| 111 |
pc -> endDeltaFormant = toDeltaBandwidth; |
| 112 |
} |
| 113 |
|
| 114 |
#define KlattGrid_formantSelection_frication_commonFields(fromFricationFormant,toFricationFormant,useFricationBypass) \ |
| 115 |
INTEGER (fromFricationFormant, U"left Frication formant range", U"1") \ |
| 116 |
INTEGER (toFricationFormant, U"right Frication formant range", U"6") \ |
| 117 |
BOOLEAN (useFricationBypass, U"Frication bypass", true) |
| 118 |
|
| 119 |
static void KlattGrid_formantSelection_frication (KlattGrid me, integer fromFricationFormant, integer toFricationFormant, int useFricationBypass) { |
| 120 |
FricationGridPlayOptions pf = my frication -> options.get(); |
| 121 |
pf -> startFricationFormant = fromFricationFormant; |
| 122 |
pf -> endFricationFormant = toFricationFormant; |
| 123 |
pf -> bypass = useFricationBypass; |
| 124 |
} |
| 125 |
|
| 126 |
DIRECT (CREATE_ONE__KlattGrid_createExample) { |
| 127 |
CREATE_ONE |
| 128 |
autoKlattGrid result = KlattGrid_createExample(); |
| 129 |
CREATE_ONE_END (U"example") |
| 130 |
} |
| 131 |
|
| 132 |
FORM (CREATE_ONE__KlattGrid_createFromVowel, U"Create KlattGrid from vowel", U"Create KlattGrid from vowel...") { |
| 133 |
WORD (name, U"Name", U"a") |
| 134 |
POSITIVE (duration, U"Duration (s)", U"0.4") |
| 135 |
POSITIVE (f0start, U"Pitch (Hz)", U"125.0") |
| 136 |
REAL (f1, U"F1 (Hz)", U"800.0") |
| 137 |
POSITIVE (b1, U"B1 (Hz)", U"50.0") |
| 138 |
REAL (f2, U"F2 (Hz)", U"1200.0") |
| 139 |
POSITIVE (b2, U"B2 (Hz)", U"50.0") |
| 140 |
REAL (f3, U"F3 (Hz)", U"2300.0") |
| 141 |
POSITIVE (b3, U"B3 (Hz)", U"100.0") |
| 142 |
REAL (f4, U"F4 (Hz)", U"2800.0") |
| 143 |
POSITIVE (bandWidthFraction, U"Bandwidth fraction", U"0.05") |
| 144 |
REAL (formantFrequencyInterval, U"Formant frequency interval (Hz)", U"1000.0") |
| 145 |
OK |
| 146 |
DO |
| 147 |
CREATE_ONE |
| 148 |
autoKlattGrid result = KlattGrid_createFromVowel (duration, f0start, f1, b1, f2, b2, f3, b3, f4, bandWidthFraction, formantFrequencyInterval); |
| 149 |
CREATE_ONE_END (name) |
| 150 |
} |
| 151 |
|
| 152 |
FORM (CREATE_ONE__KlattGrid_create, U"Create KlattGrid", U"Create KlattGrid...") { |
| 153 |
WORD (name, U"Name", U"kg") |
| 154 |
REAL (fromTime, U"Start time (s)", U"0.0") |
| 155 |
REAL (toTime, U"End time (s)", U"1.0") |
| 156 |
INTEGER (numberOfOralFormants, U"Number of oral formants", U"6") |
| 157 |
INTEGER (numberOfNasalFormants, U"Number of nasal formants", U"1") |
| 158 |
INTEGER (numberOfNasalAntiFormants, U"Number of nasal antiformants", U"1") |
| 159 |
INTEGER (numberOfFricationFormants, U"Number of frication formants", U"6") |
| 160 |
COMMENT (U"Coupling between source and filter") |
| 161 |
INTEGER (numberOfTrachealFormants, U"Number of tracheal formants", U"1") |
| 162 |
INTEGER (numberOfTrachealAntiFormants, U"Number of tracheal antiformants", U"1") |
| 163 |
INTEGER (numberOfDeltaFormants, U"Number of delta formants", U"1") |
| 164 |
OK |
| 165 |
DO |
| 166 |
Melder_require (fromTime < toTime, |
| 167 |
U"The start time must lie before the end time."); |
| 168 |
Melder_require (numberOfOralFormants >= 0 && numberOfNasalFormants >= 0 && numberOfNasalAntiFormants >= 0 |
| 169 |
&& numberOfTrachealFormants >= 0 && numberOfTrachealAntiFormants >= 0 |
| 170 |
&& numberOfFricationFormants >= 0 && numberOfDeltaFormants >= 0, |
| 171 |
U"No number of formants should be negative."); |
| 172 |
CREATE_ONE |
| 173 |
autoKlattGrid result = KlattGrid_create (fromTime, toTime, numberOfOralFormants, numberOfNasalFormants, numberOfNasalAntiFormants, numberOfTrachealFormants, numberOfTrachealAntiFormants, numberOfFricationFormants, numberOfDeltaFormants); |
| 174 |
CREATE_ONE_END (name) |
| 175 |
} |
| 176 |
|
| 177 |
#define KlattGrid_INSTALL_TIER_EDITOR(Name, name) \ |
| 178 |
DIRECT (EDITOR_ONE_KlattGrid_edit##Name##Tier) { \ |
| 179 |
EDITOR_ONE (a,KlattGrid) \ |
| 180 |
conststring32 id_and_name = Melder_cat (ID_AND_FULL_NAME, U": " #name); \ |
| 181 |
autoKlattGrid_##Name##TierEditor editor = KlattGrid_##Name##TierEditor_create (id_and_name, me); \ |
| 182 |
EDITOR_ONE_END \ |
| 183 |
} |
| 184 |
|
| 185 |
KlattGrid_INSTALL_TIER_EDITOR (Pitch, pitch) |
| 186 |
KlattGrid_INSTALL_TIER_EDITOR (VoicingAmplitude, voicing amplitude) |
| 187 |
KlattGrid_INSTALL_TIER_EDITOR (Flutter, flutter) |
| 188 |
KlattGrid_INSTALL_TIER_EDITOR (Power1, power1) |
| 189 |
KlattGrid_INSTALL_TIER_EDITOR (Power2, power2) |
| 190 |
KlattGrid_INSTALL_TIER_EDITOR (OpenPhase, open phase) |
| 191 |
KlattGrid_INSTALL_TIER_EDITOR (CollisionPhase, collision phase) |
| 192 |
KlattGrid_INSTALL_TIER_EDITOR (DoublePulsing, double pulsing) |
| 193 |
KlattGrid_INSTALL_TIER_EDITOR (AspirationAmplitude, aspiration amplitude) |
| 194 |
KlattGrid_INSTALL_TIER_EDITOR (BreathinessAmplitude, breathiness amplitude) |
| 195 |
KlattGrid_INSTALL_TIER_EDITOR (SpectralTilt, spectral tilt) |
| 196 |
|
| 197 |
KlattGrid_INSTALL_TIER_EDITOR (FricationBypass, frication bypass) |
| 198 |
KlattGrid_INSTALL_TIER_EDITOR (FricationAmplitude, frication amplitude) |
| 199 |
|
| 200 |
#undef KlattGrid_INSTALL_TIER_EDITOR |
| 201 |
|
| 202 |
#define KlattGRID_EDIT_FORMANTGRID(Name,formantType) \ |
| 203 |
DIRECT (EDITOR_ONE_KlattGrid_edit##Name##FormantGrid) { \ |
| 204 |
EDITOR_ONE (a,KlattGrid) \ |
| 205 |
conststring32 id_and_name = Melder_cat (ID_AND_FULL_NAME, U": ", KlattGrid_getFormantName (formantType), U" grid"); \ |
| 206 |
autoKlattGrid_FormantGridEditor editor = KlattGrid_FormantGridEditor_create (id_and_name, me, formantType); \ |
| 207 |
EDITOR_ONE_END \ |
| 208 |
} |
| 209 |
|
| 210 |
KlattGRID_EDIT_FORMANTGRID (Oral, kKlattGridFormantType::ORAL) |
| 211 |
KlattGRID_EDIT_FORMANTGRID (Nasal, kKlattGridFormantType::NASAL) |
| 212 |
KlattGRID_EDIT_FORMANTGRID (Tracheal, kKlattGridFormantType::TRACHEAL) |
| 213 |
KlattGRID_EDIT_FORMANTGRID (NasalAnti, kKlattGridFormantType::NASAL_ANTI) |
| 214 |
KlattGRID_EDIT_FORMANTGRID (TrachealAnti, kKlattGridFormantType::TRACHEAL_ANTI) |
| 215 |
KlattGRID_EDIT_FORMANTGRID (Delta, kKlattGridFormantType::DELTA) |
| 216 |
KlattGRID_EDIT_FORMANTGRID (Frication, kKlattGridFormantType::FRICATION) |
| 217 |
|
| 218 |
#undef KlattGRID_EDIT_FORMANTGRID |
| 219 |
|
| 220 |
#define KlattGrid_EDIT_FORMANT_AMPLITUDE_TIER(Name,name,formantType) \ |
| 221 |
FORM (EDITOR_ONE_KlattGrid_edit##Name##FormantAmplitudeTier, U"KlattGrid: View & Edit " #name " formant amplitude tier", nullptr) { \ |
| 222 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 223 |
OK \ |
| 224 |
DO \ |
| 225 |
EDITOR_ONE (a,KlattGrid) \ |
| 226 |
OrderedOf<structIntensityTier>* amp = KlattGrid_getAddressOfAmplitudes (me, formantType); \ |
| 227 |
if (! amp) \ |
| 228 |
Melder_throw (U"Unknown formant type"); \ |
| 229 |
if (formantNumber > amp->size) \ |
| 230 |
Melder_throw (U"Formant number does not exist."); \ |
| 231 |
conststring32 id_and_name = Melder_cat (ID_AND_FULL_NAME, U": ", KlattGrid_getFormantName (formantType), U" amplitude tier"); \ |
| 232 |
autoKlattGrid_DecibelTierEditor editor = KlattGrid_DecibelTierEditor_create (id_and_name, me, \ |
| 233 |
formantType, formantNumber); \ |
| 234 |
EDITOR_ONE_END \ |
| 235 |
} |
| 236 |
|
| 237 |
KlattGrid_EDIT_FORMANT_AMPLITUDE_TIER (Oral, oral, kKlattGridFormantType::ORAL) |
| 238 |
KlattGrid_EDIT_FORMANT_AMPLITUDE_TIER (Nasal, nasal, kKlattGridFormantType::NASAL) |
| 239 |
KlattGrid_EDIT_FORMANT_AMPLITUDE_TIER (Tracheal, tracheal, kKlattGridFormantType::TRACHEAL) |
| 240 |
KlattGrid_EDIT_FORMANT_AMPLITUDE_TIER (Frication, frication, kKlattGridFormantType::FRICATION) |
| 241 |
|
| 242 |
#undef KlattGrid_EDIT_FORMANT_AMPLITUDE_TIER |
| 243 |
|
| 244 |
#define KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE(Name,name,unit,default,requireCondition,requireMessage,newname,tiertype) \ |
| 245 |
FORM (QUERY_ONE_FOR_REAL__KlattGrid_get##Name##AtTime, U"KlattGrid: Get " #name " at time", nullptr) { \ |
| 246 |
REAL (time, U"Time", U"0.5") \ |
| 247 |
OK \ |
| 248 |
DO \ |
| 249 |
QUERY_ONE_FOR_REAL (KlattGrid) \ |
| 250 |
const double result = KlattGrid_get##Name##AtTime (me, time); \ |
| 251 |
QUERY_ONE_FOR_REAL_END (unit) \ |
| 252 |
} \ |
| 253 |
FORM (MODIFY_KlattGrid_add##Name##Point, U"KlattGrid: Add " #name " point", nullptr) { \ |
| 254 |
REAL (time, U"Time (s)", U"0.5") \ |
| 255 |
REAL (value, U"Value" unit, default) \ |
| 256 |
OK \ |
| 257 |
DO \ |
| 258 |
Melder_require (requireCondition, requireMessage); \ |
| 259 |
MODIFY_EACH (KlattGrid); \ |
| 260 |
KlattGrid_add##Name##Point (me, time, value); \ |
| 261 |
MODIFY_EACH_END \ |
| 262 |
} \ |
| 263 |
FORM (MODIFY_KlattGrid_remove##Name##Points, U"Remove " #name " points", nullptr) { \ |
| 264 |
REAL (fromTime, U"From time (s)", U"0.3") \ |
| 265 |
REAL (toTime, U"To time (s)", U"0.7") \ |
| 266 |
OK \ |
| 267 |
DO \ |
| 268 |
MODIFY_EACH (KlattGrid); \ |
| 269 |
KlattGrid_remove##Name##Points (me, fromTime, toTime); \ |
| 270 |
MODIFY_EACH_END \ |
| 271 |
} \ |
| 272 |
DIRECT (CONVERT_EACH_TO_ONE__KlattGrid_extract##Name##Tier) { \ |
| 273 |
CONVERT_EACH_TO_ONE (KlattGrid) \ |
| 274 |
autoDaata result = KlattGrid_extract##Name##Tier (me); \ |
| 275 |
CONVERT_EACH_TO_ONE_END (newname) \ |
| 276 |
} \ |
| 277 |
DIRECT (MODIFY_KlattGrid_replace##Name##Tier) { \ |
| 278 |
MODIFY_FIRST_OF_ONE_AND_ONE (KlattGrid, tiertype); \ |
| 279 |
KlattGrid_replace##Name##Tier (me, you); \ |
| 280 |
MODIFY_FIRST_OF_ONE_AND_ONE_END \ |
| 281 |
} |
| 282 |
|
| 283 |
// 55 DO_KlattGrid... functions |
| 284 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (Pitch, pitch, U" (Hz)", (U"100.0"), |
| 285 |
(value >= 0.0), (U"Pitch should be greater equal zero."), U"f0", PitchTier) |
| 286 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (VoicingAmplitude, voicing amplitude, U" (dB SPL)", U"90.0", |
| 287 |
(1), U"", U"voicing", IntensityTier) |
| 288 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (Flutter, flutter, U" (0..1)", (U"0.0"), |
| 289 |
(value >= 0.0 && value <= 1.0), (U"Flutter should be in [0, 1]."), U"flutter", RealTier) |
| 290 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (Power1, power1, U"", U"3", |
| 291 |
(value > 0.0), U"Power1 needs to be positive.", U"power1", RealTier) |
| 292 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (Power2, power2, U"", U"4", |
| 293 |
(value > 0.0), U"Power2 needs to be positive.", U"power2", RealTier) |
| 294 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (OpenPhase, open phase, U"", U"0.7", |
| 295 |
(value >= 0.0 && value <= 1.0), U"Open phase should be greater than zero and smaller equal one.", U"openPhase", RealTier) |
| 296 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (CollisionPhase, collision phase, U"", U"0.03", |
| 297 |
(value >= 0.0 && value < 1.0), U"Collision phase should be greater equal zero and smaller than one.", U"collisionPhase", RealTier) |
| 298 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (DoublePulsing, double pulsing, U" (0..1)", U"0.0", |
| 299 |
(value >= 0.0 && value <= 1.0), U"Double pulsing should be greater equal zero and smaller equal one.", U"doublePulsing", RealTier) |
| 300 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (SpectralTilt, spectral tilt, U" (dB)", U"0.0", |
| 301 |
(value >= 0.0), U"Spectral tilt should be greater equal zero.", U"spectralTilt", IntensityTier) |
| 302 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (AspirationAmplitude, aspiration amplitude, U" (dB SPL)", U"0.0", |
| 303 |
(true), U"", U"aspiration", IntensityTier) |
| 304 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (BreathinessAmplitude, breathiness amplitude, U" (dB SPL)", U"30.0", |
| 305 |
(true), U"", U"breathiness", IntensityTier) |
| 306 |
|
| 307 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (FricationAmplitude, frication amplitude, U" (dB SPL)", U"30.0", |
| 308 |
(true), U"", U"frication", IntensityTier) |
| 309 |
KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE (FricationBypass, frication bypass, U" (dB)", U"30.0", |
| 310 |
(true), U"", U"bypass", IntensityTier) |
| 311 |
|
| 312 |
#undef KlattGrid_PHONATION_GET_ADD_REMOVE_EXTRACT_REPLACE |
| 313 |
|
| 314 |
#define KlattGrid_FORMULA_FORMANT_FBA_VALUE(Name,namef,ForBs,forbs,textfield,formantType,label) \ |
| 315 |
FORM (MODIFY_KlattGrid_formula##Name##Formant##ForBs, U"KlattGrid: Formula (" #namef "ormant " #forbs ")", U"Formant: Formula (" #forbs ")...") { \ |
| 316 |
COMMENT (U"row is formant number, col is point number:\nfor row from 1 to nrow do for col from 1 to ncol do " #ForBs " (row, col) :=") \ |
| 317 |
FORMULA (formula, U"Formula", textfield) \ |
| 318 |
OK \ |
| 319 |
DO \ |
| 320 |
MODIFY_EACH (KlattGrid); \ |
| 321 |
KlattGrid_formula_##forbs (me, formantType, formula, interpreter); \ |
| 322 |
MODIFY_EACH_END \ |
| 323 |
} |
| 324 |
|
| 325 |
#define KlattGrid_ADD_FBA_VALUE(Name,namef,Form,FBA,fba,formantType,default,unit,requireCondition,requireMessage) \ |
| 326 |
FORM (MODIFY_KlattGrid_add##Name##Formant##FBA##Point, U"KlattGrid: Add " #namef "ormant " #fba " point", nullptr) { \ |
| 327 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 328 |
REAL (time, U"Time (s)", U"0.5") \ |
| 329 |
REAL (value, U"Value " #unit, default) \ |
| 330 |
OK \ |
| 331 |
DO \ |
| 332 |
Melder_require (requireCondition, requireMessage); \ |
| 333 |
MODIFY_EACH (KlattGrid); \ |
| 334 |
KlattGrid_add##Form##Point (me, formantType, formantNumber, time, value); \ |
| 335 |
MODIFY_EACH_END \ |
| 336 |
} |
| 337 |
|
| 338 |
#define KlattGrid_REMOVE_FBA_VALUE(Name,namef,Form,FBA,fba,formantType) \ |
| 339 |
FORM (MODIFY_KlattGrid_remove##Name##Formant##FBA##Points, U"KlattGrid: Remove " #namef "ormant " #fba " points", nullptr) { \ |
| 340 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 341 |
REAL (fromTime, U"From time (s)", U"0.3")\ |
| 342 |
REAL (toTime, U"To time (s)", U"0.7") \ |
| 343 |
OK \ |
| 344 |
DO \ |
| 345 |
MODIFY_EACH (KlattGrid); \ |
| 346 |
KlattGrid_remove##Form##Points (me, formantType, formantNumber, fromTime, toTime); \ |
| 347 |
MODIFY_EACH_END \ |
| 348 |
} |
| 349 |
|
| 350 |
#define KlattGrid_ADD_FORMANT(Name,namef,formantType) \ |
| 351 |
FORM (MODIFY_KlattGrid_add##Name##Formant, U"KlattGrid: Add " #namef "ormant", nullptr) { \ |
| 352 |
INTEGER (position, U"Position", U"0 (= at end)") \ |
| 353 |
OK \ |
| 354 |
DO \ |
| 355 |
MODIFY_EACH (KlattGrid); \ |
| 356 |
KlattGrid_addFormant (me, formantType, position); \ |
| 357 |
MODIFY_EACH_END \ |
| 358 |
} |
| 359 |
|
| 360 |
#define KlattGrid_REMOVE_FORMANT(Name,namef,formantType) \ |
| 361 |
FORM (MODIFY_KlattGrid_remove##Name##Formant, U"KlattGrid: Remove " #namef "ormant", nullptr) { \ |
| 362 |
INTEGER (position, U"Position", U"0 (= do nothing)") \ |
| 363 |
OK \ |
| 364 |
DO \ |
| 365 |
MODIFY_EACH (KlattGrid); \ |
| 366 |
KlattGrid_removeFormant (me, formantType, position); \ |
| 367 |
MODIFY_EACH_END \ |
| 368 |
} |
| 369 |
|
| 370 |
#define KlattGrid_ADD_FORMANT_FREQUENCYANDBANDWIDTHTIERS(Name,namef,formantType) \ |
| 371 |
FORM (MODIFY_KlattGrid_add##Name##FormantFrequencyAndBandwidthTiers, U"KlattGrid: Add " #namef "ormant", nullptr) { \ |
| 372 |
INTEGER (position, U"Position", U"0 (= at end)") \ |
| 373 |
OK \ |
| 374 |
DO \ |
| 375 |
MODIFY_EACH (KlattGrid); \ |
| 376 |
KlattGrid_addFormantFrequencyAndBandwidthTiers (me, formantType, position); \ |
| 377 |
MODIFY_EACH_END \ |
| 378 |
} |
| 379 |
|
| 380 |
#define KlattGrid_REMOVE_FORMANT_FREQUENCYANDBANDWIDTHTIERS(Name,namef,formantType) \ |
| 381 |
FORM (MODIFY_KlattGrid_remove##Name##FormantFrequencyAndBandwidthTiers, U"KlattGrid: Remove " #namef "ormant", nullptr) { \ |
| 382 |
INTEGER (position, U"Position", U"0 (= at end)") \ |
| 383 |
OK \ |
| 384 |
DO \ |
| 385 |
MODIFY_EACH (KlattGrid); \ |
| 386 |
KlattGrid_removeFormantFrequencyAndBandwidthTiers (me, formantType, position); \ |
| 387 |
MODIFY_EACH_END \ |
| 388 |
} |
| 389 |
|
| 390 |
#define KlattGrid_ADD_FORMANT_AMPLITUDETIER(Name,namef,formantType) \ |
| 391 |
FORM (MODIFY_KlattGrid_add##Name##FormantAmplitudeTier, U"KlattGrid: Add " #namef "ormant amplitude tier", nullptr) { \ |
| 392 |
INTEGER (position, U"Position", U"0 (= at end)") \ |
| 393 |
OK \ |
| 394 |
DO \ |
| 395 |
MODIFY_EACH (KlattGrid); \ |
| 396 |
KlattGrid_addFormantAmplitudeTier (me, formantType, position); \ |
| 397 |
MODIFY_EACH_END \ |
| 398 |
} |
| 399 |
|
| 400 |
#define KlattGrid_REMOVE_FORMANT_AMPLITUDETIER(Name,namef,formantType) \ |
| 401 |
FORM (MODIFY_KlattGrid_remove##Name##FormantAmplitudeTier, U"KlattGrid: Remove " #namef "ormant amplitude tier", nullptr) { \ |
| 402 |
INTEGER (position, U"Position", U"0 (= at end)") \ |
| 403 |
OK \ |
| 404 |
DO \ |
| 405 |
MODIFY_EACH (KlattGrid); \ |
| 406 |
KlattGrid_removeFormant (me, formantType, position); \ |
| 407 |
MODIFY_EACH_END \ |
| 408 |
} |
| 409 |
|
| 410 |
#define KlattGrid_FORMULA_ADD_REMOVE_FBA(Name,namef,formantType) \ |
| 411 |
KlattGrid_FORMULA_FORMANT_FBA_VALUE (Name, namef, Frequencies, frequencies, U"if row = 2 then self + 200 else self fi", formantType, U" ") \ |
| 412 |
KlattGrid_FORMULA_FORMANT_FBA_VALUE (Name, namef, Bandwidths, bandwidths, U"self / 10 ; 10% of frequency", formantType, U"Warning: self is formant frequency.") \ |
| 413 |
KlattGrid_ADD_FBA_VALUE (Name, namef, Formant, Frequency, frequency, formantType, U"500.0", (Hz), (value > 0.0), U"Frequency should be greater than zero.") \ |
| 414 |
KlattGrid_ADD_FBA_VALUE (Name, namef, Bandwidth, Bandwidth, bandwidth, formantType, U"50.0", (Hz), (value > 0.0), U"Bandwidth should be greater than zero.") \ |
| 415 |
KlattGrid_ADD_FBA_VALUE (Name, namef, Amplitude, Amplitude, amplitude, formantType, U"0.0", (dB), (isdefined (value)), U"Amplitude should be defined.") \ |
| 416 |
KlattGrid_REMOVE_FBA_VALUE (Name, namef, Formant, Frequency, frequency, formantType) \ |
| 417 |
KlattGrid_REMOVE_FBA_VALUE (Name, namef, Bandwidth, Bandwidth, bandwidth, formantType) \ |
| 418 |
KlattGrid_REMOVE_FBA_VALUE (Name, namef, Amplitude, Amplitude, amplitude, formantType) \ |
| 419 |
KlattGrid_ADD_FORMANT (Name, namef, formantType) \ |
| 420 |
KlattGrid_ADD_FORMANT_FREQUENCYANDBANDWIDTHTIERS (Name, namef, formantType) \ |
| 421 |
KlattGrid_REMOVE_FORMANT_FREQUENCYANDBANDWIDTHTIERS (Name, namef, formantType) \ |
| 422 |
KlattGrid_REMOVE_FORMANT_AMPLITUDETIER (Name, namef, formantType) \ |
| 423 |
KlattGrid_REMOVE_FORMANT (Name, namef, formantType) \ |
| 424 |
KlattGrid_ADD_FORMANT_AMPLITUDETIER (Name, namef, formantType) |
| 425 |
|
| 426 |
#define KlattGrid_FORMULA_ADD_REMOVE_FB(Name,namef,formantType) \ |
| 427 |
KlattGrid_FORMULA_FORMANT_FBA_VALUE (Name, namef, Frequencies, frequencies, U"if row = 2 then self + 200 else self fi",formantType, U" ") \ |
| 428 |
KlattGrid_FORMULA_FORMANT_FBA_VALUE (Name, namef, Bandwidths, bandwidths, U"self / 10 ; 10% of frequency",formantType, U"Warning: self is formant frequency.") \ |
| 429 |
KlattGrid_ADD_FBA_VALUE (Name, namef, Formant,Frequency, frequency, formantType, U"500.0", (Hz), (value > 0.0), U"Frequency should be greater than zero.") \ |
| 430 |
KlattGrid_ADD_FBA_VALUE (Name, namef, Bandwidth, Bandwidth, bandwidth, formantType, U"50.0", (Hz), (value > 0.0), U"Bandwidth should be greater than zero.") \ |
| 431 |
KlattGrid_REMOVE_FBA_VALUE (Name, namef, Formant, Frequency, frequency, formantType) \ |
| 432 |
KlattGrid_REMOVE_FBA_VALUE (Name, namef, Bandwidth, Bandwidth, bandwidth, formantType) \ |
| 433 |
KlattGrid_ADD_FORMANT(Name,namef,formantType) \ |
| 434 |
KlattGrid_ADD_FORMANT_FREQUENCYANDBANDWIDTHTIERS (Name, namef, formantType) \ |
| 435 |
KlattGrid_REMOVE_FORMANT_FREQUENCYANDBANDWIDTHTIERS (Name, namef, formantType) \ |
| 436 |
KlattGrid_REMOVE_FORMANT (Name, namef, formantType) |
| 437 |
|
| 438 |
#define KlattGrid_FORMULA_ADD_REMOVE_FB_DELTA(Name,namef,formantType) \ |
| 439 |
KlattGrid_FORMULA_FORMANT_FBA_VALUE (Name, namef, Frequencies, frequencies, U"if row = 2 then self + 200 else self fi",formantType, U" ") \ |
| 440 |
KlattGrid_FORMULA_FORMANT_FBA_VALUE (Name, namef, Bandwidths, bandwidths, U"self / 10 ; 10% of frequency",formantType, U"Warning: self is formant frequency.") \ |
| 441 |
KlattGrid_ADD_FBA_VALUE (Name, namef, Formant,Frequency, frequency, formantType, U"-100.0", (Hz), (isdefined (value)), U"Frequency should be defined.") \ |
| 442 |
KlattGrid_ADD_FBA_VALUE (Name, namef, Bandwidth, Bandwidth, bandwidth, formantType, U"-50.0", (Hz), (isdefined (value)), U"Bandwidth should be defined.") \ |
| 443 |
KlattGrid_REMOVE_FBA_VALUE (Name, namef, Formant, Frequency, frequency, formantType) \ |
| 444 |
KlattGrid_REMOVE_FBA_VALUE (Name, namef, Bandwidth, Bandwidth, bandwidth, formantType) \ |
| 445 |
KlattGrid_ADD_FORMANT_FREQUENCYANDBANDWIDTHTIERS (Name, namef, formantType) \ |
| 446 |
KlattGrid_REMOVE_FORMANT_FREQUENCYANDBANDWIDTHTIERS (Name, namef, formantType) \ |
| 447 |
KlattGrid_ADD_FORMANT (Name, namef, formantType) \ |
| 448 |
KlattGrid_REMOVE_FORMANT (Name, namef, formantType) |
| 449 |
|
| 450 |
KlattGrid_FORMULA_ADD_REMOVE_FBA (Oral, oral f, kKlattGridFormantType::ORAL) |
| 451 |
KlattGrid_FORMULA_ADD_REMOVE_FBA (Nasal, nasal f, kKlattGridFormantType::NASAL) |
| 452 |
KlattGrid_FORMULA_ADD_REMOVE_FB (NasalAnti, nasal antif, kKlattGridFormantType::NASAL_ANTI) |
| 453 |
KlattGrid_FORMULA_ADD_REMOVE_FB_DELTA (Delta, delta f, kKlattGridFormantType::DELTA) |
| 454 |
KlattGrid_FORMULA_ADD_REMOVE_FBA (Tracheal, tracheal f, kKlattGridFormantType::TRACHEAL) |
| 455 |
KlattGrid_FORMULA_ADD_REMOVE_FB (TrachealAnti, tracheal antif, kKlattGridFormantType::TRACHEAL_ANTI) |
| 456 |
KlattGrid_FORMULA_ADD_REMOVE_FBA (Frication, frication f, kKlattGridFormantType::FRICATION) |
| 457 |
|
| 458 |
#undef KlattGrid_FORMULA_ADD_REMOVE_FB |
| 459 |
#undef KlattGrid_FORMULA_ADD_REMOVE |
| 460 |
#undef KlattGrid_ADD_FORMANT_AND_BANDWDTH_TIER |
| 461 |
#undef KlattGrid_REMOVE_FBA_VALUE |
| 462 |
#undef KlattGrid_ADD_FBA_VALUE |
| 463 |
#undef KlattGrid_FORMULA_FORMANT_FB_VALUE |
| 464 |
|
| 465 |
DIRECT (CONVERT_EACH_TO_ONE__KlattGrid_extractPointProcess_glottalClosures) { |
| 466 |
CONVERT_EACH_TO_ONE (KlattGrid) |
| 467 |
autoPointProcess result = KlattGrid_extractPointProcess_glottalClosures (me); |
| 468 |
CONVERT_EACH_TO_ONE_END (my name.get()) |
| 469 |
} |
| 470 |
|
| 471 |
FORM (MODIFY_KlattGrid_formula_frequencies, U"KlattGrid: Formula (frequencies)", U"Formant: Formula (frequencies)...") { |
| 472 |
KlattGrid_6formants_addCommonField (formantType) |
| 473 |
COMMENT (U"row is formant number, col is point number: for row from 1 to nrow do for col from 1 to ncol do F (row, col) :=") |
| 474 |
FORMULA (formula, U"Formula", U"if row = 2 then self + 200 else self fi") |
| 475 |
OK |
| 476 |
DO |
| 477 |
MODIFY_EACH (KlattGrid) |
| 478 |
KlattGrid_formula_frequencies (me, formantType, formula, interpreter); |
| 479 |
MODIFY_EACH_END |
| 480 |
} |
| 481 |
|
| 482 |
FORM (MODIFY_KlattGrid_formula_bandwidths, U"KlattGrid: Formula (bandwidths)", U"Formant: Formula (bandwidths)...") { |
| 483 |
KlattGrid_6formants_addCommonField (formantType) |
| 484 |
COMMENT (U"row is formant number, col is point number: for row from 1 to nrow do for col from 1 to ncol do F (row, col) :=") |
| 485 |
FORMULA (formula, U"Formula", U"if row = 2 then self + 200 else self fi") |
| 486 |
OK |
| 487 |
DO |
| 488 |
MODIFY_EACH (KlattGrid) |
| 489 |
KlattGrid_formula_bandwidths (me, formantType, formula, interpreter); |
| 490 |
MODIFY_EACH_END |
| 491 |
} |
| 492 |
|
| 493 |
/* |
| 494 |
Generate 18 commands on the pattern |
| 495 |
"Get oral/nasal/tracheal/delta/frication (anti)formant frequency/bandwidth/amplitude at time..." |
| 496 |
*/ |
| 497 |
#define KlattGrid_FORMANT_GET_F_VALUE(Name,name,formantType) \ |
| 498 |
FORM (QUERY_ONE_FOR_REAL__KlattGrid_get##Name##FormantFrequencyAtTime, U"KlattGrid: Get " #name " frequency at time", nullptr) { \ |
| 499 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 500 |
REAL (time, U"Time (s)", U"0.5") \ |
| 501 |
OK \ |
| 502 |
DO \ |
| 503 |
QUERY_ONE_FOR_REAL (KlattGrid); \ |
| 504 |
const double result = KlattGrid_getFormantAtTime (me, formantType, formantNumber, time); \ |
| 505 |
QUERY_ONE_FOR_REAL_END (U" Hz"); \ |
| 506 |
} |
| 507 |
#define KlattGrid_FORMANT_GET_B_VALUE(Name,name,formantType) \ |
| 508 |
FORM (QUERY_ONE_FOR_REAL__KlattGrid_get##Name##FormantBandwidthAtTime, U"KlattGrid: Get " #name " bandwidth at time", nullptr) { \ |
| 509 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 510 |
REAL (time, U"Time (s)", U"0.5") \ |
| 511 |
OK \ |
| 512 |
DO \ |
| 513 |
QUERY_ONE_FOR_REAL (KlattGrid); \ |
| 514 |
const double result = KlattGrid_getBandwidthAtTime (me, formantType, formantNumber, time); \ |
| 515 |
QUERY_ONE_FOR_REAL_END (U" Hz"); \ |
| 516 |
} |
| 517 |
#define KlattGrid_FORMANT_GET_A_VALUE(Name,name,formantType) \ |
| 518 |
FORM (QUERY_ONE_FOR_REAL__KlattGrid_get##Name##FormantAmplitudeAtTime, U"KlattGrid: Get " #name " amplitude at time", nullptr) { \ |
| 519 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 520 |
REAL (time, U"Time (s)", U"0.5") \ |
| 521 |
OK \ |
| 522 |
DO \ |
| 523 |
QUERY_ONE_FOR_REAL (KlattGrid); \ |
| 524 |
const double result = KlattGrid_getAmplitudeAtTime (me, formantType, formantNumber, time); \ |
| 525 |
QUERY_ONE_FOR_REAL_END (U" dB"); \ |
| 526 |
} |
| 527 |
#define KlattGrid_FORMANT_GET_FB_VALUES(Name,name,formantType) \ |
| 528 |
KlattGrid_FORMANT_GET_F_VALUE (Name, name, formantType) \ |
| 529 |
KlattGrid_FORMANT_GET_B_VALUE (Name, name, formantType) |
| 530 |
#define KlattGrid_FORMANT_GET_FBA_VALUES(Name,name,formantType) \ |
| 531 |
KlattGrid_FORMANT_GET_FB_VALUES (Name, name, formantType) \ |
| 532 |
KlattGrid_FORMANT_GET_A_VALUE (Name, name, formantType) |
| 533 |
KlattGrid_FORMANT_GET_FBA_VALUES (Oral, oral formant, kKlattGridFormantType::ORAL) |
| 534 |
KlattGrid_FORMANT_GET_FBA_VALUES (Nasal, nasal formant, kKlattGridFormantType::NASAL) |
| 535 |
KlattGrid_FORMANT_GET_FB_VALUES (NasalAnti, nasal antiformant, kKlattGridFormantType::NASAL_ANTI) |
| 536 |
KlattGrid_FORMANT_GET_FBA_VALUES (Tracheal, tracheal formant, kKlattGridFormantType::TRACHEAL) |
| 537 |
KlattGrid_FORMANT_GET_FB_VALUES (Delta, delta formant, kKlattGridFormantType::DELTA) |
| 538 |
KlattGrid_FORMANT_GET_FB_VALUES (TrachealAnti, tracheal antiformant, kKlattGridFormantType::TRACHEAL_ANTI) |
| 539 |
KlattGrid_FORMANT_GET_FBA_VALUES (Frication, frication formant, kKlattGridFormantType::FRICATION) |
| 540 |
|
| 541 |
|
| 542 |
#define KlattGrid_EXTRACT_FORMANT_GRID(Name,gridType) \ |
| 543 |
DIRECT (CONVERT_EACH_TO_ONE__KlattGrid_extract##Name##FormantGrid) { \ |
| 544 |
CONVERT_EACH_TO_ONE (KlattGrid) \ |
| 545 |
autoFormantGrid result = KlattGrid_extractFormantGrid (me, gridType); \ |
| 546 |
CONVERT_EACH_TO_ONE_END (KlattGrid_getFormantName (gridType)) \ |
| 547 |
} |
| 548 |
|
| 549 |
#define KlattGrid_EXTRACT_FORMANT_AMPLITUDE(Name,name,formantType) \ |
| 550 |
FORM (CONVERT_EACH_TO_ONE__KlattGrid_extract##Name##FormantAmplitudeTier, U"KlattGrid: Extract " #name " formant amplitude tier", nullptr) { \ |
| 551 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 552 |
OK \ |
| 553 |
DO \ |
| 554 |
CONVERT_EACH_TO_ONE (KlattGrid) \ |
| 555 |
autoIntensityTier result = KlattGrid_extractAmplitudeTier (me, formantType, formantNumber); \ |
| 556 |
CONVERT_EACH_TO_ONE_END (KlattGrid_getFormantName (formantType)) \ |
| 557 |
} |
| 558 |
|
| 559 |
KlattGrid_EXTRACT_FORMANT_GRID (Oral, kKlattGridFormantType::ORAL) |
| 560 |
KlattGrid_EXTRACT_FORMANT_AMPLITUDE (Oral, oral, kKlattGridFormantType::ORAL) |
| 561 |
KlattGrid_EXTRACT_FORMANT_GRID (Nasal, kKlattGridFormantType::NASAL) |
| 562 |
KlattGrid_EXTRACT_FORMANT_AMPLITUDE (Nasal, nasal, kKlattGridFormantType::NASAL) |
| 563 |
KlattGrid_EXTRACT_FORMANT_GRID (Frication, kKlattGridFormantType::FRICATION) |
| 564 |
KlattGrid_EXTRACT_FORMANT_AMPLITUDE (Frication, frication, kKlattGridFormantType::FRICATION) |
| 565 |
KlattGrid_EXTRACT_FORMANT_GRID (Tracheal, kKlattGridFormantType::TRACHEAL) |
| 566 |
KlattGrid_EXTRACT_FORMANT_AMPLITUDE (Tracheal, tracheal, kKlattGridFormantType::TRACHEAL) |
| 567 |
KlattGrid_EXTRACT_FORMANT_GRID (NasalAnti, kKlattGridFormantType::NASAL_ANTI) |
| 568 |
KlattGrid_EXTRACT_FORMANT_GRID (TrachealAnti, kKlattGridFormantType::TRACHEAL_ANTI) |
| 569 |
KlattGrid_EXTRACT_FORMANT_GRID (Delta, kKlattGridFormantType::DELTA) |
| 570 |
|
| 571 |
#undef KlattGrid_EXTRACT_FORMANTGRID |
| 572 |
|
| 573 |
#define KlattGrid_REPLACE_FORMANT_GRID(Name,formantType) \ |
| 574 |
DIRECT (MODIFY_KlattGrid_replace##Name##FormantGrid) { \ |
| 575 |
MODIFY_FIRST_OF_ONE_AND_ONE (KlattGrid, FormantGrid); \ |
| 576 |
KlattGrid_replaceFormantGrid (me, formantType, you); \ |
| 577 |
MODIFY_FIRST_OF_ONE_AND_ONE_END \ |
| 578 |
} |
| 579 |
|
| 580 |
#define KlattGrid_REPLACE_FORMANT_AMPLITUDE(Name,name,formantType) \ |
| 581 |
FORM (MODIFY_KlattGrid_replace##Name##FormantAmplitudeTier, U"KlattGrid: Replace " #name " formant amplitude tier", nullptr) { \ |
| 582 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 583 |
OK \ |
| 584 |
DO \ |
| 585 |
MODIFY_FIRST_OF_ONE_AND_ONE (KlattGrid, IntensityTier); \ |
| 586 |
KlattGrid_replaceAmplitudeTier (me, formantType, formantNumber, you); \ |
| 587 |
MODIFY_FIRST_OF_ONE_AND_ONE_END \ |
| 588 |
} |
| 589 |
|
| 590 |
KlattGrid_REPLACE_FORMANT_GRID (Oral, kKlattGridFormantType::ORAL) |
| 591 |
KlattGrid_REPLACE_FORMANT_AMPLITUDE (Oral, oral, kKlattGridFormantType::ORAL) |
| 592 |
KlattGrid_REPLACE_FORMANT_GRID (Nasal, kKlattGridFormantType::NASAL) |
| 593 |
KlattGrid_REPLACE_FORMANT_AMPLITUDE (Nasal, nasal, kKlattGridFormantType::NASAL) |
| 594 |
KlattGrid_REPLACE_FORMANT_GRID (NasalAnti, kKlattGridFormantType::NASAL_ANTI) |
| 595 |
KlattGrid_REPLACE_FORMANT_GRID (Tracheal, kKlattGridFormantType::TRACHEAL) |
| 596 |
KlattGrid_REPLACE_FORMANT_AMPLITUDE (Tracheal, tracheal, kKlattGridFormantType::TRACHEAL) |
| 597 |
KlattGrid_REPLACE_FORMANT_GRID (TrachealAnti, kKlattGridFormantType::TRACHEAL_ANTI) |
| 598 |
KlattGrid_REPLACE_FORMANT_GRID (Delta, kKlattGridFormantType::DELTA) |
| 599 |
KlattGrid_REPLACE_FORMANT_GRID (Frication, kKlattGridFormantType::FRICATION) |
| 600 |
KlattGrid_REPLACE_FORMANT_AMPLITUDE (Frication, frication, kKlattGridFormantType::FRICATION) |
| 601 |
|
| 602 |
#undef KlattGrid_REPLACE_FORMANT_AMPLITUDE |
| 603 |
#undef KlattGrid_REPLACE_FORMANTGRID |
| 604 |
|
| 605 |
#define KlattGrid_FORMANT_GET_ADD_REMOVE(Name,name,unit,default,requireCondition,requireMessage) \ |
| 606 |
FORM (QUERY_ONE_FOR_REAL__KlattGrid_get##Name##AtTime, U"KlattGrid: Get " #name " at time", nullptr) { \ |
| 607 |
KlattGrid_6formants_addCommonField (formantType) \ |
| 608 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 609 |
REAL (time, U"Time (s)", U"0.5") \ |
| 610 |
OK \ |
| 611 |
DO \ |
| 612 |
QUERY_ONE_FOR_REAL (KlattGrid); \ |
| 613 |
const double result = KlattGrid_get##Name##AtTime (me, formantType, formantNumber, time); \ |
| 614 |
QUERY_ONE_FOR_REAL_END (U" Hz"); \ |
| 615 |
} \ |
| 616 |
FORM (QUERY_ONE_FOR_REAL__KlattGrid_getDelta##Name##AtTime, U"KlattGrid: Get delta " #name " at time", nullptr) { \ |
| 617 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 618 |
REAL (time, U"Time (s)", U"0.5") \ |
| 619 |
OK \ |
| 620 |
DO \ |
| 621 |
QUERY_ONE_FOR_REAL (KlattGrid); \ |
| 622 |
const double result = KlattGrid_getDelta##Name##AtTime (me, formantNumber, time); \ |
| 623 |
QUERY_ONE_FOR_REAL_END (U" Hz"); \ |
| 624 |
} \ |
| 625 |
FORM (MODIFY_KlattGrid_add##Name##Point, U"KlattGrid: Add " #name " point", nullptr) { \ |
| 626 |
KlattGrid_6formants_addCommonField (formantType) \ |
| 627 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 628 |
REAL (time, U"Time (s)", U"0.5") \ |
| 629 |
REAL (value, U"Value" unit, default) \ |
| 630 |
OK \ |
| 631 |
DO \ |
| 632 |
Melder_require (requireCondition, requireMessage); \ |
| 633 |
MODIFY_EACH (KlattGrid) \ |
| 634 |
KlattGrid_add##Name##Point (me, formantType, formantNumber, time, value); \ |
| 635 |
MODIFY_EACH_END \ |
| 636 |
} \ |
| 637 |
FORM (MODIFY_KlattGrid_addDelta##Name##Point, U"KlattGrid: Add delta " #name " point", nullptr) { \ |
| 638 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 639 |
REAL (time, U"Time (s)", U"0.5") \ |
| 640 |
REAL (value, U"Value" unit, default) \ |
| 641 |
OK \ |
| 642 |
DO \ |
| 643 |
Melder_require (requireCondition, requireMessage); \ |
| 644 |
MODIFY_EACH (KlattGrid) \ |
| 645 |
KlattGrid_addDelta##Name##Point (me, formantNumber, time, value); \ |
| 646 |
MODIFY_EACH_END \ |
| 647 |
} \ |
| 648 |
FORM (MODIFY_KlattGrid_remove##Name##Points, U"Remove " #name " points", nullptr) { \ |
| 649 |
KlattGrid_6formants_addCommonField (formantType) \ |
| 650 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 651 |
REAL (fromTime, U"From time (s)", U"0.3")\ |
| 652 |
REAL (toTime, U"To time (s)", U"0.7") \ |
| 653 |
OK \ |
| 654 |
DO \ |
| 655 |
MODIFY_EACH (KlattGrid) \ |
| 656 |
KlattGrid_remove##Name##Points (me, formantType, formantNumber, fromTime, toTime); \ |
| 657 |
MODIFY_EACH_END \ |
| 658 |
} \ |
| 659 |
FORM (MODIFY_KlattGrid_removeDelta##Name##Points, U"Remove delta " #name " points", nullptr) { \ |
| 660 |
NATURAL (formantNumber, U"Formant number", U"1") \ |
| 661 |
REAL (fromTime, U"From time (s)", U"0.3")\ |
| 662 |
REAL (toTime, U"To time (s)", U"0.7") \ |
| 663 |
OK \ |
| 664 |
DO \ |
| 665 |
MODIFY_EACH (KlattGrid) \ |
| 666 |
KlattGrid_removeDelta##Name##Points (me, formantNumber, fromTime, toTime); \ |
| 667 |
MODIFY_EACH_END \ |
| 668 |
} |
| 669 |
|
| 670 |
KlattGrid_FORMANT_GET_ADD_REMOVE (Formant, formant, U" (Hz)", U"500.0", (value > 0.0), U"Frequency should be greater than zero.") |
| 671 |
KlattGrid_FORMANT_GET_ADD_REMOVE (Bandwidth, bandwidth, U" (Hz)", U"50.0", (value > 0.0), U"Bandwidth should be greater than zero.") |
| 672 |
|
| 673 |
#undef KlattGrid_FORMANT_GET_ADD_REMOVE |
| 674 |
|
| 675 |
FORM (MODIFY_KlattGrid_addFormantAndBandwidthTier, U"", nullptr) { |
| 676 |
OPTIONMENU_ENUM (kKlattGridFormantType, formantType, U"Formant type", kKlattGridFormantType::DEFAULT) |
| 677 |
INTEGER (position, U"Position", U"0 (= at end)") |
| 678 |
OK |
| 679 |
DO |
| 680 |
MODIFY_EACH (KlattGrid) |
| 681 |
KlattGrid_addFormantFrequencyAndBandwidthTiers (me, formantType, position); |
| 682 |
MODIFY_EACH_END |
| 683 |
} |
| 684 |
|
| 685 |
FORM (CONVERT_EACH_TO_ONE__KlattGrid_extractFormantGrid, U"KlattGrid: Extract formant grid", nullptr) { |
| 686 |
KlattGrid_6formants_addCommonField (formantType) |
| 687 |
OK |
| 688 |
DO |
| 689 |
CONVERT_EACH_TO_ONE (KlattGrid) |
| 690 |
autoFormantGrid result = KlattGrid_extractFormantGrid (me, formantType); |
| 691 |
CONVERT_EACH_TO_ONE_END (KlattGrid_getFormantName (formantType)) |
| 692 |
} |
| 693 |
|
| 694 |
FORM (MODIFY_KlattGrid_replaceFormantGrid, U"KlattGrid: Replace formant grid", nullptr) { |
| 695 |
KlattGrid_6formants_addCommonField (formantType) |
| 696 |
OK |
| 697 |
DO |
| 698 |
MODIFY_FIRST_OF_ONE_AND_ONE (KlattGrid, FormantGrid) |
| 699 |
KlattGrid_replaceFormantGrid (me, formantType, you); |
| 700 |
MODIFY_FIRST_OF_ONE_AND_ONE_END |
| 701 |
} |
| 702 |
|
| 703 |
FORM (QUERY_ONE_FOR_REAL__KlattGrid_getAmplitudeAtTime, U"KlattGrid: Get amplitude at time", nullptr) { |
| 704 |
KlattGrid_4formants_addCommonField (formantType) |
| 705 |
NATURAL (formantNumber, U"Formant number", U"1") |
| 706 |
REAL (time, U"Time (s)", U"0.5") |
| 707 |
OK |
| 708 |
DO |
| 709 |
QUERY_ONE_FOR_REAL (KlattGrid) |
| 710 |
const double result = KlattGrid_getAmplitudeAtTime (me, formantType, formantNumber, time); |
| 711 |
QUERY_ONE_FOR_REAL_END ( U"dB") |
| 712 |
} |
| 713 |
|
| 714 |
FORM (MODIFY_KlattGrid_addAmplitudePoint, U"KlattGrid: Add amplitude point", nullptr) { |
| 715 |
KlattGrid_4formants_addCommonField (formantType) |
| 716 |
NATURAL (formantNumber, U"Formant number", U"1") |
| 717 |
REAL (time, U"Time (s)", U"0.5") |
| 718 |
REAL (value_hz, U"Value (Hz)", U"80.0") |
| 719 |
OK |
| 720 |
DO |
| 721 |
MODIFY_EACH (KlattGrid) |
| 722 |
KlattGrid_addAmplitudePoint (me, formantType, formantNumber, time, value_hz); |
| 723 |
MODIFY_EACH_END |
| 724 |
} |
| 725 |
|
| 726 |
FORM (MODIFY_KlattGrid_removeAmplitudePoints, U"Remove amplitude points", nullptr) { |
| 727 |
KlattGrid_4formants_addCommonField (formantType) |
| 728 |
NATURAL (formantNumber, U"Formant number", U"1") |
| 729 |
REAL (fromTime, U"From time (s)", U"0.3") |
| 730 |
REAL (toTime, U"To time (s)", U"0.7") |
| 731 |
OK |
| 732 |
DO |
| 733 |
MODIFY_EACH (KlattGrid); |
| 734 |
KlattGrid_removeAmplitudePoints (me, formantType, formantNumber, fromTime, toTime); |
| 735 |
MODIFY_EACH_END |
| 736 |
} |
| 737 |
|
| 738 |
FORM (CONVERT_EACH_TO_ONE__KlattGrid_extractAmplitudeTier, U"", nullptr) { |
| 739 |
KlattGrid_4formants_addCommonField (formantType) |
| 740 |
NATURAL (formantNumber, U"Formant number", U"1") |
| 741 |
OK |
| 742 |
DO |
| 743 |
CONVERT_EACH_TO_ONE (KlattGrid) |
| 744 |
autoIntensityTier result = KlattGrid_extractAmplitudeTier (me, formantType, formantNumber); |
| 745 |
CONVERT_EACH_TO_ONE_END (KlattGrid_getFormantName (formantType)) |
| 746 |
} |
| 747 |
|
| 748 |
FORM (MODIFY_KlattGrid_replaceAmplitudeTier, U"KlattGrid: Replace amplitude tier", nullptr) { |
| 749 |
KlattGrid_4formants_addCommonField (formantType) |
| 750 |
NATURAL (formantNumber, U"Formant number", U"1") |
| 751 |
OK |
| 752 |
DO |
| 753 |
MODIFY_FIRST_OF_ONE_AND_ONE (KlattGrid, IntensityTier) |
| 754 |
KlattGrid_replaceAmplitudeTier (me, formantType, formantNumber, you); |
| 755 |
MODIFY_FIRST_OF_ONE_AND_ONE_END |
| 756 |
} |
| 757 |
|
| 758 |
FORM (CONVERT_EACH_TO_ONE__KlattGrid_to_Sound_special, U"KlattGrid: To Sound (special)", U"KlattGrid: To Sound (special)...") { |
| 759 |
REAL (fromTime, U"left Time range (s)", U"0.0") |
| 760 |
REAL (toTime, U"right Time range (s)", U"0.0") |
| 761 |
POSITIVE (samplingFrequency, U"Sampling frequency (Hz)", U"44100.0") |
| 762 |
BOOLEAN (scalePeak, U"Scale peak", true) |
| 763 |
KlattGrid_PhonationGridPlayOptions_addCommonFields (useVoicing, useFlutter, useDoublePulsing, useCollisionPhase, useSpectralTilt, flowFunctionType, useFlowDerivative, useAspiration, useBreathiness) |
| 764 |
KlattGrid_formantSelection_vocalTract_commonFields (filtersStructure, fromOralFormant, toOralFormant, fromNasalFormant, toNasalFormant, fromNasalAntiFormant, toNasalAntiFormant) |
| 765 |
KlattGrid_formantSelection_coupling_commonFields (fromTrachealFormant, toTrachealFormant, fromTrachealAntiFormant, toTrachealAntiFormant, fromDeltaFormant, toDeltaFormant, fromDeltaBandwidth, toDeltaBandwidth) |
| 766 |
KlattGrid_formantSelection_frication_commonFields(fromFricationFormant,toFricationFormant,useFricationBypass) |
| 767 |
OK |
| 768 |
DO |
| 769 |
CONVERT_EACH_TO_ONE (KlattGrid) |
| 770 |
KlattGrid_setDefaultPlayOptions (me); |
| 771 |
KlattGridPlayOptions pk = my options.get(); |
| 772 |
pk -> scalePeak = scalePeak; |
| 773 |
pk -> xmin = fromTime; |
| 774 |
pk -> xmax = toTime; |
| 775 |
pk -> samplingFrequency = samplingFrequency; |
| 776 |
pk -> scalePeak = scalePeak; |
| 777 |
KlattGrid_PhonationGridPlayOptions (me, useVoicing, useFlutter, useDoublePulsing, useCollisionPhase, useSpectralTilt, flowFunctionType, useFlowDerivative, useAspiration, useBreathiness); |
| 778 |
KlattGrid_formantSelection_vocalTract (me, filtersStructure, fromOralFormant, toOralFormant, fromNasalFormant, toNasalFormant, fromNasalAntiFormant, toNasalAntiFormant); |
| 779 |
KlattGrid_formantSelection_coupling (me, fromTrachealFormant, toTrachealFormant, fromTrachealAntiFormant, toTrachealAntiFormant, fromDeltaFormant, toDeltaFormant, fromDeltaBandwidth, toDeltaBandwidth); |
| 780 |
KlattGrid_formantSelection_frication (me, fromFricationFormant, toFricationFormant, useFricationBypass); |
| 781 |
autoSound result = KlattGrid_to_Sound (me); |
| 782 |
CONVERT_EACH_TO_ONE_END (my name.get()) |
| 783 |
} |
| 784 |
|
| 785 |
DIRECT (CONVERT_EACH_TO_ONE__KlattGrid_to_Sound) { |
| 786 |
CONVERT_EACH_TO_ONE (KlattGrid) |
| 787 |
KlattGrid_setDefaultPlayOptions (me); |
| 788 |
autoSound result = KlattGrid_to_Sound (me); |
| 789 |
CONVERT_EACH_TO_ONE_END (my name.get()) |
| 790 |
} |
| 791 |
|
| 792 |
FORM (PLAY_KlattGrid_playSpecial, U"KlattGrid: Play special", U"KlattGrid: Play special...") { |
| 793 |
REAL (fromTime, U"left Time range (s)", U"0.0") |
| 794 |
REAL (toTime, U"right Time range (s)", U"0.0") |
| 795 |
BOOLEAN (scalePeak, U"Scale peak", true) |
| 796 |
KlattGrid_PhonationGridPlayOptions_addCommonFields (useVoicing, useFlutter, useDoublePulsing, useCollisionPhase, useSpectralTilt, flowFunctionType, useFlowDerivative, useAspiration, useBreathiness) |
| 797 |
KlattGrid_formantSelection_vocalTract_commonFields (filtersStructure, fromOralFormant, toOralFormant, fromNasalFormant, toNasalFormant, fromNasalAntiFormant, toNasalAntiFormant); |
| 798 |
KlattGrid_formantSelection_coupling_commonFields (fromTrachealFormant, toTrachealFormant, fromTrachealAntiFormant, toTrachealAntiFormant, fromDeltaFormant, toDeltaFormant, fromDeltaBandwidth, toDeltaBandwidth) |
| 799 |
KlattGrid_formantSelection_frication_commonFields(fromFricationFormant,toFricationFormant,useFricationBypass) |
| 800 |
OK |
| 801 |
DO |
| 802 |
PLAY_EACH (KlattGrid) |
| 803 |
KlattGrid_setDefaultPlayOptions (me); |
| 804 |
KlattGridPlayOptions pk = my options.get(); |
| 805 |
pk -> scalePeak = scalePeak; |
| 806 |
pk -> xmin = fromTime; |
| 807 |
pk -> xmax = toTime; |
| 808 |
pk -> scalePeak = scalePeak; |
| 809 |
KlattGrid_PhonationGridPlayOptions (me, useVoicing, useFlutter, useDoublePulsing, useCollisionPhase, useSpectralTilt, flowFunctionType, useFlowDerivative, useAspiration, useBreathiness); |
| 810 |
KlattGrid_formantSelection_vocalTract (me, filtersStructure, fromOralFormant, toOralFormant, fromNasalFormant, toNasalFormant, fromNasalAntiFormant, toNasalAntiFormant); |
| 811 |
KlattGrid_formantSelection_coupling (me, fromTrachealFormant, toTrachealFormant, fromTrachealAntiFormant, toTrachealAntiFormant, fromDeltaFormant, toDeltaFormant, fromDeltaBandwidth, toDeltaBandwidth); |
| 812 |
KlattGrid_formantSelection_frication (me, fromFricationFormant, toFricationFormant, useFricationBypass); |
| 813 |
KlattGrid_playSpecial (me, nullptr, nullptr); |
| 814 |
PLAY_EACH_END |
| 815 |
} |
| 816 |
|
| 817 |
FORM (CONVERT_EACH_TO_ONE__KlattGrid_to_Sound_phonation, U"KlattGrid: To Sound (phonation)", U"KlattGrid: To Sound (phonation)...") { |
| 818 |
POSITIVE (samplingFrequency, U"Sampling frequency (Hz)", U"44100.0") |
| 819 |
KlattGrid_PhonationGridPlayOptions_addCommonFields (useVoicing, useFlutter, useDoublePulsing, useCollisionPhase, useSpectralTilt, flowFunctionType, useFlowDerivative, useAspiration, useBreathiness) |
| 820 |
OK |
| 821 |
DO |
| 822 |
CONVERT_EACH_TO_ONE (KlattGrid) |
| 823 |
KlattGrid_PhonationGridPlayOptions (me, useVoicing, useFlutter, useDoublePulsing, useCollisionPhase, useSpectralTilt, flowFunctionType, useFlowDerivative, useAspiration, useBreathiness); |
| 824 |
my options -> samplingFrequency = samplingFrequency; |
| 825 |
autoSound result = KlattGrid_to_Sound_phonation (me); |
| 826 |
CONVERT_EACH_TO_ONE_END (my name.get(), U"_phonation") |
| 827 |
} |
| 828 |
|
| 829 |
DIRECT (HELP__KlattGrid_help) { |
| 830 |
HELP (U"KlattGrid") |
| 831 |
} |
| 832 |
|
| 833 |
DIRECT (PLAY_KlattGrid_play) { |
| 834 |
PLAY_EACH (KlattGrid) |
| 835 |
KlattGrid_play (me, nullptr, nullptr); |
| 836 |
PLAY_EACH_END |
| 837 |
} |
| 838 |
|
| 839 |
FORM (GRAPHICS_EACH__KlattGrid_draw, U"KlattGrid: Draw", nullptr) { |
| 840 |
CHOICE_ENUM (kKlattGridFilterModel, filterModel, U"Synthesis filter model", kKlattGridFilterModel::DEFAULT) |
| 841 |
OK |
| 842 |
DO |
| 843 |
GRAPHICS_EACH (KlattGrid) |
| 844 |
KlattGrid_draw (me, GRAPHICS, filterModel); |
| 845 |
GRAPHICS_EACH_END |
| 846 |
} |
| 847 |
|
| 848 |
FORM (GRAPHICS_EACH__KlattGrid_drawVocalTract, U"KlattGrid: Draw vocal tract", nullptr) { |
| 849 |
CHOICE_ENUM (kKlattGridFilterModel, filterModel, U"Synthesis filter model", kKlattGridFilterModel::DEFAULT) |
| 850 |
BOOLEAN (includeTrachealFormants, U"Include tracheal formants", true); |
| 851 |
OK |
| 852 |
DO |
| 853 |
GRAPHICS_EACH (KlattGrid) |
| 854 |
KlattGrid_drawVocalTract (me, GRAPHICS, filterModel, includeTrachealFormants); |
| 855 |
GRAPHICS_EACH_END |
| 856 |
} |
| 857 |
|
| 858 |
DIRECT (GRAPHICS_EACH__KlattGrid_drawPhonation) { |
| 859 |
GRAPHICS_EACH (KlattGrid) |
| 860 |
PhonationGrid_draw (my phonation.get(), GRAPHICS); |
| 861 |
GRAPHICS_EACH_END |
| 862 |
} |
| 863 |
|
| 864 |
DIRECT (GRAPHICS_EACH__KlattGrid_drawFrication) { |
| 865 |
GRAPHICS_EACH (KlattGrid) |
| 866 |
FricationGrid_draw (my frication.get(), GRAPHICS); |
| 867 |
GRAPHICS_EACH_END |
| 868 |
} |
| 869 |
|
| 870 |
FORM (CONVERT_EACH_TO_ONE__KlattGrid_to_oralFormantGrid_openPhases, U"KlattGrid: Extract oral formant grid (open phases)", U"KlattGrid: Extract oral formant grid (open phases)...") { |
| 871 |
REAL (fadeFraction, U"Fade fraction (0..0.5)", U"0.1") |
| 872 |
OK |
| 873 |
DO |
| 874 |
Melder_require (fadeFraction < 0.5, U"The fade fraction should be less than 0.5."); |
| 875 |
CONVERT_EACH_TO_ONE (KlattGrid) |
| 876 |
autoFormantGrid result = KlattGrid_to_oralFormantGrid_openPhases (me, fadeFraction); |
| 877 |
CONVERT_EACH_TO_ONE_END (U"corrected") |
| 878 |
} |
| 879 |
|
| 880 |
FORM (CONVERT_ONE_AND_ONE_TO_ONE__Sound_KlattGrid_filterByVocalTract, U"Sound & KlattGrid: Filter by vocal tract", U"Sound & KlattGrid: Filter by vocal tract...") { |
| 881 |
CHOICE_ENUM (kKlattGridFilterModel, filterModel, U"Vocal tract filter model", kKlattGridFilterModel::DEFAULT) |
| 882 |
OK |
| 883 |
DO |
| 884 |
CONVERT_ONE_AND_ONE_TO_ONE (Sound, KlattGrid) |
| 885 |
autoSound result = Sound_KlattGrid_filterByVocalTract (me, you, filterModel); |
| 886 |
CONVERT_ONE_AND_ONE_TO_ONE_END (my name.get(), U"_", your name.get()) |
| 887 |
} |
| 888 |
|
| 889 |
void praat_KlattGrid_init (); |
| 890 |
void praat_KlattGrid_init () { |
| 891 |
|
| 892 |
Thing_recognizeClassesByName (classKlattGrid); |
| 893 |
|
| 894 |
structKlattGrid_OpenPhaseTierArea :: f_preferences(); |
| 895 |
structKlattGrid_CollisionPhaseTierArea :: f_preferences(); |
| 896 |
structKlattGrid_Power1TierArea :: f_preferences(); |
| 897 |
structKlattGrid_Power2TierArea :: f_preferences(); |
| 898 |
structKlattGrid_DoublePulsingTierArea :: f_preferences(); |
| 899 |
structKlattGrid_PitchTierArea :: f_preferences(); |
| 900 |
structKlattGrid_FlutterTierArea :: f_preferences(); |
| 901 |
structKlattGrid_IntensityTierArea :: f_preferences(); |
| 902 |
structKlattGrid_DecibelTierArea :: f_preferences(); |
| 903 |
structKlattGrid_SpectralTiltTierArea :: f_preferences(); |
| 904 |
structKlattGrid_FricationBypassTierArea :: f_preferences(); |
| 905 |
|
| 906 |
praat_addMenuCommand (U"Objects", U"New", U"Acoustic synthesis (Klatt)", nullptr, 0, nullptr); |
| 907 |
praat_addMenuCommand (U"Objects", U"New", U"KlattGrid help", nullptr, GuiMenu_DEPTH_1 | GuiMenu_NO_API, |
| 908 |
HELP__KlattGrid_help); |
| 909 |
praat_addMenuCommand (U"Objects", U"New", U"-- the synthesizer grid --", nullptr, 1, nullptr); |
| 910 |
praat_addMenuCommand (U"Objects", U"New", U"Create KlattGrid...", nullptr, 1, |
| 911 |
CREATE_ONE__KlattGrid_create); |
| 912 |
praat_addMenuCommand (U"Objects", U"New", U"Create KlattGrid from vowel...", nullptr, 1, |
| 913 |
CREATE_ONE__KlattGrid_createFromVowel); |
| 914 |
praat_addMenuCommand (U"Objects", U"New", U"Create KlattGrid example", nullptr, GuiMenu_DEPTH_1 | GuiMenu_HIDDEN, |
| 915 |
CREATE_ONE__KlattGrid_createExample); |
| 916 |
|
| 917 |
/* |
| 918 |
Edit oral/nasal/tracheal/frication/delta formant grid |
| 919 |
Edit nasal/tracheal antiformant grid |
| 920 |
Get oral/nasal/tracheal/frication/delta formant at time... |
| 921 |
Get nasal/tracheal antiformant at time... |
| 922 |
Get oral/nasal/tracheal/frication/delta formant bandwidth at time... |
| 923 |
Get nasal/tracheal antiformant bandwidth at time... |
| 924 |
Get oral/nasal/tracheal/frication formant amplitude at time... |
| 925 |
Formula (oral/nasal/tracheal/frication/delta formant frequencies)... |
| 926 |
Formula (nasal/tracheal antiformant frequencies)... |
| 927 |
Formula (oral/nasal/tracheal/frication/delta formant bandwidths)... |
| 928 |
Formula (nasal/tracheal antiformant bandwidths)... |
| 929 |
Add oral/nasal/tracheal/frication/delta formant point... |
| 930 |
Add nasal/tracheal antiformant point... |
| 931 |
Add oral/nasal/tracheal/frication/delta formant bandwidth point... |
| 932 |
Add nasal/tracheal antiformant bandwidth point... |
| 933 |
Add oral/nasal/tracheal/frication formant amplitude point... |
| 934 |
Remove oral/nasal/tracheal/frication/delta formant points... |
| 935 |
Remove nasal/tracheal antiformant points... |
| 936 |
Remove oral/nasal/tracheal/frication/delta bandwidth points... |
| 937 |
Remove nasal/tracheal antiformant bandwidth points... |
| 938 |
Remove oral/nasal/tracheal/frication formant amplitude points... |
| 939 |
Extract oral/nasal/tracheal/frication/delta formant grid |
| 940 |
Extract nasal/tracheal antiformant grid |
| 941 |
Replace oral/nasal/tracheal/frication/delta formant grid |
| 942 |
Replace nasal/tracheal antiformant grid |
| 943 |
Add oral/nasal/tracheal/frication/delta formant and bandwidth tier |
| 944 |
Add nasal/tracheal antiformant and bandwidth tier |
| 945 |
*/ |
| 946 |
praat_addAction1 (classKlattGrid, 0, U"KlattGrid help", nullptr, 0, |
| 947 |
HELP__KlattGrid_help); |
| 948 |
|
| 949 |
praat_addAction1 (classKlattGrid, 0, U"Edit phonation -", nullptr, 0, nullptr); |
| 950 |
praat_addAction1 (classKlattGrid, 0, U"Edit pitch tier", nullptr, 1, |
| 951 |
EDITOR_ONE_KlattGrid_editPitchTier); |
| 952 |
praat_addAction1 (classKlattGrid, 0, U"Edit voicing amplitude tier", nullptr, 1, |
| 953 |
EDITOR_ONE_KlattGrid_editVoicingAmplitudeTier); |
| 954 |
praat_addAction1 (classKlattGrid, 0, U"Edit flutter tier", nullptr, 1, |
| 955 |
EDITOR_ONE_KlattGrid_editFlutterTier); |
| 956 |
praat_addAction1 (classKlattGrid, 0, U"Edit power1 tier", nullptr, 1, |
| 957 |
EDITOR_ONE_KlattGrid_editPower1Tier); |
| 958 |
praat_addAction1 (classKlattGrid, 0, U"Edit power2 tier", nullptr, 1, |
| 959 |
EDITOR_ONE_KlattGrid_editPower2Tier); |
| 960 |
praat_addAction1 (classKlattGrid, 0, U"Edit open phase tier", nullptr, 1, |
| 961 |
EDITOR_ONE_KlattGrid_editOpenPhaseTier); |
| 962 |
praat_addAction1 (classKlattGrid, 0, U"Edit collision phase tier", nullptr, 1, |
| 963 |
EDITOR_ONE_KlattGrid_editCollisionPhaseTier); |
| 964 |
praat_addAction1 (classKlattGrid, 0, U"Edit double pulsing tier", nullptr, 1, |
| 965 |
EDITOR_ONE_KlattGrid_editDoublePulsingTier); |
| 966 |
praat_addAction1 (classKlattGrid, 0, U"Edit spectral tilt tier", nullptr, 1, |
| 967 |
EDITOR_ONE_KlattGrid_editSpectralTiltTier); |
| 968 |
praat_addAction1 (classKlattGrid, 0, U"Edit aspiration amplitude tier", nullptr, 1, |
| 969 |
EDITOR_ONE_KlattGrid_editAspirationAmplitudeTier); |
| 970 |
praat_addAction1 (classKlattGrid, 0, U"Edit breathiness amplitude tier", nullptr, 1, |
| 971 |
EDITOR_ONE_KlattGrid_editBreathinessAmplitudeTier); |
| 972 |
|
| 973 |
praat_addAction1 (classKlattGrid, 0, U"Edit filters -", nullptr, 0, nullptr); |
| 974 |
praat_addAction1 (classKlattGrid, 0, U"Edit oral formant grid", nullptr, 1, |
| 975 |
EDITOR_ONE_KlattGrid_editOralFormantGrid); |
| 976 |
praat_addAction1 (classKlattGrid, 0, U"Edit nasal formant grid", nullptr, 1, |
| 977 |
EDITOR_ONE_KlattGrid_editNasalFormantGrid); |
| 978 |
praat_addAction1 (classKlattGrid, 0, U"Edit nasal antiformant grid", nullptr, 1, |
| 979 |
EDITOR_ONE_KlattGrid_editNasalAntiFormantGrid); |
| 980 |
praat_addAction1 (classKlattGrid, 0, U"Edit oral formant amplitude tier...", nullptr, 1, |
| 981 |
EDITOR_ONE_KlattGrid_editOralFormantAmplitudeTier); |
| 982 |
praat_addAction1 (classKlattGrid, 0, U"Edit nasal formant amplitude tier...", nullptr, 1, |
| 983 |
EDITOR_ONE_KlattGrid_editNasalFormantAmplitudeTier); |
| 984 |
praat_addAction1 (classKlattGrid, 0, U"-- edit delta formant grid --", nullptr, 1, nullptr); |
| 985 |
praat_addAction1 (classKlattGrid, 0, U"Edit delta formant grid", nullptr, 1, |
| 986 |
EDITOR_ONE_KlattGrid_editDeltaFormantGrid); |
| 987 |
praat_addAction1 (classKlattGrid, 0, U"Edit tracheal formant grid", nullptr, 1, |
| 988 |
EDITOR_ONE_KlattGrid_editTrachealFormantGrid); |
| 989 |
praat_addAction1 (classKlattGrid, 0, U"Edit tracheal antiformant grid", nullptr, 1, |
| 990 |
EDITOR_ONE_KlattGrid_editTrachealAntiFormantGrid); |
| 991 |
praat_addAction1 (classKlattGrid, 0, U"Edit tracheal formant amplitude tier...", nullptr, 1, |
| 992 |
EDITOR_ONE_KlattGrid_editTrachealFormantAmplitudeTier); |
| 993 |
praat_addAction1 (classKlattGrid, 0, U"-- edit frication tiers --", nullptr, 1, nullptr); |
| 994 |
praat_addAction1 (classKlattGrid, 1, U"Edit frication amplitude tier", nullptr, 1, |
| 995 |
EDITOR_ONE_KlattGrid_editFricationAmplitudeTier); |
| 996 |
praat_addAction1 (classKlattGrid, 0, U"Edit frication formant grid", nullptr, 1, |
| 997 |
EDITOR_ONE_KlattGrid_editFricationFormantGrid); |
| 998 |
praat_addAction1 (classKlattGrid, 0, U"Edit frication formant amplitude tier...", nullptr, 1, |
| 999 |
EDITOR_ONE_KlattGrid_editFricationFormantAmplitudeTier); |
| 1000 |
praat_addAction1 (classKlattGrid, 0, U"Edit frication bypass tier", nullptr, 1, |
| 1001 |
EDITOR_ONE_KlattGrid_editFricationBypassTier); |
| 1002 |
praat_addAction1 (classKlattGrid, 1, U"Edit frication amplitude tier", nullptr, 1, |
| 1003 |
EDITOR_ONE_KlattGrid_editFricationAmplitudeTier); |
| 1004 |
|
| 1005 |
praat_addAction1 (classKlattGrid, 0, U"Play", nullptr, 0, |
| 1006 |
PLAY_KlattGrid_play); |
| 1007 |
praat_addAction1 (classKlattGrid, 0, U"Play special...", nullptr, 0, |
| 1008 |
PLAY_KlattGrid_playSpecial); |
| 1009 |
praat_addAction1 (classKlattGrid, 0, U"To Sound", nullptr, 0, |
| 1010 |
CONVERT_EACH_TO_ONE__KlattGrid_to_Sound); |
| 1011 |
praat_addAction1 (classKlattGrid, 0, U"To Sound (special)...", nullptr, 0, |
| 1012 |
CONVERT_EACH_TO_ONE__KlattGrid_to_Sound_special); |
| 1013 |
praat_addAction1 (classKlattGrid, 0, U"To Sound (phonation)...", nullptr, 0, |
| 1014 |
CONVERT_EACH_TO_ONE__KlattGrid_to_Sound_phonation); |
| 1015 |
|
| 1016 |
praat_addAction1 (classKlattGrid, 0, U"Draw -", nullptr, 0, nullptr); |
| 1017 |
praat_addAction1 (classKlattGrid, 0, U"Draw synthesizer...", nullptr, 1, |
| 1018 |
GRAPHICS_EACH__KlattGrid_draw); |
| 1019 |
praat_addAction1 (classKlattGrid, 0, U"Draw vocal tract...", nullptr, 1, |
| 1020 |
GRAPHICS_EACH__KlattGrid_drawVocalTract); |
| 1021 |
praat_addAction1 (classKlattGrid, 0, U"Draw phonation", nullptr, 1, |
| 1022 |
GRAPHICS_EACH__KlattGrid_drawPhonation); |
| 1023 |
praat_addAction1 (classKlattGrid, 0, U"Draw frication", nullptr, 1, |
| 1024 |
GRAPHICS_EACH__KlattGrid_drawFrication); |
| 1025 |
|
| 1026 |
praat_addAction1 (classKlattGrid, 0, U"Query phonation -", nullptr, 0, nullptr); |
| 1027 |
praat_addAction1 (classKlattGrid, 1, U"Get pitch at time...", nullptr, 1, |
| 1028 |
QUERY_ONE_FOR_REAL__KlattGrid_getPitchAtTime); |
| 1029 |
praat_addAction1 (classKlattGrid, 1, U"Get voicing amplitude at time...", nullptr, 1, |
| 1030 |
QUERY_ONE_FOR_REAL__KlattGrid_getVoicingAmplitudeAtTime); |
| 1031 |
praat_addAction1 (classKlattGrid, 1, U"Get flutter at time...", nullptr, 1, |
| 1032 |
QUERY_ONE_FOR_REAL__KlattGrid_getFlutterAtTime); |
| 1033 |
praat_addAction1 (classKlattGrid, 1, U"Get power1 at time...", nullptr, 1, |
| 1034 |
QUERY_ONE_FOR_REAL__KlattGrid_getPower1AtTime); |
| 1035 |
praat_addAction1 (classKlattGrid, 1, U"Get power2 at time...", nullptr, 1, |
| 1036 |
QUERY_ONE_FOR_REAL__KlattGrid_getPower2AtTime); |
| 1037 |
praat_addAction1 (classKlattGrid, 1, U"Get open phase at time...", nullptr, 1, |
| 1038 |
QUERY_ONE_FOR_REAL__KlattGrid_getOpenPhaseAtTime); |
| 1039 |
praat_addAction1 (classKlattGrid, 1, U"Get collision phase at time...", nullptr, 1, |
| 1040 |
QUERY_ONE_FOR_REAL__KlattGrid_getCollisionPhaseAtTime); |
| 1041 |
praat_addAction1 (classKlattGrid, 1, U"Get double pulsing at time...", nullptr, 1, |
| 1042 |
QUERY_ONE_FOR_REAL__KlattGrid_getDoublePulsingAtTime); |
| 1043 |
praat_addAction1 (classKlattGrid, 1, U"Get spectral tilt at time...", nullptr, 1, |
| 1044 |
QUERY_ONE_FOR_REAL__KlattGrid_getSpectralTiltAtTime); |
| 1045 |
praat_addAction1 (classKlattGrid, 1, U"Get aspiration amplitude at time...", nullptr, 1, |
| 1046 |
QUERY_ONE_FOR_REAL__KlattGrid_getAspirationAmplitudeAtTime); |
| 1047 |
praat_addAction1 (classKlattGrid, 1, U"Get breathiness amplitude at time...", nullptr, 1, |
| 1048 |
QUERY_ONE_FOR_REAL__KlattGrid_getBreathinessAmplitudeAtTime); |
| 1049 |
|
| 1050 |
praat_addAction1 (classKlattGrid, 0, U"Query filters -", nullptr, 0, nullptr); |
| 1051 |
praat_addAction1 (classKlattGrid, 1, U"Get formant at time...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1052 |
QUERY_ONE_FOR_REAL__KlattGrid_getFormantAtTime); |
| 1053 |
praat_addAction1 (classKlattGrid, 1, U"Get bandwidth at time...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1054 |
QUERY_ONE_FOR_REAL__KlattGrid_getBandwidthAtTime); |
| 1055 |
praat_addAction1 (classKlattGrid, 1, U"Get amplitude at time...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1056 |
QUERY_ONE_FOR_REAL__KlattGrid_getAmplitudeAtTime); |
| 1057 |
praat_addAction1 (classKlattGrid, 1, U"Get delta formant at time...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1058 |
QUERY_ONE_FOR_REAL__KlattGrid_getDeltaFormantAtTime); |
| 1059 |
praat_addAction1 (classKlattGrid, 1, U"Get delta bandwidth at time...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1060 |
QUERY_ONE_FOR_REAL__KlattGrid_getDeltaBandwidthAtTime); |
| 1061 |
|
| 1062 |
#define KlattGRID_GET_FORMANT_FB_VALUES_ACTION(Name, formantname) \ |
| 1063 |
praat_addAction1 (classKlattGrid, 1, U"Get " #formantname " frequency at time...", nullptr, 1, \ |
| 1064 |
QUERY_ONE_FOR_REAL__KlattGrid_get##Name##FormantFrequencyAtTime); \ |
| 1065 |
praat_addAction1 (classKlattGrid, 1, U"Get " #formantname " bandwidth at time...", nullptr, 1, \ |
| 1066 |
QUERY_ONE_FOR_REAL__KlattGrid_get##Name##FormantBandwidthAtTime); |
| 1067 |
|
| 1068 |
#define KlattGRID_GET_FORMANT_FBA_VALUES_ACTION(Name,formantname) \ |
| 1069 |
KlattGRID_GET_FORMANT_FB_VALUES_ACTION (Name, formantname) \ |
| 1070 |
praat_addAction1 (classKlattGrid, 1, U"Get " #formantname " amplitude at time...", nullptr, 1, \ |
| 1071 |
QUERY_ONE_FOR_REAL__KlattGrid_get##Name##FormantAmplitudeAtTime); \ |
| 1072 |
|
| 1073 |
KlattGRID_GET_FORMANT_FBA_VALUES_ACTION (Oral, oral formant) |
| 1074 |
KlattGRID_GET_FORMANT_FBA_VALUES_ACTION (Nasal, nasal formant) |
| 1075 |
KlattGRID_GET_FORMANT_FB_VALUES_ACTION (NasalAnti, nasal antiformant) |
| 1076 |
|
| 1077 |
praat_addAction1 (classKlattGrid, 1, U"-- query delta characteristics", nullptr, 1, nullptr); |
| 1078 |
KlattGRID_GET_FORMANT_FB_VALUES_ACTION (Delta, delta formant) |
| 1079 |
KlattGRID_GET_FORMANT_FBA_VALUES_ACTION (Tracheal, tracheal formant) |
| 1080 |
KlattGRID_GET_FORMANT_FB_VALUES_ACTION (TrachealAnti, tracheal antiformant) |
| 1081 |
praat_addAction1 (classKlattGrid, 1, U"-- query frication characteristics", nullptr, 1, nullptr); |
| 1082 |
KlattGRID_GET_FORMANT_FBA_VALUES_ACTION (Frication, frication formant) |
| 1083 |
|
| 1084 |
#undef KlattGRID_GET_FORMANT_FB_VALUES_ACTION |
| 1085 |
#undef KlattGRID_GET_FORMANT_FBA_VALUES_ACTION |
| 1086 |
|
| 1087 |
praat_addAction1 (classKlattGrid, 1, U"Get frication bypass at time...", nullptr, 1, |
| 1088 |
QUERY_ONE_FOR_REAL__KlattGrid_getFricationBypassAtTime); |
| 1089 |
praat_addAction1 (classKlattGrid, 1, U"Get frication amplitude at time...", nullptr, 1, |
| 1090 |
QUERY_ONE_FOR_REAL__KlattGrid_getFricationAmplitudeAtTime); |
| 1091 |
|
| 1092 |
praat_addAction1 (classKlattGrid, 0, U"Modify phonation -", nullptr, 0, nullptr); |
| 1093 |
praat_addAction1 (classKlattGrid, 0, U"Add pitch point...", nullptr, 1, |
| 1094 |
MODIFY_KlattGrid_addPitchPoint); |
| 1095 |
praat_addAction1 (classKlattGrid, 0, U"Add voicing amplitude point...", nullptr, 1, |
| 1096 |
MODIFY_KlattGrid_addVoicingAmplitudePoint); |
| 1097 |
praat_addAction1 (classKlattGrid, 0, U"Add flutter point...", nullptr, 1, |
| 1098 |
MODIFY_KlattGrid_addFlutterPoint); |
| 1099 |
praat_addAction1 (classKlattGrid, 0, U"Add power1 point...", nullptr, 1, |
| 1100 |
MODIFY_KlattGrid_addPower1Point); |
| 1101 |
praat_addAction1 (classKlattGrid, 0, U"Add power2 point...", nullptr, 1, |
| 1102 |
MODIFY_KlattGrid_addPower2Point); |
| 1103 |
praat_addAction1 (classKlattGrid, 0, U"Add open phase point...", nullptr, 1, |
| 1104 |
MODIFY_KlattGrid_addOpenPhasePoint); |
| 1105 |
praat_addAction1 (classKlattGrid, 0, U"Add collision phase point...", nullptr, 1, |
| 1106 |
MODIFY_KlattGrid_addCollisionPhasePoint); |
| 1107 |
praat_addAction1 (classKlattGrid, 0, U"Add double pulsing point...", nullptr, 1, |
| 1108 |
MODIFY_KlattGrid_addDoublePulsingPoint); |
| 1109 |
praat_addAction1 (classKlattGrid, 0, U"Add spectral tilt point...", nullptr, 1, |
| 1110 |
MODIFY_KlattGrid_addSpectralTiltPoint); |
| 1111 |
praat_addAction1 (classKlattGrid, 0, U"Add aspiration amplitude point...", nullptr, 1, |
| 1112 |
MODIFY_KlattGrid_addAspirationAmplitudePoint); |
| 1113 |
praat_addAction1 (classKlattGrid, 0, U"Add breathiness amplitude point...", nullptr, 1, |
| 1114 |
MODIFY_KlattGrid_addBreathinessAmplitudePoint); |
| 1115 |
|
| 1116 |
#define KlattGrid_REMOVE_POINTS_ACTION(Name,name) \ |
| 1117 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #name " points between...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_HIDDEN, \ |
| 1118 |
MODIFY_KlattGrid_remove##Name##Points); \ |
| 1119 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #name " points...", nullptr, 1, \ |
| 1120 |
MODIFY_KlattGrid_remove##Name##Points); |
| 1121 |
|
| 1122 |
KlattGrid_REMOVE_POINTS_ACTION (Pitch, pitch) |
| 1123 |
KlattGrid_REMOVE_POINTS_ACTION (VoicingAmplitude, voicing amplitude) |
| 1124 |
KlattGrid_REMOVE_POINTS_ACTION (Flutter, flutter) |
| 1125 |
KlattGrid_REMOVE_POINTS_ACTION (Power1, power1) |
| 1126 |
KlattGrid_REMOVE_POINTS_ACTION (Power2, power2) |
| 1127 |
KlattGrid_REMOVE_POINTS_ACTION (OpenPhase, open phase) |
| 1128 |
KlattGrid_REMOVE_POINTS_ACTION (CollisionPhase, collision phase) |
| 1129 |
KlattGrid_REMOVE_POINTS_ACTION (DoublePulsing, double pulsing) |
| 1130 |
KlattGrid_REMOVE_POINTS_ACTION (SpectralTilt, spectral tilt) |
| 1131 |
KlattGrid_REMOVE_POINTS_ACTION (AspirationAmplitude, aspiration amplitude) |
| 1132 |
KlattGrid_REMOVE_POINTS_ACTION (BreathinessAmplitude, breathiness amplitude) |
| 1133 |
|
| 1134 |
praat_addAction1 (classKlattGrid, 0, U"Modify vocal tract -", nullptr, 0, nullptr); |
| 1135 |
|
| 1136 |
#define KlattGrid_MODIFY_ACTIONS_FBA(Name,formantname) \ |
| 1137 |
praat_addAction1 (classKlattGrid, 0, U"Formula (" #formantname " frequencies)...", nullptr, 1, \ |
| 1138 |
MODIFY_KlattGrid_formula##Name##FormantFrequencies); \ |
| 1139 |
praat_addAction1 (classKlattGrid, 0, U"Formula (" #formantname " bandwidths)...", nullptr, 1, \ |
| 1140 |
MODIFY_KlattGrid_formula##Name##FormantBandwidths); \ |
| 1141 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname " frequency point...", nullptr, 1, \ |
| 1142 |
MODIFY_KlattGrid_add##Name##FormantFrequencyPoint); \ |
| 1143 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname " bandwidth point...", nullptr, 1, \ |
| 1144 |
MODIFY_KlattGrid_add##Name##FormantBandwidthPoint); \ |
| 1145 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname " amplitude point...", nullptr, 1, \ |
| 1146 |
MODIFY_KlattGrid_add##Name##FormantAmplitudePoint); \ |
| 1147 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname " frequency points...", nullptr, 1, \ |
| 1148 |
MODIFY_KlattGrid_remove##Name##FormantFrequencyPoints); \ |
| 1149 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname " bandwidth points...", nullptr, 1, \ |
| 1150 |
MODIFY_KlattGrid_remove##Name##FormantBandwidthPoints); \ |
| 1151 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname " amplitude points...", nullptr, 1, \ |
| 1152 |
MODIFY_KlattGrid_remove##Name##FormantAmplitudePoints); \ |
| 1153 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname " frequency and bandwidth tiers...", nullptr, 1, \ |
| 1154 |
MODIFY_KlattGrid_add##Name##FormantFrequencyAndBandwidthTiers); \ |
| 1155 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname " frequency and bandwidth tiers...", nullptr, 1, \ |
| 1156 |
MODIFY_KlattGrid_remove##Name##FormantFrequencyAndBandwidthTiers); \ |
| 1157 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname " amplitude tier...", nullptr, 1, \ |
| 1158 |
MODIFY_KlattGrid_add##Name##FormantAmplitudeTier); \ |
| 1159 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname " amplitude tier...", nullptr, 1, \ |
| 1160 |
MODIFY_KlattGrid_remove##Name##FormantAmplitudeTier); \ |
| 1161 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname "...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_HIDDEN, \ |
| 1162 |
MODIFY_KlattGrid_add##Name##Formant); \ |
| 1163 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname "...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_HIDDEN, \ |
| 1164 |
MODIFY_KlattGrid_remove##Name##Formant); |
| 1165 |
|
| 1166 |
#define KlattGrid_MODIFY_ACTIONS_FB(Name,formantname) \ |
| 1167 |
praat_addAction1 (classKlattGrid, 0, U"Formula (" #formantname " frequencies)...", nullptr, 1, \ |
| 1168 |
MODIFY_KlattGrid_formula##Name##FormantFrequencies); \ |
| 1169 |
praat_addAction1 (classKlattGrid, 0, U"Formula (" #formantname " bandwidths)...", nullptr, 1, \ |
| 1170 |
MODIFY_KlattGrid_formula##Name##FormantBandwidths); \ |
| 1171 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname " frequency point...", nullptr, 1, \ |
| 1172 |
MODIFY_KlattGrid_add##Name##FormantFrequencyPoint); \ |
| 1173 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname " bandwidth point...", nullptr, 1, \ |
| 1174 |
MODIFY_KlattGrid_add##Name##FormantBandwidthPoint); \ |
| 1175 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname " frequency points...", nullptr, 1, \ |
| 1176 |
MODIFY_KlattGrid_remove##Name##FormantFrequencyPoints); \ |
| 1177 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname " bandwidth points...", nullptr, 1, \ |
| 1178 |
MODIFY_KlattGrid_remove##Name##FormantBandwidthPoints); \ |
| 1179 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname " frequency and bandwidth tiers...", nullptr, 1, \ |
| 1180 |
MODIFY_KlattGrid_add##Name##FormantFrequencyAndBandwidthTiers); \ |
| 1181 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname " frequency and bandwidth tiers...", nullptr, 1, \ |
| 1182 |
MODIFY_KlattGrid_remove##Name##FormantFrequencyAndBandwidthTiers); \ |
| 1183 |
praat_addAction1 (classKlattGrid, 0, U"Add " #formantname "...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_HIDDEN, \ |
| 1184 |
MODIFY_KlattGrid_add##Name##Formant); \ |
| 1185 |
praat_addAction1 (classKlattGrid, 0, U"Remove " #formantname "...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_HIDDEN, \ |
| 1186 |
MODIFY_KlattGrid_remove##Name##Formant); |
| 1187 |
|
| 1188 |
KlattGrid_MODIFY_ACTIONS_FBA (Oral, oral formant) |
| 1189 |
praat_addAction1 (classKlattGrid, 0, U"-- oral modify separator --", nullptr, 1, nullptr); |
| 1190 |
KlattGrid_MODIFY_ACTIONS_FBA (Nasal, nasal formant) |
| 1191 |
praat_addAction1 (classKlattGrid, 0, U"-- nasal modify separator --", nullptr, 1, nullptr); |
| 1192 |
KlattGrid_MODIFY_ACTIONS_FB (NasalAnti, nasal antiformant) |
| 1193 |
|
| 1194 |
praat_addAction1 (classKlattGrid, 0, U"Formula (frequencies)...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1195 |
MODIFY_KlattGrid_formula_frequencies); |
| 1196 |
praat_addAction1 (classKlattGrid, 0, U"Formula (bandwidths)...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1197 |
MODIFY_KlattGrid_formula_bandwidths); |
| 1198 |
praat_addAction1 (classKlattGrid, 0, U"Add formant point...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1199 |
MODIFY_KlattGrid_addFormantPoint); |
| 1200 |
praat_addAction1 (classKlattGrid, 0, U"Add bandwidth point...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1201 |
MODIFY_KlattGrid_addBandwidthPoint); |
| 1202 |
praat_addAction1 (classKlattGrid, 0, U"Add amplitude point...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1203 |
MODIFY_KlattGrid_addAmplitudePoint); |
| 1204 |
praat_addAction1 (classKlattGrid, 0, U"Remove formant points between...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1205 |
MODIFY_KlattGrid_removeFormantPoints); |
| 1206 |
praat_addAction1 (classKlattGrid, 0, U"Remove bandwidth points between...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1207 |
MODIFY_KlattGrid_removeBandwidthPoints); |
| 1208 |
praat_addAction1 (classKlattGrid, 0, U"Remove amplitude points between...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1209 |
MODIFY_KlattGrid_removeAmplitudePoints); |
| 1210 |
praat_addAction1 (classKlattGrid, 0, U"Modify coupling -", nullptr, 0, nullptr); |
| 1211 |
KlattGrid_MODIFY_ACTIONS_FB (Delta, delta formant) |
| 1212 |
praat_addAction1 (classKlattGrid, 0, U"-- delta modify separator --", nullptr, 1, nullptr); |
| 1213 |
KlattGrid_MODIFY_ACTIONS_FBA (Tracheal, tracheal formant) |
| 1214 |
praat_addAction1 (classKlattGrid, 0, U"-- nasal modify separator --", nullptr, 1, nullptr); |
| 1215 |
KlattGrid_MODIFY_ACTIONS_FB (TrachealAnti, tracheal antiformant) |
| 1216 |
|
| 1217 |
praat_addAction1 (classKlattGrid, 0, U"Add delta formant point...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1218 |
MODIFY_KlattGrid_addDeltaFormantPoint); |
| 1219 |
praat_addAction1 (classKlattGrid, 0, U"Add delta bandwidth point...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1220 |
MODIFY_KlattGrid_addDeltaBandwidthPoint); |
| 1221 |
praat_addAction1 (classKlattGrid, 0, U"Remove delta formant points between...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1222 |
MODIFY_KlattGrid_removeDeltaFormantPoints); |
| 1223 |
praat_addAction1 (classKlattGrid, 0, U"Remove delta bandwidth points between...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1224 |
MODIFY_KlattGrid_removeDeltaBandwidthPoints); |
| 1225 |
|
| 1226 |
praat_addAction1 (classKlattGrid, 0, U"Modify frication -", nullptr, 0, nullptr); |
| 1227 |
KlattGrid_MODIFY_ACTIONS_FBA (Frication, frication formant) |
| 1228 |
praat_addAction1 (classKlattGrid, 0, U"-- frication modify separator --", nullptr, 1, nullptr); |
| 1229 |
|
| 1230 |
praat_addAction1 (classKlattGrid, 0, U"Add frication bypass point...", nullptr, 1, |
| 1231 |
MODIFY_KlattGrid_addFricationBypassPoint); |
| 1232 |
praat_addAction1 (classKlattGrid, 0, U"Add frication amplitude point...", nullptr, 1, |
| 1233 |
MODIFY_KlattGrid_addFricationAmplitudePoint); |
| 1234 |
KlattGrid_REMOVE_POINTS_ACTION (FricationBypass, frication bypass) |
| 1235 |
KlattGrid_REMOVE_POINTS_ACTION (FricationAmplitude, frication amplitude) |
| 1236 |
praat_addAction1 (classKlattGrid, 0, U"Add formant and bandwidth tier...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1237 |
MODIFY_KlattGrid_addFormantAndBandwidthTier); |
| 1238 |
|
| 1239 |
#undef KlattGrid_REMOVE_POINTS_ACTION |
| 1240 |
#undef KlattGrid_MODIFY_ACTION_FB |
| 1241 |
#undef KlattGrid_MODIFY_ACTION_FBA |
| 1242 |
|
| 1243 |
praat_addAction1 (classKlattGrid, 0, U"Extract phonation -", nullptr, 0, nullptr); |
| 1244 |
praat_addAction1 (classKlattGrid, 0, U"Extract pitch tier", nullptr, 1, |
| 1245 |
CONVERT_EACH_TO_ONE__KlattGrid_extractPitchTier); |
| 1246 |
praat_addAction1 (classKlattGrid, 0, U"Extract voicing amplitude tier", nullptr, 1, |
| 1247 |
CONVERT_EACH_TO_ONE__KlattGrid_extractVoicingAmplitudeTier); |
| 1248 |
praat_addAction1 (classKlattGrid, 0, U"Extract flutter tier", nullptr, 1, |
| 1249 |
CONVERT_EACH_TO_ONE__KlattGrid_extractFlutterTier); |
| 1250 |
praat_addAction1 (classKlattGrid, 0, U"Extract power1 tier", nullptr, 1, |
| 1251 |
CONVERT_EACH_TO_ONE__KlattGrid_extractPower1Tier); |
| 1252 |
praat_addAction1 (classKlattGrid, 0, U"Extract power2 tier", nullptr, 1, |
| 1253 |
CONVERT_EACH_TO_ONE__KlattGrid_extractPower2Tier); |
| 1254 |
praat_addAction1 (classKlattGrid, 0, U"Extract open phase tier", nullptr, 1, |
| 1255 |
CONVERT_EACH_TO_ONE__KlattGrid_extractOpenPhaseTier); |
| 1256 |
praat_addAction1 (classKlattGrid, 0, U"Extract collision phase tier", nullptr, 1, |
| 1257 |
CONVERT_EACH_TO_ONE__KlattGrid_extractCollisionPhaseTier); |
| 1258 |
praat_addAction1 (classKlattGrid, 0, U"Extract double pulsing tier", nullptr, 1, |
| 1259 |
CONVERT_EACH_TO_ONE__KlattGrid_extractDoublePulsingTier); |
| 1260 |
praat_addAction1 (classKlattGrid, 0, U"Extract spectral tilt tier", nullptr, 1, |
| 1261 |
CONVERT_EACH_TO_ONE__KlattGrid_extractSpectralTiltTier); |
| 1262 |
praat_addAction1 (classKlattGrid, 0, U"Extract aspiration amplitude tier", nullptr, 1, |
| 1263 |
CONVERT_EACH_TO_ONE__KlattGrid_extractAspirationAmplitudeTier); |
| 1264 |
praat_addAction1 (classKlattGrid, 0, U"Extract breathiness amplitude tier", nullptr, 1, |
| 1265 |
CONVERT_EACH_TO_ONE__KlattGrid_extractBreathinessAmplitudeTier); |
| 1266 |
praat_addAction1 (classKlattGrid, 0, U"-- extract glottal events--", nullptr, 1, nullptr); |
| 1267 |
praat_addAction1 (classKlattGrid, 0, U"Extract PointProcess (glottal closures)", nullptr, 1, |
| 1268 |
CONVERT_EACH_TO_ONE__KlattGrid_extractPointProcess_glottalClosures); |
| 1269 |
|
| 1270 |
#define KlattGRID_EXTRACT_FORMANT_GRID_ACTION(Name,namef) \ |
| 1271 |
praat_addAction1 (classKlattGrid, 0, U"Extract " #namef "ormant grid", nullptr, 1, \ |
| 1272 |
CONVERT_EACH_TO_ONE__KlattGrid_extract##Name##FormantGrid); |
| 1273 |
#define KlattGRID_EXTRACT_FORMANT_AMPLITUDE_ACTION(Name,name) \ |
| 1274 |
praat_addAction1 (classKlattGrid, 0, U"Extract " #name " formant amplitude tier...", nullptr, 1, \ |
| 1275 |
CONVERT_EACH_TO_ONE__KlattGrid_extract##Name##FormantAmplitudeTier); |
| 1276 |
|
| 1277 |
praat_addAction1 (classKlattGrid, 0, U"Extract filters -", nullptr, 0, nullptr); |
| 1278 |
praat_addAction1 (classKlattGrid, 0, U"Extract formant grid...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009 | GuiMenu_NO_API, |
| 1279 |
CONVERT_EACH_TO_ONE__KlattGrid_extractFormantGrid); |
| 1280 |
KlattGRID_EXTRACT_FORMANT_GRID_ACTION (Oral, oral f) |
| 1281 |
praat_addAction1 (classKlattGrid, 0, U"Extract amplitude tier...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009 | GuiMenu_NO_API, |
| 1282 |
CONVERT_EACH_TO_ONE__KlattGrid_extractAmplitudeTier); |
| 1283 |
praat_addAction1 (classKlattGrid, 0, U"Extract oral formant grid (open phases)... || Extract formant grid (open phases)...", nullptr, 1, |
| 1284 |
CONVERT_EACH_TO_ONE__KlattGrid_to_oralFormantGrid_openPhases); // alternative GuiMenu_DEPRECATED_2009 |
| 1285 |
KlattGRID_EXTRACT_FORMANT_AMPLITUDE_ACTION (Oral, oral) |
| 1286 |
KlattGRID_EXTRACT_FORMANT_GRID_ACTION (Nasal, nasal f) |
| 1287 |
KlattGRID_EXTRACT_FORMANT_AMPLITUDE_ACTION (Nasal, nasal) |
| 1288 |
KlattGRID_EXTRACT_FORMANT_GRID_ACTION (NasalAnti, nasal antif) |
| 1289 |
|
| 1290 |
praat_addAction1 (classKlattGrid, 0, U"-- extract delta characteristics", nullptr, 1, nullptr); |
| 1291 |
praat_addAction1 (classKlattGrid, 0, U"Extract delta formant grid", nullptr, 1, |
| 1292 |
CONVERT_EACH_TO_ONE__KlattGrid_extractDeltaFormantGrid); |
| 1293 |
KlattGRID_EXTRACT_FORMANT_GRID_ACTION (Tracheal, tracheal f) |
| 1294 |
KlattGRID_EXTRACT_FORMANT_AMPLITUDE_ACTION (Tracheal, tracheal) |
| 1295 |
KlattGRID_EXTRACT_FORMANT_GRID_ACTION (TrachealAnti, tracheal antif) |
| 1296 |
praat_addAction1 (classKlattGrid, 0, U"-- extract frication characteristics", nullptr, 1, nullptr); |
| 1297 |
KlattGRID_EXTRACT_FORMANT_GRID_ACTION (Frication, frication f) |
| 1298 |
KlattGRID_EXTRACT_FORMANT_AMPLITUDE_ACTION (Frication, frication) |
| 1299 |
praat_addAction1 (classKlattGrid, 0, U"Extract frication bypass tier", nullptr, 1, |
| 1300 |
CONVERT_EACH_TO_ONE__KlattGrid_extractFricationBypassTier); |
| 1301 |
praat_addAction1 (classKlattGrid, 0, U"Extract frication amplitude tier", nullptr, 1, |
| 1302 |
CONVERT_EACH_TO_ONE__KlattGrid_extractFricationAmplitudeTier); |
| 1303 |
|
| 1304 |
#undef KlattGRID_EXTRACT_FORMANT_AMPLITUDE_ACTION |
| 1305 |
#undef KlattGRID_EXTRACT_FORMANT_GRID_ACTION |
| 1306 |
|
| 1307 |
praat_addAction2 (classKlattGrid, 1, classPitchTier, 1, U"Replace pitch tier", nullptr, 1, |
| 1308 |
MODIFY_KlattGrid_replacePitchTier); |
| 1309 |
praat_addAction2 (classKlattGrid, 1, classRealTier, 1, U"Replace flutter tier", nullptr, 1, |
| 1310 |
MODIFY_KlattGrid_replaceFlutterTier); |
| 1311 |
praat_addAction2 (classKlattGrid, 1, classRealTier, 1, U"Replace power1 tier", nullptr, 1, |
| 1312 |
MODIFY_KlattGrid_replacePower1Tier); |
| 1313 |
praat_addAction2 (classKlattGrid, 1, classRealTier, 1, U"Replace power2 tier", nullptr, 1, |
| 1314 |
MODIFY_KlattGrid_replacePower2Tier); |
| 1315 |
praat_addAction2 (classKlattGrid, 1, classRealTier, 1, U"Replace open phase tier", nullptr, 1, |
| 1316 |
MODIFY_KlattGrid_replaceOpenPhaseTier); |
| 1317 |
praat_addAction2 (classKlattGrid, 1, classRealTier, 1, U"Replace collision phase tier", nullptr, 1, |
| 1318 |
MODIFY_KlattGrid_replaceCollisionPhaseTier); |
| 1319 |
praat_addAction2 (classKlattGrid, 1, classRealTier, 1, U"Replace double pulsing tier", nullptr, 1, |
| 1320 |
MODIFY_KlattGrid_replaceDoublePulsingTier); |
| 1321 |
|
| 1322 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"-- replace formant amplitudes --", nullptr, 1, nullptr); |
| 1323 |
|
| 1324 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"Replace formant grid...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1325 |
MODIFY_KlattGrid_replaceFormantGrid); |
| 1326 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"Replace oral formant grid", nullptr, 1, |
| 1327 |
MODIFY_KlattGrid_replaceOralFormantGrid); |
| 1328 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"Replace nasal formant grid", nullptr, 1, |
| 1329 |
MODIFY_KlattGrid_replaceNasalFormantGrid); |
| 1330 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"Replace nasal antiformant grid", nullptr, 1, |
| 1331 |
MODIFY_KlattGrid_replaceNasalAntiFormantGrid); |
| 1332 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"-- replace coupling --", nullptr, 1, nullptr); |
| 1333 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"Replace tracheal formant grid", nullptr, 1, |
| 1334 |
MODIFY_KlattGrid_replaceTrachealFormantGrid); |
| 1335 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"Replace tracheal antiformant grid", nullptr, 1, |
| 1336 |
MODIFY_KlattGrid_replaceTrachealAntiFormantGrid); |
| 1337 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"Replace delta formant grid", nullptr, 1, |
| 1338 |
MODIFY_KlattGrid_replaceDeltaFormantGrid); |
| 1339 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"-- replace frication --", nullptr, 1, nullptr); |
| 1340 |
praat_addAction2 (classKlattGrid, 1, classFormantGrid, 1, U"Replace frication formant grid", nullptr, 1, |
| 1341 |
MODIFY_KlattGrid_replaceFricationFormantGrid); |
| 1342 |
|
| 1343 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace voicing amplitude tier", nullptr, 1, |
| 1344 |
MODIFY_KlattGrid_replaceVoicingAmplitudeTier); |
| 1345 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace spectral tilt tier", nullptr, 1, |
| 1346 |
MODIFY_KlattGrid_replaceSpectralTiltTier); |
| 1347 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace aspiration amplitude tier", nullptr, 1, |
| 1348 |
MODIFY_KlattGrid_replaceAspirationAmplitudeTier); |
| 1349 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace breathiness amplitude tier", nullptr, 1, |
| 1350 |
MODIFY_KlattGrid_replaceBreathinessAmplitudeTier); |
| 1351 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace amplitude tier...", nullptr, GuiMenu_DEPTH_1 | GuiMenu_DEPRECATED_2009, |
| 1352 |
MODIFY_KlattGrid_replaceAmplitudeTier); |
| 1353 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace oral formant amplitude tier...", nullptr, 1, |
| 1354 |
MODIFY_KlattGrid_replaceOralFormantAmplitudeTier); |
| 1355 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace nasal formant amplitude tier...", nullptr, 1, |
| 1356 |
MODIFY_KlattGrid_replaceNasalFormantAmplitudeTier); |
| 1357 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace tracheal formant amplitude tier...", nullptr, 1, |
| 1358 |
MODIFY_KlattGrid_replaceTrachealFormantAmplitudeTier); |
| 1359 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace frication formant amplitude tier...", nullptr, 1, |
| 1360 |
MODIFY_KlattGrid_replaceFricationFormantAmplitudeTier); |
| 1361 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace frication amplitude tier", nullptr, 1, |
| 1362 |
MODIFY_KlattGrid_replaceFricationAmplitudeTier); |
| 1363 |
praat_addAction2 (classKlattGrid, 1, classIntensityTier, 1, U"Replace frication bypass tier", nullptr, 1, |
| 1364 |
MODIFY_KlattGrid_replaceFricationBypassTier); |
| 1365 |
|
| 1366 |
praat_addAction2 (classKlattGrid, 1, classSound, 1, U"Filter by vocal tract...", nullptr, 1, |
| 1367 |
CONVERT_ONE_AND_ONE_TO_ONE__Sound_KlattGrid_filterByVocalTract); |
| 1368 |
|
| 1369 |
INCLUDE_MANPAGES (manual_KlattGrid) |
| 1370 |
} |
| 1371 |
|
| 1372 |
/* End of file praat_KlattGrid_init.cpp */ |