Debian Codegraph @

test/fon/textioSpeed.praat

raw
1 # textioSpeed.praat
2 # Paul Boersma, 2015-11-18
3
4 echo Text I/O speed:
5
6 for i to 33
7 sound'i' = Create Sound from formula... sound'i' Mono 0 10 44100 i
8 endfor
9 select sound1
10 for i from 2 to 33
11 plus sound'i'
12 endfor
13 print writing:
14 stopwatch
15 Write to text file... kanweg.Collection
16 t = stopwatch
17 printline 't:3' seconds
18 Remove
19 print reading:
20 stopwatch
21 Read from file... kanweg.Collection
22 t = stopwatch
23 printline 't:3' seconds
24 assert numberOfSelected () = 33
25 minus Sound sound30
26 Remove
27 select Sound sound30
28 mean = Get mean... All 0 0
29 assert mean = 30 ; 'mean'
30 Remove
31 deleteFile ("kanweg.Collection")
32 printline OK