formsTest.praat 1009 B

12345678910111213141516171819202122232425262728293031323334
  1. #! Praat script formsTest.txt
  2. # Paul Boersma, 20 January 2009
  3. echo script
  4. compression = 1
  5. number_of_channels = 2
  6. worth = 3
  7. for i to 5
  8. beginPause ("Hi")
  9. comment ("Type a lot of nonsense below.")
  10. natural ("Number of people", 10)
  11. real ("Worth", worth+1)
  12. positive ("Sampling frequency (Hz)", "44100.0 (= CD quality)")
  13. word ("hi", "hhh")
  14. sentence ("lo", "two words")
  15. text ("ko", "jkgkjhkj g gdfg dfg")
  16. boolean ("You like it?", 1)
  17. if worth < 6
  18. choice ("Compression", compression)
  19. option ("lossless (FLAC)")
  20. option ("MP3")
  21. option ("Ogg")
  22. endif
  23. optionMenu ("Number of channels", number_of_channels)
  24. option ("mono")
  25. option ("stereo")
  26. option ("quadro")
  27. comment ("Then click Stop or one of the continuation buttons.")
  28. clicked = endPause ("Continue", "Next", "Proceed", 2)
  29. printline 'number_of_people' 'worth' 'sampling_frequency' 'clicked'
  30. printline Compression: 'compression' ('compression$')
  31. printline Number of channels: 'number_of_channels$'
  32. endfor
  33. printline end