HOW COULD I REPLICATE "SHIFT" BUTTONS FUNCTION
Hi, i'm trying to replicate a function of the shift buttons by creating commands with the combination of two buttons by holding the first button down and hitting the other buttons. Does anyone have done this before? sorry this might sounds crazy but i just want to know if it is possible or not? I have tried some but the its not working, maybe somebody could have better idea on how to do this correctly.
This is what i have done: (trying to replicate the "ADJUST_BUTTON" to works like "SHIFT" buttons)
<map value="ADJUST_BUTTON" action="set '$adjust' while_pressed" />
<map value="CBG_EDIT_BUTTON" action="var '$adjust' ? param_greater 0% ? adjust_cbg +0.01 : adjust_cbg +0.01 : goto +24 240ms" />
This only works for the second queries without the adjust button being pressed and when i pressed both of them it still works as "track search" the CDG editing doesn't work". Thank you so much.
Hi, i'm trying to replicate a function of the shift buttons by creating commands with the combination of two buttons by holding the first button down and hitting the other buttons. Does anyone have done this before? sorry this might sounds crazy but i just want to know if it is possible or not? I have tried some but the its not working, maybe somebody could have better idea on how to do this correctly.
This is what i have done: (trying to replicate the "ADJUST_BUTTON" to works like "SHIFT" buttons)
<map value="ADJUST_BUTTON" action="set '$adjust' while_pressed" />
<map value="CBG_EDIT_BUTTON" action="var '$adjust' ? param_greater 0% ? adjust_cbg +0.01 : adjust_cbg +0.01 : goto +24 240ms" />
This only works for the second queries without the adjust button being pressed and when i pressed both of them it still works as "track search" the CDG editing doesn't work". Thank you so much.
Posted Fri 30 Dec 11 @ 7:13 pm
Are you after this maybe? It will make it so you must hold '$shift' and '$adjust', before the adjust encoder will adjust the cbg, if you are only holding '$shift' it will jump 24 if not it wi9ll jump 1
var '$shift' ? var '$adjust' ? action if both are true : action if shift is true but adjust is false : action if both are false
var '$shift' ? var '$adjust' ? param_greater 0% ? adjust_cbg +0.01 : adjust_cbg +0.01 : param_greater 0% ? goto +24 : goto -24 : goto +1 : goto -1
var '$shift' ? var '$adjust' ? action if both are true : action if shift is true but adjust is false : action if both are false
var '$shift' ? var '$adjust' ? param_greater 0% ? adjust_cbg +0.01 : adjust_cbg +0.01 : param_greater 0% ? goto +24 : goto -24 : goto +1 : goto -1
Posted Fri 30 Dec 11 @ 7:40 pm
Hi Bro, sorry i did not indicate that there's no "SHIFT" buttons in the controller thats why i want to create the "ADJUST_BUTTON" button to act like "SHIFT" and i'm not using the rotary encoder knob, i'm using the "forward & reverse" button to do this, so it is something like every hit i did on the "forward" buttons while i'm holding down the "adjust_button" it should move the CBG forward and hitting just the "forward" button alone it will work as default function as track search "forward". I think one you have created above is for the encoder knobs. Thanks for your help bro and maybe you could come up with some other option.
Posted Sat 31 Dec 11 @ 1:08 am
Hi Andrew,
This is what i have created so far.
<map value="FORWARD_BUTTON" action="var '$ADJUST_BUTTON' ? adjust_cbg +0.01 : goto +24 240ms" />
<map value="REVERSE_BUTTON" action="var '$ADJUST_BUTTON' ? adjust_cbg -0.01 : goto -24 240ms" />
Since there's no "SHIFT" Buttons i have created the "ADJUST_BUTTON" to act like "SHIFT" to toggle between the "track search & adjust_cbg" but still it works on forward & reverse only the adjust_cbg doesn't work. I want to add the "adjust_cbg" on the "forward & reverse" buttons while pressing down the "adjust_button" together with the "forward_button".
This is what i have created so far.
<map value="FORWARD_BUTTON" action="var '$ADJUST_BUTTON' ? adjust_cbg +0.01 : goto +24 240ms" />
<map value="REVERSE_BUTTON" action="var '$ADJUST_BUTTON' ? adjust_cbg -0.01 : goto -24 240ms" />
Since there's no "SHIFT" Buttons i have created the "ADJUST_BUTTON" to act like "SHIFT" to toggle between the "track search & adjust_cbg" but still it works on forward & reverse only the adjust_cbg doesn't work. I want to add the "adjust_cbg" on the "forward & reverse" buttons while pressing down the "adjust_button" together with the "forward_button".
Posted Sat 31 Dec 11 @ 4:09 am
hey cesar,
maybe try including "repeat" if you want the cbg to adjust as long as you hold the button, you can of coarse add it to the goto action but it seems better to me jumping that far to make it so you have to hit the button, also 24 isn't a good multiple of 4 musically, you should change it to 4, 8, 16, 32, 64, 128, 256 etc.. otherwise jumping 24 beats will move the track 3/4 of a bar not a whole bar like 32 beats.
var '$ADJUST_BUTTON' ? repeat 20ms & adjust_cbg +0.01 : goto +32
maybe try including "repeat" if you want the cbg to adjust as long as you hold the button, you can of coarse add it to the goto action but it seems better to me jumping that far to make it so you have to hit the button, also 24 isn't a good multiple of 4 musically, you should change it to 4, 8, 16, 32, 64, 128, 256 etc.. otherwise jumping 24 beats will move the track 3/4 of a bar not a whole bar like 32 beats.
var '$ADJUST_BUTTON' ? repeat 20ms & adjust_cbg +0.01 : goto +32
Posted Wed 04 Jan 12 @ 3:45 am
Hi Andrew, Thank you again for your help, well point taken 32 would be the best choice you are right. Any i will try your suggested scripts and i will you know if it works for me or not.
Another question, if you don't mind is i'm struggling on the led mapping of the below scripts this working great but i can't map the led on each individual button. Right now when i press one of them with combination of the "shift" all the button will lights up all leds blinking but when i press just normal button without the "shift" it works for the individual led lit. This is the scripts below.
This is for the button mapping: (the are having two effects the Video_transition & Flanger) i used the "shift" to switch them.
<map value="FX_1" action="device_side 1 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 1 effect 'flanger' active : device_side 2 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 2 effect 'flanger' active : device_side 3 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 3 effect 'flanger' active : device_side 4 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 4 effect 'flanger' active" />
This is for the led mapping:
<map value="LED_FX_1" action="device_side 1 ? deck 1 var '$VIDEO_TRANS' ? blink : deck 1 effect 'flanger' active ? on : off : device_side 2 ? deck 2 var '$VIDEO_TRANS' ? blink : deck 2 effect 'flanger' active ? on : off : device_side 3 ? deck 3 var '$VIDEO_TRANS' ? blink : deck 3 effect 'flanger' active ? on : off : device_side 4 ? deck 4 var '$VIDEO_TRANS' ? blink : deck 4 effect 'flanger' active ? on : off" />
Thank you again. HAPPY NEW YEAR....
Another question, if you don't mind is i'm struggling on the led mapping of the below scripts this working great but i can't map the led on each individual button. Right now when i press one of them with combination of the "shift" all the button will lights up all leds blinking but when i press just normal button without the "shift" it works for the individual led lit. This is the scripts below.
This is for the button mapping: (the are having two effects the Video_transition & Flanger) i used the "shift" to switch them.
<map value="FX_1" action="device_side 1 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 1 effect 'flanger' active : device_side 2 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 2 effect 'flanger' active : device_side 3 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 3 effect 'flanger' active : device_side 4 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 4 effect 'flanger' active" />
This is for the led mapping:
<map value="LED_FX_1" action="device_side 1 ? deck 1 var '$VIDEO_TRANS' ? blink : deck 1 effect 'flanger' active ? on : off : device_side 2 ? deck 2 var '$VIDEO_TRANS' ? blink : deck 2 effect 'flanger' active ? on : off : device_side 3 ? deck 3 var '$VIDEO_TRANS' ? blink : deck 3 effect 'flanger' active ? on : off : device_side 4 ? deck 4 var '$VIDEO_TRANS' ? blink : deck 4 effect 'flanger' active ? on : off" />
Thank you again. HAPPY NEW YEAR....
Posted Wed 04 Jan 12 @ 4:17 am
device_side 1 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 1 effect 'flanger' active :
device_side 2 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 2 effect 'flanger' active :
device_side 3 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 3 effect 'flanger' active :
device_side 4 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 4 effect 'flanger' active" />
found it LOL... try this, when you use "on" in a button mapping, it is for the led that is the buttons 'default' which is stated in the definition file, it makes it quicker to make simple modifications to the basic stock mappers
device_side 1 ? var '$shift' ? set '$VIDEO_TRANS' 1 : set '$VIDEO_TRANS' 0 & deck 1 effect 'flanger' active : device_side 2 ? var '$shift' ? set '$VIDEO_TRANS' 1 : set '$VIDEO_TRANS' 0 & deck 2 effect 'flanger' active : device_side 3 ? var '$shift' ? set '$VIDEO_TRANS' 1 : set '$VIDEO_TRANS' 0 & deck 3 effect 'flanger' active : device_side 4 ? var '$shift' ? set '$VIDEO_TRANS' 1 : set '$VIDEO_TRANS' 0 & deck 4 effect 'flanger' active" />
happy new year mate, i'm still getting over my new years bender!
device_side 2 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 2 effect 'flanger' active :
device_side 3 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 3 effect 'flanger' active :
device_side 4 ? var '$shift' ? set '$VIDEO_TRANS' 1 & on : set '$VIDEO_TRANS' 0 & deck 4 effect 'flanger' active" />
found it LOL... try this, when you use "on" in a button mapping, it is for the led that is the buttons 'default' which is stated in the definition file, it makes it quicker to make simple modifications to the basic stock mappers
device_side 1 ? var '$shift' ? set '$VIDEO_TRANS' 1 : set '$VIDEO_TRANS' 0 & deck 1 effect 'flanger' active : device_side 2 ? var '$shift' ? set '$VIDEO_TRANS' 1 : set '$VIDEO_TRANS' 0 & deck 2 effect 'flanger' active : device_side 3 ? var '$shift' ? set '$VIDEO_TRANS' 1 : set '$VIDEO_TRANS' 0 & deck 3 effect 'flanger' active : device_side 4 ? var '$shift' ? set '$VIDEO_TRANS' 1 : set '$VIDEO_TRANS' 0 & deck 4 effect 'flanger' active" />
happy new year mate, i'm still getting over my new years bender!
Posted Wed 04 Jan 12 @ 5:35 am
LOL ... Ah.. ok.. still having fun... enjoy and wishing a prosperous new year. Thank you.
Posted Wed 04 Jan 12 @ 6:50 am
Hi Andrew, i have fixed the led mapping, you are correct it is the "ON" in the actual buttons mapping scripts that makes the led of the controller confused and lights up all the leds blinking. I was thinking that the "ON" on my scripts was to activate the video effects i'm not aware that it can affects the led mapping also. Thank you again
Posted Wed 04 Jan 12 @ 5:05 pm