Currently using Javascript i have ...
Code: Select all
function incrementLoopStart() {
if (clip_slot_grid[currentlySelectedTrackNumber][scene].get("has_clip") == TRUE &&
clip_grid[currentlySelectedTrackNumber][scene].get("looping") == TRUE) {
var loopStart = clip_grid[currentlySelectedTrackNumber][scene].get("loop_start");
if (loopStart % LOOP_CHANGE_SIZE == 0) {
clip_grid[currentlySelectedTrackNumber][scene].set("loop_start", Math.round(parseInt(loopStart, 10)+LOOP_CHANGE_SIZE));
}
else {
// This will ensure that we move to the closest bar of LOOP_CHANGE_SIZE
clip_grid[currentlySelectedTrackNumber][scene].set("loop_start", Math.round(parseInt(loopStart, 10)+(loopStart % LOOP_CHANGE_SIZE)));
}
}
}
function decrementLoopStart() {
if (clip_slot_grid[currentlySelectedTrackNumber][scene].get("has_clip") == TRUE &&
clip_grid[currentlySelectedTrackNumber][scene].get("looping") == TRUE) {
var loopStart = clip_grid[currentlySelectedTrackNumber][scene].get("loop_start");
if (loopStart >=4) {
if (loopStart % LOOP_CHANGE_SIZE == 0) {
clip_grid[currentlySelectedTrackNumber][scene].set("loop_start", Math.round(parseInt(loopStart, 10)-LOOP_CHANGE_SIZE));
}
else {
clip_grid[currentlySelectedTrackNumber][scene].set("loop_start", Math.round(parseInt(loopStart, 10)-(loopStart % LOOP_CHANGE_SIZE)));
}
}
}
}
clip_grid[currentlySelectedTrackNumber][scene].get("looping") == TRUE
The problem is that the clip must be in looping mode, otherwise the start and end point of the clip (NOT the loop) are affected, this is extremely annoying and not what im after, so can someone please help.
Cheers