| 1 |
sound = Create Sound from formula: "sineWithNoise", 1, 0, 1, 44100, ~ 1/2 * sin(2*pi*377*x) + randomGauss(0,0.1) |
| 2 |
pulses = noprogress To PointProcess (periodic, cc): 75.0, 600.0 |
| 3 |
plusObject: sound |
| 4 |
View & Edit |
| 5 |
editor: pulses |
| 6 |
info$ = Editor info |
| 7 |
assert index (info$, "Editor type: PointEditor" + newline$) |
| 8 |
assert index (info$, "Editor name: ") |
| 9 |
assert index (info$, ". PointProcess sineWithNoise" + newline$) |
| 10 |
assert index (info$, "Editor end: 1 seconds" + newline$) |
| 11 |
assert index (info$, "Selection start: 0.5 seconds" + newline$) ; if this editor is the only open editor |
| 12 |
assert index (info$, "Selection end: 0.5 seconds" + newline$) |
| 13 |
info$ = PointProcess info |
| 14 |
assert index (info$, "Object type: PointProcess" + newline$) |
| 15 |
assert index (info$, "Object name: sineWithNoise" + newline$) |
| 16 |
assert index (info$, "Time domain:" + newline$) |
| 17 |
assert index (info$, " Start time: 0 seconds" + newline$) |
| 18 |
assert index (info$, " End time: 1 seconds" + newline$) |
| 19 |
assert index (info$, "Number of times: 36") |
| 20 |
assert index (info$, "First time: ") |
| 21 |
assert index (info$, " Number of periods: 36") |
| 22 |
assert index (info$, " Jitter (local): 1.") |
| 23 |
info$ = Sound info |
| 24 |
assert index (info$, "Number of channels: 1 (mono)" + newline$) |
| 25 |
assert index (info$, "Time domain:" + newline$) |
| 26 |
assert index (info$, "Object type: Sound" + newline$) |
| 27 |
assert index (info$, "Object name: sineWithNoise" + newline$) |
| 28 |
assert index (info$, " End time: 1 seconds" + newline$) |
| 29 |
assert index (info$, " Number of samples: 44100" + newline$) |
| 30 |
assert index (info$, " Joule/m²)" + newline$) |
| 31 |
assert index (info$, " Watt/m² = ") |
| 32 |
|
| 33 |
# |
| 34 |
# FunctionEditor properties. |
| 35 |
# |
| 36 |
a = Get start of selection |
| 37 |
assert a = 0.5 |
| 38 |
Move cursor to: 0.567 |
| 39 |
a = Get cursor |
| 40 |
assert a = 0.567 |
| 41 |
|
| 42 |
# |
| 43 |
# PointProcess properties. |
| 44 |
# |
| 45 |
Select: 0.3, 0.7 |
| 46 |
jitter = Get jitter (local) |
| 47 |
assert jitter > 1% ; 'jitter' |
| 48 |
assert jitter < 2% ; 'jitter' |
| 49 |
shimmer = Get shimmer (local) |
| 50 |
assert shimmer > 4% ; 'shimmer' |
| 51 |
assert shimmer < 8% ; 'shimmer' |
| 52 |
|
| 53 |
Close |
| 54 |
endeditor |
| 55 |
Remove |