summaryrefslogtreecommitdiff
path: root/examples/spheres/test/play.script
blob: 8dbe978846661dc58e4bb354927bdca040cd88eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Plays each preset and synthesis mode headless; screenshots land in
# .zig-cache/spheres/ for review.
frames 120
# The GPU's blocks reach the speakers' stream.
expect-audio 1
expect running true
expect preset figure_eight
screenshot .zig-cache/spheres/figure-eight.png
expect mode additive
key s
key s
key s
expect mode fm
frames 30
key p
key p
expect preset pythagorean
frames 240
screenshot .zig-cache/spheres/pythagorean.png
# Time backwards, then paused.
key left
expect backward true
frames 30
key space
expect running false
frames 10
key space
key right
expect backward false
key tab
expect focus 1
key p
frames 200
screenshot .zig-cache/spheres/lagrange.png
# The buttons do what the keys do: pause, a random system, the figure eight.
click 727 18
expect running false
click 1087 18
expect preset random
expect running true
frames 60
screenshot .zig-cache/spheres/random.png
click 1015 18
expect preset figure_eight
# As an instrument: the look-ahead finds chords, a grid button sends the sky
# to the nearest time its chord plays, and the sky holds still there.
key c
expect instrument true
frames 200
# 7 is the number row's C column: C major (bits 0, 4, 7).
key 7
expect chord.value 145
frames 90
screenshot .zig-cache/spheres/chords.png
# U is QWERTY's C column, a row down: C minor (bits 0, 3, 7).
key u
expect chord.value 137
frames 60
key escape
expect instrument false