moving loop like scrub

3.30K viewsGeneral
0

hi, is there a way to move the loop like for the scrub instead of setting the loop start to a point in the timeline?

admin Changed status to publish
Attached Files:
0

Hi Ben,
Glad it is working, kinda.. 😉

I checked the code and it seems fine. The ‘jumping’ in quantization has to do with ordering the Action Blocks.
When you put as first the blocks with 1/4 in the condition, then 1/8, then 1/16 and as last 1/32, you will be able to move from 1/32 to 1/4 easily, but the other way will always catch 1/32.

So I have written the same script in one Action, which should work fine.

Cheers 😉

admin Changed status to publish
0

Hello benwadub,

Yes, that is true, the channels start counting from zero 😉

I checked the code for ‘loop_length’ and came to the conclusion that although, when displayed in CSS log, the numbers were correct, it was not reflected in Ableton. So you just have to put the calculation back in the ‘loop_length’, like this: “self.song().loop_length = self.song().loop_length + 4.0”

I also simplified the ‘clip grid quantization’ script I made for you last time. So now you only have to adjust (‘Endless encoder 7’ and ‘Endless encoder 7 latest velocity value’) to the encoder you will use.

I tested both scripts with a relative knob. You can check them out.

A la prochaine 😉

admin Changed status to publish
0

About the ‘loop_length’ script, I just now saw that is exactly the code that is on John’s attachment: “increase decrease loop length.png” (and that is also what he was describing in his last post)
Doh.. I’d better go to sleep 😉

admin Changed status to publish
Attached Files:
0

it needs to be + 4.0 or – 4.0

admin Changed status to publish
Attached Files:
0

You would need 2 Action blocks, 1 for when you turn the encoder left & another for when turned right.
In each action block, add a condition to check the velocity value of the encoder.
First Action block should check that the velocity is 1 (so turning left) and in action block 2, check for velocity 127.

In the action section for each…
select ‘live object model > song > set loop length
In the ‘Beats’ option, you want to add/minus a value to the current loop length.
This can be done like so (make sure to select ‘custom code’ for the beats option so you can enter code) :
self.song().loop_length + 4.0
self.song().loop_length – 4.0
The fist line of code above gets the current loop length and adds 1 bar to it (4.0) and the second does the same but minuses 1 bar,

admin Changed status to publish