test/fon/Sound_to_Formant.praat
raw| 1 | # test/fon/Sound_to_Formant.praat |
| 2 | # Paul Boersma, 22 November 2011 |
| 3 | # 2017 |
| 4 | |
| 5 | for i to 30 |
| 6 | duration = randomUniform (0.001, 0.003) |
| 7 | windowDuration = randomUniform (0.002, 0.005) |
| 8 | samplingFrequency = randomUniform (16000, 96000) |
| 9 | sound = Create Sound from formula: "test", 1, 0, duration, samplingFrequency, ~ 1/2 * sin(2*pi*377*x) + randomGauss(0,0.1) |
| 10 | noprogress To Formant (burg): 0.005, 5, 5500, windowDuration, 50 |
| 11 | plus sound |
| 12 | Remove |
| 13 | endfor |