99 lines
1.0 KiB
Plaintext
99 lines
1.0 KiB
Plaintext
!focuslock
|
|
|
|
Track2
|
|
|
|
if mode = reset
|
|
if track = 1
|
|
Record
|
|
endif
|
|
if track = 2
|
|
Record
|
|
message Waiting To Record
|
|
wait loop
|
|
Overdub
|
|
message New Mode Record
|
|
endif
|
|
if track = 3
|
|
Record
|
|
message Waiting To Record
|
|
wait loop
|
|
Overdub
|
|
message New Mode Record
|
|
endif
|
|
|
|
|
|
|
|
|
|
else if mode = record
|
|
Overdub
|
|
message New Mode Overdub
|
|
|
|
|
|
else if mode = overdub
|
|
Play
|
|
message New Mode Play
|
|
|
|
|
|
else if mode = play
|
|
Overdub
|
|
message New Mode Overdub
|
|
|
|
|
|
|
|
else if mode = mute
|
|
|
|
Variable track1Playing
|
|
Variable track2Playing
|
|
Variable track3Playing
|
|
|
|
|
|
|
|
|
|
for 1
|
|
if mode == play
|
|
set track1Playing true
|
|
endif
|
|
next
|
|
|
|
for 2
|
|
if mode == play
|
|
set track2Playing true
|
|
endif
|
|
next
|
|
|
|
for 3
|
|
if mode == play
|
|
set track3Playing true
|
|
endif
|
|
|
|
|
|
next
|
|
|
|
|
|
# now we've gathered what we need to decide
|
|
|
|
if track1Playing || track2Playing || track3Playing
|
|
message track is playing
|
|
Play
|
|
else
|
|
message start point
|
|
Play
|
|
Move LoopFrames 0
|
|
|
|
Track1
|
|
Move LoopFrames 0
|
|
Track3
|
|
Move LoopFrames 0
|
|
Track2
|
|
|
|
endif
|
|
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
|