Quick Sign In:  

Forum: General Discussion

Topic: delete_cue with a shift button does not work
I have a generic midi controller which I have programmed the functionality for almost everything (knobs, faders, pads, play etc)
I assigned one button as shift and seems to work as the led lights on when shift is pressed
Definition is as follows

<button note="0x36" name="SHIFT" channel="0" />
<led note="0x36" name="LED_SHIFT" default="SHIFT" channel="0" />
<button cc="0x35" name="PAD1" channel="0" deck="left" />
<led cc="0x35" name="LED_PAD1" default="PAD1" channel="0" />
and mapping as follows

<map value="SHIFT" action="shift while_pressed" />
<map value="LED_SHIFT" action="shift ? on : off" />
<map value="PAD1" action="shift? delete_cue 1 : pad 1" />
<map value="LED_PAD1" action="shift ? on : off" />
However, nothing happen, cue 1 is not deleted, when when shift is pressed. Without shift being pressed the default pad 1 action is triggered. For testing purposes I removed the shift condition
<map value="PAD1" action="delete_cue 1" />
Deletion of cue 1 occur if shift is not pressed, but cue 1 is not deleted while shift is pressed (led light is on, which indicates shift key works) In addition, I see the cue pads on the screen change to 'delete' indicating that shift is activated. While the shift key is pressed I can delete the cue 1 with the mouse on my computer. It seems the issue is with the setting, or the VDJ script code
Any hints?
 

Posted Mon 16 Jan 23 @ 6:19 pm
locodogPRO InfinityModeratorMember since 2013
missing a space between shift and question mark
 

Posted Mon 16 Jan 23 @ 6:29 pm
No difference. The mapping was done with the space. I t was a typo when I posted the question
<map value="PAD1" action="shift ? delete_cue 1 : pad 1" />
<map value="LED_PAD1" action="shift ? on : off" />


As I stated above I did this
<map value="PAD1" action="delete_cue 1" />
and it does not work while the shift key is pressed but works if pad 1 is pressed
 

Posted Mon 16 Jan 23 @ 6:34 pm
locodogPRO InfinityModeratorMember since 2013
what does the mapping window show when you press shift+button ?
 

Posted Mon 16 Jan 23 @ 6:49 pm


it says SHIFT on
 

Posted Mon 16 Jan 23 @ 6:54 pm
Test

<map value="SHIFT" action="'shift' 1 while_pressed" />
 

Posted Mon 16 Jan 23 @ 6:55 pm
What shows the mapping page when you press "SHIFT" and "PAD1" on the same time?
Any Controllers send other Midi Signals when the "SHIFT" Button in pressed.
 

Posted Mon 16 Jan 23 @ 6:59 pm
Before and after your suggested edit the behavior is the same. The delete appears on the pad but no deletion occur of cue 1 occur. I also tried with var '$shift'
 

Posted Mon 16 Jan 23 @ 7:02 pm
In my opinion is not about the shift variable, becase if I remove the conditional of shift
<map value="PAD1" action="delete_cue 1" />
the delete_cue 1 occur without pressing shift, but while keeping shift pressed, the action does not take place.
 

Posted Mon 16 Jan 23 @ 7:05 pm
What shows the Mapping page when you press SHIFT and PAD1 at the same time?



i think the Hardware sends an other MIDI key when the shift button is pressed.
 

Posted Mon 16 Jan 23 @ 7:12 pm
 

Posted Mon 16 Jan 23 @ 7:15 pm
and where is the PAD? booth buttons on the same time?
 

Posted Mon 16 Jan 23 @ 7:17 pm
AdionPRO InfinityCTOMember since 2006
Note that SHIFT_ mappings are added automatically.
So you can just assign one action without shift to PAD1, and the other action when shift is pressed to SHIFT_PAD1
You don't need to check for shift in PAD1
 

Posted Mon 16 Jan 23 @ 7:21 pm
After countless hours of troubleshooting It turns out that the key I intended to have as SHIFT, which could be functional for other mapping actions (e.g. BROWSER_WINDOW) does not accept other combination KEY . Once I assigned SHIFT to any other key, it worked! I may be a reserved KEY tow work with other keys.
 

Posted Mon 16 Jan 23 @ 10:51 pm