| 1 |
# updateScrollBar_GUI_.praat |
| 2 |
# Paul Boersma 2021-08-25 |
| 3 |
|
| 4 |
# |
| 5 |
# Scenario: |
| 6 |
# |
| 7 |
# Given two open Sound windows for the same Sound object, |
| 8 |
# when you Cut in one of them, the cut also appears in the other. |
| 9 |
# Praat should ungroup the first window, because it no longer |
| 10 |
# fits into a group with any other open windows. |
| 11 |
# For the same reason, Praat should ungroup also the other Sound window. |
| 12 |
# |
| 13 |
|
| 14 |
sound = Create Sound from formula: "sineWithNoise", 1, 0.0, 1.0, |
| 15 |
... 44100, ~ 1/2 * sin(2*pi*377*x) + randomGauss(0,0.1) |
| 16 |
manip = To Manipulation: 0.01, 75.0, 600.0 |
| 17 |
View & Edit |
| 18 |
selectObject: sound |
| 19 |
View & Edit |
| 20 |
editor: sound |
| 21 |
Select: 0.6, 0.7 |
| 22 |
endeditor |
| 23 |
View & Edit |
| 24 |
editor: sound |
| 25 |
Cut |
| 26 |
endeditor |
| 27 |
# |
| 28 |
# Now, cutting should have ungrouped the other sound window. |
| 29 |
# |
| 30 |
selectObject: manip |
| 31 |
View & Edit |
| 32 |
|
| 33 |
removeObject: sound, manip |