# BOOMBOX-1: patterns replaced in every state: the one shown, at its last bar, stopped, playing, in STEP mode with a step
# held, recording, with notes ringing, with a smaller one, again and again, then undone, saved, powered off
wait 3000
expect bars 4
# the last bar of a 4-bar pattern shown, replaced by a 2-bar one
tap SEQ
wait 60
tap OCT+
wait 40
tap OCT+
wait 40
tap OCT+
wait 40
expect bar 3
press SEQ
wait 60
turn SELECT 3 20
wait 60
key w0 down
wait 100
key w0 up
wait 100
key w0 down
wait 100
key w0 up
wait 300
release SEQ
wait 100
expect bars 2
expect bar 0
key w3 down
wait 60
turn K1 3 20
key w3 up
wait 100
# playing, in its last bars, a step held, recording
tap REC
tap PLAY
wait 3000
key w5 down
wait 60
press SEQ
wait 60
turn SELECT 1 20
wait 60
key w0 down
wait 100
key w0 up
wait 100
key w0 down
wait 100
key w0 up
wait 300
release SEQ
wait 100
key w5 up
wait 100
expect playing 1
expect bars 2
tap REC
# each style over each, while it plays
press SEQ
wait 60
turn SELECT 2 20
wait 40
key w0 down
wait 60
key w0 up
wait 40
key w0 down
wait 60
key w0 up
wait 1500
turn SELECT 1 20
wait 40
key w0 down
wait 60
key w0 up
wait 40
key w0 down
wait 60
key w0 up
wait 1500
turn SELECT 1 20
wait 40
key w0 down
wait 60
key w0 up
wait 40
key w0 down
wait 60
key w0 up
wait 1500
turn SELECT 1 20
wait 40
key w0 down
wait 60
key w0 up
wait 40
key w0 down
wait 60
key w0 up
wait 1500
turn SELECT 1 20
wait 40
key w0 down
wait 60
key w0 up
wait 40
key w0 down
wait 60
key w0 up
wait 1500
turn SELECT 1 20
wait 40
key w0 down
wait 60
key w0 up
wait 40
key w0 down
wait 60
key w0 up
wait 1500
# another, not the one playing; then the one asked for
key w1 down
wait 60
key w1 up
wait 40
key w1 down
wait 60
key w1 up
wait 300
release SEQ
wait 4000
expect playing 1
# notes held through it
tap LFO
wait 40
key w2 down
wait 100
press SEQ
wait 60
turn SELECT 6 20
wait 40
key w1 down
wait 60
key w1 up
wait 40
key w1 down
wait 60
key w1 up
wait 400
release SEQ
key w2 up
wait 600
# copied over, over the pattern shown before
press SEQ
wait 60
press GLO
wait 40
key w2 down
wait 60
key w2 up
wait 40
key w2 down
wait 60
key w2 up
wait 200
release GLO
key w2 down
wait 60
key w2 up
wait 100
release SEQ
wait 5000
tap PLAY
wait 2000
expect playing 0
# undo, undo, the whole pattern cleared, undo
press GLO
wait 40
key w7 down
wait 60
key w7 up
wait 60
key w7 down
wait 60
key w7 up
wait 60
key w14 down
wait 60
key w14 up
wait 60
key w14 down
wait 60
key w14 up
wait 60
key w7 down
wait 60
key w7 up
wait 60
release GLO
wait 60
# a replacement and SAVE at once, SAVE then a replacement
press SEQ
wait 60
turn SELECT 2 20
wait 40
key w0 down
wait 60
key w0 up
wait 40
key w0 down
wait 30
key w0 up
tap SAVE
wait 30
key w1 down
wait 40
key w1 up
wait 40
key w1 down
wait 40
key w1 up
wait 3000
release SEQ
tap SAVE
wait 3000
expect dirty 0
power
wait 3000
tap PLAY
wait 3000
expect playing 1
