Live Clips: Loop Start - Start Marker linking

carloskleiber's icon

Hello,
if in a clip I manually drag the Loop Start handle to the left or to the right, in case the Start Marker was at the same location it will move together with the Loop Start handle. Unfortunately it won't work if I make the position change from the API. Besides, Start Marker position cannot be changed from the API.
Is there maybe a solution that I have overlooked?

broc's icon

The property 'loop_start' sets loop start of looped clips and clip start of unlooped clips.
So you can disable 'looping' temporarily to change the clip start of a looped clip.

carloskleiber's icon

Nice! It works, thank you!

razzkazz's icon

I have found that if I automate the loop start in the API with a counter, when the start point moves the play position is effected. Can this be avoided?

sonichel's icon

friends what is the patch for this???

razzkazz's icon

No patch in particular, we are just discussing manipulating the api to alter the loop brace.

Jay Walker's icon


This works for me using JS!

var clipZoneButtonMod = 0;


function setClipZone(clipZoneButton) {
    var liveSet = new LiveAPI(callback, "live_set tracks " + trackNumber + " clip_slots " + currentClip + " clip");
    if (clipZoneButton < clipZoneButtonMod) {
        clipZoneButtonMod = clipZoneButton;
        liveSet.set("loop_start", (clipZoneButtonMod * 16));
        liveSet.set("loop_end", (clipZoneButtonMod * 16 + 16));
        liveSet.set("looping", 0);
        liveSet.set("loop_start", (clipZoneButtonMod * 16));
        liveSet.set("loop_end", (clipZoneButtonMod * 16 + 16));
        liveSet.set("looping", 1);
    } else {
        clipZoneButtonMod = clipZoneButton;
        liveSet.set("loop_end", (clipZoneButtonMod * 16 + 16));
        liveSet.set("loop_start", (clipZoneButtonMod * 16));
        liveSet.set("looping", 0);
        liveSet.set("loop_end", (clipZoneButtonMod * 16 + 16));
        liveSet.set("loop_start", (clipZoneButtonMod * 16));
        liveSet.set("looping", 1);
    }

}