# BOOMBOX-1: BEAT SNAKE, the hidden game: its way in, the moves, eating, the pause, the end, the beat kept or not
wait 3000
expect snake 0
# a tap of SHIFT + SEQ is still LENGTH (bar 1 shown: 1 bar), and no game
expect bars 4
press GLO
wait 40
tap SEQ
wait 60
release GLO
expect bars 1
expect snake 0
# 2 seconds are not enough
press GLO
wait 40
press SEQ
wait 2000
release SEQ
wait 60
release GLO
wait 60
expect snake 0
expect bars 1
# playing and recording: 3 seconds open it, and it stops
tap REC
tap PLAY
wait 400
expect playing 1
press GLO
wait 40
press SEQ
wait 3200
expect snake 1
release SEQ
release GLO
wait 100
expect snake 1
expect rec 0
# (stop is a tape stop: the game starts over it)
wait 1200
expect playing 0
shot sim_80_snake.png
# the project is as it was: 1 bar, its notes
expect bars 1
expect events 24
# K1 turns, white keys point, straight back is refused
wait 300
turn K1 1 30
wait 400
expect snakedir 1
key w0 down
wait 40
key w0 up
wait 400
expect snakedir 2
key w2 down
wait 40
key w2 up
wait 300
expect snakedir 2
tap OCT+
wait 300
expect snakedir 3
# PLAY pauses: it does not move
tap PLAY
wait 60
expect snake 2
food 0 0
shot sim_81_snake_pause.png
wait 2000
expect snake 2
tap PLAY
wait 60
expect snake 1
# the pads and the sequencer are out of reach: PLAY, SAVE, the tracks do nothing to them
tap FX
tap SAVE
wait 60
expect playing 0
expect snake 1
tap HOME
wait 100
expect snake 0
shot sim_82_after.png
tap HOME
wait 60
expect screen 1
tap HOME
wait 60
expect screen 0
# a whole game: the head starts at (6, 7) going right; a note ahead, one more each time
press GLO
wait 40
press SEQ
wait 3100
food 9 7
release SEQ
release GLO
expect snake 1
wait 700
expect snakescore 1
expect snakenotes 1
food 13 7
wait 900
expect snakescore 2
expect snakenotes 2
shot sim_83_snake_eat.png
# the loop plays again and again, and the way round the edge
wait 4000
expect snake 1
expect peak_db_min -40
# longer, then onto itself: the end
food 2 7
wait 2700
food 9 7
wait 2700
food 3 7
wait 2700
food 10 7
wait 2700
food 4 7
wait 2700
food 11 7
wait 2700
food 5 7
wait 2700
food 12 7
wait 2700
food 6 7
wait 2700
food 13 7
wait 2700
expect snakescore >7
tap OCT+
wait 120
tap OCT+
wait 120
tap OCT+
wait 120
tap OCT+
wait 900
expect snake 3
shot sim_84_snake_over.png
# nothing kept yet: the empty pattern is still empty; SAVE keeps the beat, and the current pattern is as before
expect patevents.4 0
tap SAVE
wait 200
expect snake 0
expect patevents.4 >1
expect events 24
shot sim_85_snake_kept.png
# unsaved until SAVE; then it stays, and plays
wait 300
expect dirty 1
tap SAVE
wait 2500
expect dirty 0
power
wait 3000
expect patevents.4 >1
press SEQ
wait 60
key w3 down
wait 60
key w3 up
wait 60
release SEQ
wait 100
expect pattern 4
expect bars 1
tap PLAY
wait 2000
expect playing 1
expect voices >0
tap PLAY
wait 200
# no game from STEP mode or the other screens
tap HOME
wait 60
press GLO
wait 40
press SEQ
wait 3300
expect snake 0
release SEQ
release GLO
wait 60
