Trying to follow a master track (MasterNextLoop)

jeudi 16 juin 2016

Hi folks

I'm trying to achieve this:
Whenever I switch a loop on the Master Track (Track1) it should do the following
- On Track 2, the current loop is copied to the matching loop number on track 2 (same loop number as current master track)
- Track 2 plays the NextLoop
- Track 1 performs a NextLoop

It "almost" works, but I cannot to get it to perform all steps in time. and end up with both tracks out of sync.
See my script below.

Any suggestions would be VERY appreciated!
Buzap

Code:

!name MasterNextLoop
!autoload
!button

############
#### Track 1 as master track
#### Track 2 is matched with master track
#### by Buzap, Jun2016, v2.5
############

## switch to track 1
## don't do this if already track 1
if track != 1
        Track 1
endif

## track 1
NextLoop

## remember current loop on master track
variable lastMasterLoop loopNumber

for 2
        ## match current loop on track 2 with master track
        Variable saveSwitchQuantize switchQuant
        set switchQuant off
        Loop lastMasterLoop
        Play
        set switchQuant saveSwitchQuantize
       
        ## play next loop on track 2
        NextLoop
        wait last
        Play
next

#### end MasterNextLoop



Trying to follow a master track (MasterNextLoop)

0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor