Set loop start & end on selected wrapped clip

0

Hi !

I wanted to create a mapping for my LaunchPad mk1, and i’m looking for created a loop in “Traktor” style. I mean put the loop start at the nearest bar after the playing position and loop end at 32 bar after the playing position.

I’ve succed to on/off the loop only on clip[0] (the first top left), and i need help to set the loop start & end position on selected clip.

Here is what i found to set the start : self.song().tracks[0].clip_slots[0].clip.loop_start = self.song().tracks[0].clip_slots[0].clip.playing_position

But it isn’t quantize with beats.

EDIT : i found something here : https://community.remotify.io/questions/question/highlight-clip-loopcontrol%e3%80%80relative/

It say to use custom script to set the start position, that seems to work but i need to “round” the result to match the grid :

self.song().view.highlighted_clip_slot.clip.playing_position + 1.0

Many thanks for your help !

JohnC Answered question
0

You can use the ’round’ function, to round a value to 1 decimal place.

val = self.song().view.highlighted_clip_slot.clip.playing_position + 1.0
round(val, 1)

JohnC Answered question
You are viewing 1 out of 1 answers, click here to view all answers.