Loop Pedal script - is sound present (or just timing)

dimanche 9 août 2015

I've been using this code for toggling between Rec/Play/Overdub. With Track copy timing, I have to Long-Press the adjacent track to get to Record. If I write the following, I could be overwriting the loop at a later time when full:

if mode == play
record

Is there a way to know if a loop has Sound in it? I'd rather not use up the double click or long press with this condition.



#code#

!name pedal_2
############
#### Loop pedal will act as Rec/Play/Overdub on Track n
#### Double-click will Multiply
#### Long-press will Reset
#### KL modified from Buzap, 03Nov2009, 1.38
############

## adjust double-click time in milliseconds here
!multiclick 350

## adjust long-press time in milliseconds here
!sustain 1000

## switch to track 2
## Message Play/Mute/Play longpress -> Reset DoubleClick -> Multiply
if track != 2
Track 2
end
endif

if mode == reset
record
else
if mode == record
Play
else
if mode == play
mute
else
if mode == Mute
Play
else
if mode != reset
Play
endif
endif
endif
endif
endif
end
##

## double click will Multiply
Label click
Multiply
end

## long press will Reset
Label sustain
Reset
end

#### END pedal_2


0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor