| 1 |
# test/manually/pauseForm.praat |
| 2 |
# Paul Boersma 2023-01-30 |
| 3 |
|
| 4 |
writeInfoLine: "script" |
| 5 |
compression = 1 |
| 6 |
number_of_channels = 2 |
| 7 |
worth = 3 |
| 8 |
for i to 5 |
| 9 |
beginPause ("Hi") |
| 10 |
comment: "Type a lot of nonsense below." |
| 11 |
natural: "Number of people", 10 |
| 12 |
real: "Worth", worth + 1 |
| 13 |
positive: "Sampling frequency (Hz)", "44100.0 (= CD quality)" |
| 14 |
word: "hi", "hhh" |
| 15 |
sentence: "lo", "two words" |
| 16 |
text: "shortText", "some one-line text here" |
| 17 |
text: 2, "longText", "some scrollable text here, within a height of 2 lines" |
| 18 |
boolean: "You like it?", 1 ; BUG: things like "yes" should be possible as well |
| 19 |
infile: "Input file", "hello.wav" |
| 20 |
outfile: 2, "Output file", "../out.txt" |
| 21 |
realvector: 2, "Array of reals", "(whitespace-separated)", "20 80 60" |
| 22 |
if worth < 6 |
| 23 |
choice: "Compression", compression |
| 24 |
option ("lossless (FLAC)") |
| 25 |
option ("MP3") |
| 26 |
option ("Ogg") |
| 27 |
endif |
| 28 |
optionmenu: "Number of channels", number_of_channels |
| 29 |
option: "mono" |
| 30 |
option: "stereo" |
| 31 |
option: "quadro" |
| 32 |
comment: "Then click Stop or one of the continuation buttons." |
| 33 |
clicked = endPause: "Continue", "Next", "Proceed", 2 |
| 34 |
appendInfoLine: number_of_people, " ", worth, " ", sampling_frequency, " ", clicked |
| 35 |
appendInfoLine: "Compression: ", compression, " (", compression$, ")" |
| 36 |
appendInfoLine: "Number of channels: ", number_of_channels$ |
| 37 |
appendInfoLine: "Short text: ", shortText$ |
| 38 |
appendInfoLine: "Long text: ", longText$ |
| 39 |
appendInfoLine: "Input file: ", input_file$ |
| 40 |
appendInfoLine: "Array: ", array_of_reals# |
| 41 |
endfor |
| 42 |
appendInfoLine: "OK" |