Accesso rapido:  

Forum: General Discussion

Topic: loop with a knob

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

Hi there,
I would like to assign a loop action to a knob. I found the following script (and others similar):

loop ? param_smaller 12% ? loop 0,125 ? nothing : loop 0,125 : param_smaller 24% ? loop 0,25 ? nothing : loop 0,25 : param_smaller 36% ? loop 0,5 ? nothing : loop 0,5 : param_smaller 48% ? loop 1 ? nothing : loop 1 : param_smaller 60% ? loop 2 ? nothing : loop 2 : param_smaller 72% ? loop 4 ? nothing : loop 4 : param_smaller 84% ? loop 8 ? nothing : loop 8 : loop 16 ? nothing : loop 16 : nothing

I using a numark party mix, which does not have a dedicated knob for that. But it has a switch for different modes (cue, effect, loop) so I would like to use one of the existing knobs (for example cue gain) ONLY when I am in loop mode on the controller. Any hints on how to do that?
Thank you so much!
 

Inviato Thu 09 Apr 20 @ 10:45 am
NicotuxHome userMember since 2014
some examples : map a KNOB to
- Only when a loop is on:
replace last "nothing" with the original knob action

or VDJ side, the "loop mode" button only make PM Loop pad page visible :
enclose within a test whenever the page is active:, will work even while no loop is active

pad_page 'PM Loop' ? <your script> : <KNOB ORIGINAL ACTION>

NOTE : your script won't work :
- use dot not comma for float values
- using "get_loop" or "loop" as a query gives text result '1/32' '1/16' '1/8' '1/4' '1/2' not numeric values that can't cast to numeric
get_loop does not return a valid parameter text output cant cast, cast param give boolean result
Maybe its relatively new but it's a BUG
 

Inviato Thu 09 Apr 20 @ 2:59 pm
NicotuxHome userMember since 2014
there is a workaround finally:
`get_loop & param_cast text & param_contains '/2' ? ... : ...` instead of `loop 0.5 ? ... : ...`
`get_loop & param_cast text & param_contains '/4' ' ? ... : ...` instead of `loop 0.25 ? ... : ...`
`get_loop & param_cast text & param_contains '/8' ' ? ... : ...` instead of `loop 0.125 ? ... : ...`
....
 

Inviato Thu 09 Apr 20 @ 3:09 pm
@Nicotux: Thanks a lot for the help! Being a beginner, it took me a while to understand the background, and I tried. But I think I got something wrong:

first I preliminary tried the following:

pad_page 'PM Loop' ? master_volume : headphone_volume
i.e. it changes the master volume via the cue gain knob ONLY when I am in loop mode (what a great success, I know!)

but then I tried to implement the (first step of the) loop thing

pad_page 'PM Loop' ? loop ? param_smaller 12% ? get_loop & param_cast text & param_contains '/8' ' ? nothing : headphone_volume

it has no effect at all! Is there anything wrong in the syntax?

Thanks again!
 

Inviato Fri 10 Apr 20 @ 5:22 pm
Ok then. The following works:

pad_page 'PM Loop' ? loop ? param_smaller 12% ? loop 0.125 ? nothing : loop 0.125 : param_smaller 24% ? loop 0.25 ? nothing : loop 0.25 : param_smaller 36% ? loop 0.5 ? nothing : loop 0.5 : param_smaller 48% ? loop 1 ? nothing : loop 1 : param_smaller 60% ? loop 2 ? nothing : loop 2 : param_smaller 72% ? loop 4 ? nothing : loop 4 : param_smaller 84% ? loop 8 ? nothing : loop 8 : loop 16 ? nothing : loop 16 : nothing : headphone_volume

not sure it really does what I want. As it only enters in the loop on pressing one of the 4 pads, while I would like it to enter as soon as I move the knob. Most important I would like some other key (for example play) to get me out of the loop...
 

Inviato Fri 10 Apr 20 @ 5:49 pm


(Vecchi argomenti e forum sono automaticamente chiusi)