georgeludwig
05-22-2010, 04:05 AM
I've got a script that works pretty well, but not perfectly, for going to the next or previous loop. The idea is, if the next or previous loop is empty, we should enter record mode, and if it's not empty, we enter overdub mode.
The script pretty much works except in the case of going to an empty loop. When going to an empty loop, Mobius "helpfully" copies the current loop in to it. I don't want any helpful copies...I just want to go in to record mode.
I've messed around with a bunch of parameters, but no luck. Any help is appreciated!
Here is the script:
!name grgNextLoop
!autoload
# this variable determines if we are going to the next or previous loop
Variable isNext TRUE
# get the id of the current track
Variable grgThisTrack = track
# cycle through the tracks, telling them to go to the next loop
Track 1
if isNext == TRUE
NextLoop
else
PrevLoop
endif
Track 2
if isNext == TRUE
NextLoop
else
PrevLoop
endif
Track 3
if isNext == TRUE
NextLoop
else
PrevLoop
endif
Track 4
if isNext == TRUE
NextLoop
else
PrevLoop
endif
# reset to the original track
Track grgThisTrack
# put ourselves in correct record mode
# note that this doesn't seem to work because by the time it's executed,
# mobius has already copied the previous loop here, so it always goes to
# overdub
if loopFrames == 0
Message RECORD
Record
else
Message OVERDUB
Overdub
else
end
The script pretty much works except in the case of going to an empty loop. When going to an empty loop, Mobius "helpfully" copies the current loop in to it. I don't want any helpful copies...I just want to go in to record mode.
I've messed around with a bunch of parameters, but no luck. Any help is appreciated!
Here is the script:
!name grgNextLoop
!autoload
# this variable determines if we are going to the next or previous loop
Variable isNext TRUE
# get the id of the current track
Variable grgThisTrack = track
# cycle through the tracks, telling them to go to the next loop
Track 1
if isNext == TRUE
NextLoop
else
PrevLoop
endif
Track 2
if isNext == TRUE
NextLoop
else
PrevLoop
endif
Track 3
if isNext == TRUE
NextLoop
else
PrevLoop
endif
Track 4
if isNext == TRUE
NextLoop
else
PrevLoop
endif
# reset to the original track
Track grgThisTrack
# put ourselves in correct record mode
# note that this doesn't seem to work because by the time it's executed,
# mobius has already copied the previous loop here, so it always goes to
# overdub
if loopFrames == 0
Message RECORD
Record
else
Message OVERDUB
Overdub
else
end