PDA

View Full Version : How do I prevent Mobius from inserting copy of current loop?


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

Per Boysen
05-22-2010, 10:50 AM
Hi George,

Check your settings at "Mobius/Configuration/Prestes/Swtich". If Loop Copy is set to Sound you get that "helpful copying" to the new empty slot you go to by Next Loop.

In general I think using Record for anything except the very first loop you create is kind of adventurous, so here is an alternative idea: Instead scripting Record (for a new empty) you could be to set "Loop Copy = Timing" and then also "Time Copy Mode = Multiply". I guess that would give you close to what you are hoping form scripting Record for the new slot.

Situations where Record might be good, during a session, is if you want to change the global tempo (applying Record as the master sync track is selected) or if you want to cut loop length outside the rounding (ending a Multiply with Record).