Debian Codegraph @

test/manually/form2.praat

raw
1 form: "manually/Form2"
2 positive: "Frequency (Hz)", "100*100"
3 boolean: "Called from outside", 0
4 infile: 1, "Input file (Hz)", "innetje.wav"
5 outfile: "Output_file", "uitje.wav"
6 folder: "Folder", "mapje"
7 real: "left Pitch range (Hz)", "0.01 (= auto)"
8 positive: "right Pitch range (Hz)", "500.0"
9 word: "Any word", "here"
10 text ttt Paul
11 text: "Tekstje", "abc"
12 text: 2, "Tekst", "abcdef"
13 realvector: "Numbers1", "(formula)", "{ 10, 80, 20 }"
14 realvector: 3, "Numbers2", "(whitespace-separated)", "8 19 -1.5"
15 choice: "Foreground colour", 2
16 option: "Red"
17 option: "Green"
18 option: "Blue"
19 optionmenu: "Texture", 1
20 option: "Smooth"
21 option: "Rough"
22 option: "With holes"
23 endform
24
25 appendInfoLine: "Form2..."
26 appendInfoLine: "Frequency: <<", frequency, ">>"
27 appendInfoLine: "Called from outside: <<", called_from_outside, ">>"
28 appendInfoLine: "Input file: <<", input_file$, ">>"
29 appendInfoLine: "Output file: <<", output_file$, ">>"
30 appendInfoLine: "Folder file: <<", folder$, ">>"
31 appendInfoLine: "fmin: <<", left_Pitch_range, ">>"
32 appendInfoLine: "fmax: <<", right_Pitch_range, ">>"
33 appendInfoLine: "word: <<", any_word$, ">>"
34 appendInfoLine: "ttt: <<", ttt$, ">>"
35 appendInfoLine: "Tekstje: <<", tekstje$, ">>"
36 appendInfoLine: "Tekst: <<", tekst$, ">>"
37 appendInfoLine: "Numbers1: <<", numbers1#, ">>"
38 appendInfoLine: "Numbers2: <<", numbers2#, ">>"
39 appendInfoLine: "Colour: <<", foreground_colour, ">>"
40 appendInfoLine: "Colour: <<", foreground_colour$, ">>"
41 appendInfoLine: "Texture: <<", texture, ">>"
42 appendInfoLine: "Texture: <<", texture$, ">>"
43
44 # if called from test/script/form1.praat:
45 assert numbers1# = { 16, -17.6, 5 }
46 assert numbers2# = { 6, 7, 8 }
47 if windows
48 assert endsWith (input_file$, "test\script\2345") ; should not be possible
49 assert endsWith (output_file$, "test\script\..\abc.txt")
50 assert endsWith (folder$, "test\script\subfolder\wav2vec")
51 else
52 assert endsWith (input_file$, "test/script/2345") ; should not be possible
53 assert endsWith (output_file$, "test/script/../abc.txt")
54 assert endsWith (folder$, "test/script/subfolder/wav2vec")
55 endif
56 assert texture$ = "With holes"
57 assert any_word$ = "there you are"
58
59 appendInfoLine: "OK manually/Form2"