Quick Sign In:  

Forum: General Discussion

Topic: Get the current loop length

This topic is old and might contain outdated or incorrect information.

billsHome userMember since 2019
I'm trying to use a push knob control to select loop length and then press to enable/disable the loop. Setting the length was easy - I just use loop_half and loop_double depending on which direction the knob turned. Turning off the loop is easy too:

get_active_loop ? loop_exit : loop 32

The issue here is that I have to specify a length. How can I supply the length from the loop control if the loop isn't active?
 

Posted Fri 22 Nov 19 @ 10:58 pm
locoDogPRO InfinityModeratorMember since 2013
I don't follow exactly what you want, you sound like you've got the encoder part figure out.
but for the push buttons just this action will do it
loop
which is really just saying "whatever the loop size, toggle on or off"

There is this action that returns the default/selected loop size no matter if loop is on or off
get_loop

thing to note "get_loop" can offer problems [spurious results] with the more unusual loop sizes; like 3/2 1/5 1/3 3/8
I don't think this applies to your case, I'm just putting it out there as I had a female dog of a time with a plugin I was/am working on [I've got to get back on that]
 

Posted Fri 22 Nov 19 @ 11:15 pm


(Old topics and forums are automatically closed)