Demo_recording_problem.praat 882 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Initialize
  2. demo Erase all
  3. demo Select inner viewport... 5 95 5 95
  4. demo Axes... 0 100 0 100
  5. # Recording text
  6. demo Font size: 24
  7. demo Colour: "Black"
  8. demo Text: 50, "Centre", 50, "Bottom", "Recording started: You should see a red disk during recording"
  9. demoShow()
  10. # Recording light
  11. demo Paint circle: "Red", 5, 95, 2
  12. demoShow()
  13. .sound = Record Sound (fixed time): "Microphone", 0.99, 0.5, "44100", 5
  14. Remove
  15. # Clear text
  16. demo Paint rectangle: "White", 0, 100, 45, 60
  17. # Finish light
  18. demo Paint circle: "Blue", 10, 95, 2
  19. # Finish text
  20. demo Font size: 24
  21. demo Colour: "Black"
  22. demo Text: 50, "Centre", 50, "Bottom", "Recording stopped: Now you should see a red and a blue disk"
  23. demo Text: 50, "Centre", 45, "Bottom", "(Click anywhere in the window or hit any key to exit)"
  24. # Wait and exit
  25. demoWaitForInput()
  26. demo Erase all
  27. exit