ba-da-continuum.praat 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # ba-da-continuum.praat
  2. # djmw 20090506
  3. # de KlattGrid versie
  4. nsounds = 10
  5. t1 = 0.05
  6. t2 = t1+0.05
  7. tm = 0.3
  8. kg = Create KlattGrid... kg 0 tm 9 1 1 6 1 1 1
  9. Add pitch point... 0 150
  10. Add pitch point... tm 100
  11. Add voicing amplitude point... t1 65
  12. Add voicing amplitude point... t2 80
  13. Add open phase point... t1 0.7
  14. Add collision phase point... t1 0.05
  15. #Add aspiration amplitude point... t1 30
  16. #Add aspiration amplitude point... t2 40
  17. Add oral formant frequency point... 1 t1 100
  18. Add oral formant bandwidth point... 1 t1 50
  19. Add oral formant frequency point... 1 t2 800
  20. Add oral formant bandwidth point... 2 t1 100
  21. Add delta formant bandwidth point... 1 t1 100
  22. for iformant from 3 to 9
  23. frequency = (2 * iformant - 1) * 500
  24. Add oral formant frequency point... iformant t2 frequency
  25. Add oral formant bandwidth point... iformant t1 frequency
  26. Add oral formant bandwidth point... iformant t2 frequency / 15
  27. endfor
  28. for isound to nsounds
  29. select kg
  30. Remove oral formant frequency points... 2 0 tm
  31. f2 = 100 + (2900 / (nsounds - 1)) * (isound - 1)
  32. Add oral formant frequency point... 2 t1 f2
  33. Add oral formant frequency point... 2 t2 1200
  34. To Sound
  35. Fade out... All tm -0.005 y
  36. Rename... bada'isound'
  37. endfor
  38. # cleanup
  39. select kg
  40. #Remove
  41. # old style according manual Source-filter synthesis 3. does not work nbeacause of error in script
  42. procedure ba_da_old_style
  43. tm = 0.4
  44. t1 = 0.05
  45. pt = Create PitchTier... f0 0 tm
  46. Add point... 0 150
  47. Add point... tm 100
  48. pp = To PointProcess
  49. Remove points between... 0 t1
  50. Remove points between... tm-0.05 tm
  51. s = To Sound (phonation)... 44100 0.6 0.05 0.7 0.03 3.0 4.0
  52. intens = Create IntensityTier... intens 0 tm
  53. Add point... t1 60
  54. Add point... t1+0.05 80
  55. plus s
  56. source = Multiply
  57. for i to 10
  58. f2_locus = 500+(2500/9)*(i-1)
  59. fg = Create FormantGrid... filter 0 tm 9 0.001 1000 0 100
  60. Remove formant points between... 1 0 tm
  61. Add formant point... 1 t1 100
  62. Add bandwidth point... 1 t1 50
  63. Add formant point... 2 t1 f2_locus
  64. Add bandwidth point... 2 t1 100
  65. plus source
  66. Filter
  67. Rename... old_bada'i'
  68. select fg
  69. Remove
  70. endfor
  71. select source
  72. plus s
  73. plus intens
  74. plus pp
  75. plus pt
  76. Remove
  77. endproc