Debian Codegraph @

test/fon/TextGrid_Sound_extractIntervals.praat

raw
1 sound = Create Sound from formula: "sineWithNoise", 1, 0, 1, 44100, "1/2 * sin(2*pi*377*x) + randomGauss(0,0.1)"
2 textgrid = To TextGrid: "Mary John bell", "bell"
3 Insert boundary: 1, 0.5
4 Insert boundary: 1, 0.7
5 Set interval text: 1, 1, "a"
6 Set interval text: 1, 2, "b"
7 Set interval text: 1, 3, "c"
8 selectObject: sound, textgrid
9 Extract all intervals: 1, "no"
10
11 removeObject: sound, textgrid, "Sound a", "Sound b", "Sound c"