test_bss_twoSoundsMixed.praat 837 B

12345678910111213141516171819202122232425262728293031
  1. # bss_twoSoundsMixed.praat
  2. # test_bss_example_manual.praat
  3. # djmw 20151030
  4. Erase all
  5. synth = Create SpeechSynthesizer: "English (Great Britain)", "Female1"
  6. s1 = To Sound: "This is some text.", "no"
  7. selectObject: synth
  8. Set speech output settings: 44100, 0.01, 80, 50, 145, "no", "IPA"
  9. s2 =To Sound: "abracadabra, abra", "no"
  10. plusObject: s1
  11. stereo = Combine to stereo
  12. Select inner viewport: 1, 6, 0.1, 1.9
  13. Draw: 0, 0, 0, 0, "no", "Curve"
  14. Draw inner box
  15. mm = Create simple MixingMatrix: "mm", 2, 2, "1.0 2.0 2.0 1.0"
  16. plus stereo
  17. mixed = Mix
  18. Select inner viewport: 1, 6, 2.1, 3.9
  19. Draw: 0, 0, 0, 0, "no", "Curve"
  20. Draw inner box
  21. unmixed = To Sound (bss): 0.1, 1, 20, 0.00021, 100, 0.001, "ffdiag"
  22. Select inner viewport: 1, 6, 4.1, 5.9
  23. Draw: 0, 0, 0, 0, "no", "Curve"
  24. Draw inner box
  25. removeObject: synth, stereo, s1, s2, mixed, mm, unmixed