TextGrid.praat 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # test/fon/TextGrid.praat
  2. # Paul Boersma, 19 November 2013
  3. do ("Create TextGrid...", 0.0, 3.0, "A B C", "")
  4. #Create TextGrid: 0.0, 3.0, "A B C", ""
  5. i = Get interval at time... 2 -1
  6. assert i = 0
  7. i = Get interval at time... 2 0
  8. assert i = 1
  9. i = Get interval at time... 2 1
  10. assert i = 1
  11. i = Get interval at time... 2 2
  12. assert i = 1
  13. i = Get interval at time... 2 3
  14. assert i = 1
  15. i = Get interval at time... 2 4
  16. assert i = 0
  17. i = Get low interval at time... 2 -1
  18. assert i = 0
  19. i = Get low interval at time... 2 0
  20. assert i = 0
  21. i = Get low interval at time... 2 1
  22. assert i = 1
  23. i = Get low interval at time... 2 2
  24. assert i = 1
  25. i = Get low interval at time... 2 3
  26. assert i = 1
  27. i = Get low interval at time... 2 4
  28. assert i = 0
  29. i = Get high interval at time... 2 -1
  30. assert i = 0
  31. i = Get high interval at time... 2 0
  32. assert i = 1
  33. i = Get high interval at time... 2 1
  34. assert i = 1
  35. i = Get high interval at time... 2 2
  36. assert i = 1
  37. i = Get high interval at time... 2 3
  38. assert i = 0
  39. i = Get high interval at time... 2 4
  40. assert i = 0
  41. i = Get interval edge from time... 2 -1
  42. assert i = 0
  43. i = Get interval edge from time... 2 0
  44. assert i = 1
  45. i = Get interval edge from time... 2 1
  46. assert i = 0
  47. i = Get interval edge from time... 2 2
  48. assert i = 0
  49. i = Get interval edge from time... 2 3
  50. assert i = 1
  51. i = Get interval edge from time... 2 4
  52. assert i = 0
  53. i = Get interval boundary from time... 2 -1
  54. assert i = 0
  55. i = Get interval boundary from time... 2 0
  56. assert i = 0
  57. i = Get interval boundary from time... 2 1
  58. assert i = 0
  59. i = Get interval boundary from time... 2 2
  60. assert i = 0
  61. i = Get interval boundary from time... 2 3
  62. assert i = 0
  63. i = Get interval boundary from time... 2 4
  64. assert i = 0
  65. Insert boundary: 2, 1.0
  66. Insert boundary: 2, 2.0
  67. i = Get interval at time... 2 -1
  68. assert i = 0
  69. i = Get interval at time... 2 0
  70. assert i = 1
  71. i = Get interval at time... 2 1
  72. assert i = 2
  73. i = Get interval at time... 2 2
  74. assert i = 3
  75. i = Get interval at time... 2 3
  76. assert i = 3
  77. i = Get interval at time... 2 4
  78. assert i = 0
  79. i = Get low interval at time... 2 -1
  80. assert i = 0
  81. i = Get low interval at time... 2 0
  82. assert i = 0
  83. i = Get low interval at time... 2 1
  84. assert i = 1
  85. i = Get low interval at time... 2 2
  86. assert i = 2
  87. i = Get low interval at time... 2 3
  88. assert i = 3
  89. i = Get low interval at time... 2 4
  90. assert i = 0
  91. i = Get high interval at time... 2 -1
  92. assert i = 0
  93. i = Get high interval at time... 2 0
  94. assert i = 1
  95. i = Get high interval at time... 2 1
  96. assert i = 2
  97. i = Get high interval at time... 2 2
  98. assert i = 3
  99. i = Get high interval at time... 2 3
  100. assert i = 0
  101. i = Get high interval at time... 2 4
  102. assert i = 0
  103. i = Get interval edge from time... 2 -1
  104. assert i = 0
  105. i = Get interval edge from time... 2 0
  106. assert i = 1
  107. i = Get interval edge from time... 2 1
  108. assert i = 2
  109. i = Get interval edge from time... 2 2
  110. assert i = 3
  111. i = Get interval edge from time... 2 3
  112. assert i = 3
  113. i = Get interval edge from time... 2 4
  114. assert i = 0
  115. i = Get interval boundary from time... 2 -1
  116. assert i = 0
  117. i = Get interval boundary from time... 2 0
  118. assert i = 0
  119. i = Get interval boundary from time... 2 1
  120. assert i = 2
  121. i = Get interval boundary from time... 2 2
  122. assert i = 3
  123. i = Get interval boundary from time... 2 3
  124. assert i = 0
  125. i = Get interval boundary from time... 2 4
  126. assert i = 0
  127. Remove