# BOOMBOX-1 prototype 6 (CHOPS): the track, the CHOP screen, the slices kept, the second factory pattern
wait 700
expect scan 1
expect heard 1
# ENV: the CHOPS track; slice 3 plays, then slice 8 cuts it
tap ENV
expect track 2
key w2 down 100
wait 60
expect chops 1
expect slice 3
key w7 down 100
wait 60
expect chops 1
key w7 up
key w2 up
wait 600
expect chops 0
# EDIT: the CHOP screen
tap EDIT
wait 1500
shot sim_20_chop.png
expect slice 8
expect start 62146
expect end 71024
# K2 START later, K3 END later, K4 pitch, K1 the next slice
turn K2 4 30
turn K3 3 30
turn K4 -5 30
wait 100
expect start 63254
expect end 71855
expect slpitch -5
expect heard 1
# SHIFT: fine (16 frames)
press GLO
wait 40
turn K2 -2 30
wait 60
release GLO
expect start 63222
# REVERSE and GATE (black keys 1 and 2: keys 1 and 3)
key 1 down
wait 60
key 1 up
wait 60
key 3 down
wait 60
key 3 up
wait 60
expect slflags 3
expect heard 1
# a GATE slice stops when let go
key w7 down 100
wait 80
expect chops 1
key w7 up
wait 120
expect chops 0
wait 1500
shot sim_21_chop_edited.png
turn K1 1 30
wait 60
expect slice 9
# CUT off (black key 3: key 5): two slices together
key 5 down
wait 60
key 5 up
wait 60
expect cut 0
key w0 down 100
wait 30
key w1 down 100
wait 60
expect chops 2
key w0 up
key w1 up
wait 800
key 5 down
wait 60
key 5 up
wait 60
expect cut 1
# the other loop: its own slices; AUTO (black key 5: key 10), UNDO (key 13)
turn ALGO 1 30
wait 1000
expect loop 1
expect scan 1
expect heard 1
turn K1 1 30
key w7 down 100
wait 60
key w7 up
wait 60
expect start 59444
key 10 down
wait 60
key 10 up
wait 100
expect heard 1
wait 1500
shot sim_22_chop_auto.png
key 13 down
wait 60
key 13 up
wait 60
expect start 59444
expect heard 1
# back to the first loop: slice 8 as edited
turn ALGO -1 30
wait 600
expect loop 0
expect slflags 3
expect start 63222
expect heard 1
# STEP mode on CHOPS: PRESET picks the slice, steps, a lock
tap SEQ
expect mode 1
turn PRESET 1 30
wait 60
expect slice 9
key w3 down
wait 40
key w3 up
wait 60
key w3 down
wait 40
turn K1 -3 30
wait 60
key w3 up
wait 100
expect steps 8
expect locks 8
shot sim_23_chop_steps.png
tap SEQ
expect mode 0
# recorded live: a gated slice (8) writes its note off too
expect events 101
tap REC
tap PLAY
wait 500
key w7 down 100
wait 300
key w7 up
wait 300
tap PLAY
wait 2500
expect events 103
press GLO
key w7 down
wait 40
key w7 up
release GLO
wait 100
expect events 101
tap REC
# note repeat on a slice
press ARP
key w4 down 100
wait 400
expect chops >0
key w4 up
release ARP
wait 800
# the second factory pattern plays CHOPS over the beat
press SEQ
wait 40
key w1 down
wait 60
key w1 up
wait 40
release SEQ
wait 60
expect pattern 2
expect bars 2
peakreset
wav sim_flip.wav
tap PLAY
wait 2000
expect chops >0
expect voices >0
shot sim_24_flip.png
wait 4500
tap PLAY
wait 2500
wavstop
expect playing 0
expect chops 0
expect clipped 0
# saved, then a power-off: the loop, the slices and the track are back
tap SAVE
wait 600
expect dirty 0
power
wait 900
expect track 2
expect loop 0
expect heard 1
key w7 down 100
wait 60
key w7 up
wait 60
expect slflags 3
expect start 63222
expect slpitch -5
