I want to know if I can query the amount of the default loop (not looping) and then cast that value onto another command, is this possible?
Here is an example of how it could be used:
deck 1 get loop ? deck 1 loop 4 ? deck 1 goto -4 & deck 1 loop : deck 1 loop 8 ? deck 1 goto -8 & deck 1 loop 8 : deck 1 loop 16 ? deck 1 goto -16 & deck 1 loop 16
basically if the default loop size is 4 I want the goto to be -4, the problem with the above code without the get thing at the start, is it will only work if the deck is actually looping, but the idea is to be able to control a loop of what you just heard by changing the value with a knob prior to activating a loop.
Cheers
Andrew
Here is an example of how it could be used:
deck 1 get loop ? deck 1 loop 4 ? deck 1 goto -4 & deck 1 loop : deck 1 loop 8 ? deck 1 goto -8 & deck 1 loop 8 : deck 1 loop 16 ? deck 1 goto -16 & deck 1 loop 16
basically if the default loop size is 4 I want the goto to be -4, the problem with the above code without the get thing at the start, is it will only work if the deck is actually looping, but the idea is to be able to control a loop of what you just heard by changing the value with a knob prior to activating a loop.
Cheers
Andrew
发表时间 Wed 11 May 11 @ 1:49 am
Try using loop_select, e.g:
deck 1 loop_select 1 ? deck 1 goto -1 & deck 1 loop : deck 1 loop_select 2 ? deck 1 goto -2 & deck 1 loop : deck 1 loop_select 4 ? deck 1 goto -4 & deck 1 loop : deck 1 loop_select 8 ? deck 1 goto -8 & deck 1 loop : deck 1 loop_select 16 ? deck 1 goto -16 & deck 1 loop : deck 1 goto -4 & deck 1 loop 4
deck 1 loop_select 1 ? deck 1 goto -1 & deck 1 loop : deck 1 loop_select 2 ? deck 1 goto -2 & deck 1 loop : deck 1 loop_select 4 ? deck 1 goto -4 & deck 1 loop : deck 1 loop_select 8 ? deck 1 goto -8 & deck 1 loop : deck 1 loop_select 16 ? deck 1 goto -16 & deck 1 loop : deck 1 goto -4 & deck 1 loop 4
发表时间 Wed 11 May 11 @ 8:53 am
You guys rule! cheers, but how does get work? Is it just to send information to text zones in skins or text to a controller?
发表时间 Wed 11 May 11 @ 9:24 am
No, it simply queries whether deck 1 loop_select 1 is true (Loop length of 1 beat is selected on deck 1) and performs the appropriate action, otherwise queries whether deck 1 loop_select 2 is true and performs the appropriate action for that, and so on.
The difference is loop_select allows the loop size to be selected (Or queried) regardless of whether a loop is active or not.
loop triggers a loop of a pre-set length (Or previous selected) or can be used to query whether a loop is active or not (Or a loop of a specific length is active or not.)
NOTE: get loop is for returning the loop length for display on either a skin or controller with LCD display and cannot be used in a query.
The difference is loop_select allows the loop size to be selected (Or queried) regardless of whether a loop is active or not.
loop triggers a loop of a pre-set length (Or previous selected) or can be used to query whether a loop is active or not (Or a loop of a specific length is active or not.)
NOTE: get loop is for returning the loop length for display on either a skin or controller with LCD display and cannot be used in a query.
发表时间 Wed 11 May 11 @ 9:40 am