!name Magic Button
# switch to loop 2 on track 1
for 1
Loop2
next
# find the subCyles value in use by the master track
# this is what used to be called 8thsPerCycle
Variable masterSubCycles
for *
if trackNumber == trackSyncMaster
set masterSubCycles subCycles
endif
next
# Mute tracks 7 and 8 using the subcycles of the master track
for 7,8
Variable saveSubCycles subCycles
set subCycles masterSubCycles
MuteOn
set subCycles saveSubCycles
next
# unmute track 6
for 6
MuteOff
next
# leave track 3 selected