Loop Player In Gig Performer

Her you go

Trigger_Clip.gig (50.0 KB)

Load the gig and load your audio in the first 2 lanes in the Audio File player

When you press the global play, the 1st lane in den Audio File Player is selected and started.
Then you press the BIG blue button and with beginning of the next bar the 2nd lane is played and the
1st lane is stopped.

And this is the rackspace script used

//$<AutoDeclare>
// DO NOT EDIT THIS SECTION MANUALLY
Var
   CLIP1 : Widget
   CLIP2 : Widget
   SCLIP2 : Widget
   v_beat : Integer
   v_start_clip2 : boolean
//$</AutoDeclare>

initialization
 v_start_clip2 = false
end 

// Called on attempt to change playhead status - (Rackspace and GigScript only)
On SystemEvent(newValue : double) Matching PlayheadStateChanged
 if newValue == 1.0 then
  CLIP1.SetWidgetValue(1.0)
  CLIP2.SetWidgetValue(0.0)
 end  
End

// Called when beat changes
// Only beat number is valid for now
On BeatChanged(bar : integer, beat : integer)
 if beat == 1 and v_start_clip2 == true then
  CLIP2.SetWidgetValue(1.0)
  v_start_clip2 = false
 end 
End

// Called when a single widget value has changed
On WidgetValueChanged(newValue : double) from SCLIP2
 v_start_clip2 = true
End
3 Likes

Thanks for the information.