| 1 |
# test/fon/Formant.praat |
| 2 |
# Paul Boersma 2020-03-31 |
| 3 |
|
| 4 |
tone = Create Sound as pure tone: "tone", 1, 0, 0.4, 44100, 440, 0.2, 0.01, 0.01 |
| 5 |
spectrum = To Spectrum: "yes" |
| 6 |
excitation = To Excitation: 0.1 |
| 7 |
|
| 8 |
smooth = To Formant: 20 |
| 9 |
Save as binary file: "kanweg.Formant" |
| 10 |
copy = Copy: "copy" ; check invariant |
| 11 |
Remove |
| 12 |
|
| 13 |
selectObject: spectrum |
| 14 |
Formula: ~ 0 |
| 15 |
peaks = To Formant (peaks): 1000 |
| 16 |
Save as binary file: "kanweg.Formant" |
| 17 |
copy = Copy: "copy" ; check invariant |
| 18 |
Remove |
| 19 |
|
| 20 |
removeObject: peaks, smooth, excitation, spectrum, tone |
| 21 |
|
| 22 |
tone = Create Sound as pure tone: "tone", 1, 0, 10, 44100, 531, 0.2, 0.01, 0.01 |
| 23 |
formant = To Formant (burg): 0, 5, 5500, 0.025, 50 |
| 24 |
selectObject: tone |
| 25 |
pulses = To PointProcess (periodic, peaks): 75, 600, "yes", "no" |
| 26 |
plusObject: formant |
| 27 |
tier = To FormantTier |
| 28 |
Save as binary file: "kanweg.FormantTier" |
| 29 |
removeObject: tier, pulses, formant, tone |