Entra:     


Forum: Old versions

Topic: LOOP SIZE or LOOP LENGTH............ - Page: 1

Questa parte dell'argomento è obsoleta e potrebbe contenere informazioni obsolete o errate

param_greater 50% ? deck default loop_half : deck default loop_double

This is the code I dont want..............can it not be done??

I want to be able to scroll through the track until I find the right spot.............not have it pick 2,4,8 etc. etc, On the defualt skin its called "SIZE" right next to the one that says "SHIFT"

I want to use an ENDLESS ENCODER to adjust some of my drum loops. With the knob on the skin you can see the loop getting bigger or smaller in the waveform and I'm not talking about going from 2,4,8 etc etc.

Anyone Please
Huey
 

Inviato Tue 15 Mar 11 @ 5:20 pm
loop_length ???
 

When I Hoover over the knob with my mouse that's what comes up. Its on the default skin, can you just take a look. Set a loop then turn that knob and youll see its doesn't move like 2,4,8 etc. etc.


Please help
Huey
 

Heres a video of what I'm talking about,



Can this be done???

Huey
 

I've been trying different scripts for the last 2 days and I'm starting to think that this is not possible because VDJ only seems to work with beat counts or %'s.

I can't be the only one uses this feature.....
Anyone??
Huey
 

Huey,

It is the loop_length action as labelled on the skin.

However when working with controllers it depends on how the knob/encoder is designed in MIDI. If it is not sending true step values from 0x01 to 0x7f then loop_length has nothing to work with - kinda.

I have done this with jogs on some controllers - use loop_length

Are you trying to map an encoder on the MixDeck? If so, which encoder?
 

Yes I would like to map the one the says parameters. Its right below the USB port. I've tried just typing in loop_length and nothing happens, does that mean it wont work?

Thanks for the time
Huey

EDIT
I just tried it with the touch wheel and it works perfect but when done with the parameter knob it basiclly will go to every beat mark (CBG grid, I think its called) and I bet it wont work cause this knob clicks everytime you turn it.

Anything else I can try?
 

@Chris, ok after reading around some more and seeing what you posted not all encoders are created equal then. Some send absolute position (touch wheels) and some just send a general position (the parameter knob). Would that be right?

Thanks for the time
Huey
 

Am I right about the different types of endorses??

Huey
 

?? Oh Chris where are you?? Lol!

Huey
 

Whats up brotha, your correct about the encoders. Some give absolute position and some are like jogs (true endless). Do you know what your encoder is putting out? Post what you get when turning CW and post what the values are going CCW using the miditrace.
 

Thanks big homie! I do that and post the findings here in a bit.

Huey
 

OK I used Midi Trace and heres what I got when I turned the Parameter knob on a numark mixdeck

CLOCKWISE,
B0 20 01 00
B0 20 01 00
B0 20 01 00
B0 20 01 00
B0 20 01 00
B0 20 01 00

And COUNTER CLOCKWISE,
B0 20 7F 00
B0 20 7F 00
B0 20 7F 00
B0 20 7F 00
B0 20 7F 00
B0 20 7F 00
B0 20 7F 00
B0 20 7F 00

and heres what I got when I used the jog wheel on the numark mixdeck

CLOCKWISE,
B0 22 01 00
B0 22 01 00
B0 22 01 00
B0 22 01 00
B0 22 01 00

And COUNTER CLOCKWISE
B0 22 7F 00
B0 22 7F 00
B0 22 7F 00
B0 22 7F 00
B0 22 7F 00

The numbers are the same, are they supposed to be different??

Thanks for the info and time
Huey
 

the cc will remain the same, but the 01 means forwards and 7F means backwards. You have an endless encoder so you should just need to script:

"param_greater 50% ? default deck loop_length -1 : default deck loop_length +1"

if I were you I would set it up with your shift button to say:

var_equal loop_shift ? param_greater 50% ? default deck loop_length -1 : default deck loop_length +1 : param_greater 50% ? default deck loop_double : default deck loop_half

I just did! LOL this way you can use the same knob for doubling and halving the loop and if you press your shift button you can adjust the loop end point


If you haven't already got a shift button set up you can do one just for this action, by picking a button and using this code

loop ? set var loop_shift while_pressed : do normal action (whatever it is set up to do)

it will basically make it so the shift button will only work if there is a loop running and you are holding the button down at the time. note that you can change 'loop_shift' to any word you like.

hope this helps
 

Good lookin out bro!! I'll give a go when I get home.

Thanks for the time
Huey
 

Naw bro thats the same as the 1 I dont want. Heres what I did. I mapped a button with set '$shift' 1 while_pressed
and the jog wheel with var '$shift' ? loop_length : touchwheel

Not what I wanted to do but it is what it is.............

Thanks for the help fellas
Huey
 

I believe its because your using 1. Try using 0.01 instead. Im not in front of my rig but give it a shot. I know I use decimals in a lot of my mappings.
 

Dang it worked!! But it only goes in 1 direction?? If I change it to param_greater 50% ? loop_length -0.05 : loop_length +0.05 then it only goes up, but if I switch it to param_greater 50% ? loop_length +0.05 : loop_length -0.05 no matter which way I turn the knob..........

Thanks for the time got anything else I can try
Huey
 

Try using param_greater 0% instead of param_greater 50%. This is because your encoder reference is 00 and not 50% per'se. Hope it helps.
 

Thanks bro, will give it a try when I get home.

Thanks for the help and info
Huey
 

83%