diff options
Diffstat (limited to 'examples/micscope/test/record.script')
| -rw-r--r-- | examples/micscope/test/record.script | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/micscope/test/record.script b/examples/micscope/test/record.script new file mode 100644 index 0000000..2750a18 --- /dev/null +++ b/examples/micscope/test/record.script @@ -0,0 +1,23 @@ +# Records (from whatever microphone the host gives a headless run) into a +# new take, stops, and plays it back. +expect takes 0 +key r +expect transport.value recording +expect takes 1 +frames 60 +screenshot .zig-cache/micscope/recording.png +key r +expect transport.value stopped +key space +expect transport.value forward +frames 10 +# Each recording is another take; opening a file while recording ends it. +key r +expect takes 2 +expect selected 1 +console open test/sweep.wav +expect transport.value stopped +expect takes 3 +frames 2 +expect takes 3 +screenshot .zig-cache/micscope/strip.png |
