Forum: General Discussion

Discussions about VirtualDJ, and about DJing in general

Forum Guidelines
If you need extended support, contact our Support Team.
(*) The moderators hold the rights to move or modify posts in order to keep the discussions clear or to facilitate the search.
Topic: Calling forth the mapping GODs.
Filter knob Color FX: Change FX assigned to the Filter on the mixer channel

FILTER
effect active ‘colorfx’ ? effect_colorslider ‘colorfx’ : filter

FX1_ASSIGN
holding ? custom_button 2 : custom_button 1

FX2_ASSIGN
holding ? custom_button 7 : custom_button 6

CUSTOM_BUTTON 1 (CRSH)
effect_active ‘colorfx & effect_select ‘colorfx’ ‘distortion’

CUSTOM_BUTTON 2 (RVERB)
effect_active ‘colorfx & effect_select ‘colorfx’ ‘reverb’

CUSTOM_BUTTON 6 (DUB)
effect_active ‘colorfx & effect_select ‘colorfx’ ‘echo’

CUSTOM_BUTTON 7 (JET)
effect_active ‘colorfx & effect_select ‘colorfx’ ‘flanger’



Previously I used this LED map to display what was active on the Filter

LED_FX1_ASSIGN (needs updating with blink reverb)
effect_active ‘colorfx’ && effect_select ‘colorfx’ ‘distortion’

LED_FX2_ASSIGN (needs updating with blink flanger)
effect_active ‘colorfx’ && effect_select ‘colorfx’ ‘echo’



This worked perfectly but now I've added another 2 FX (RVERB & JET) the LED part needs expanding. My intention was to use BLINK. I've tried all sorts of combinations from looking at other commands. I've even had the button blink, be on or off, depending, but it wasn't right. I can't figure it out.

Any help will be greatly appreciated.

Also. If i wanted to use the FILTERROLL FX on the FILTER via custom button 2 being 'filterroll' not 'reverb', how would I assign it. I can easily get the filterroll to be there changing "effect_active ‘colorfx & effect_select ‘colorfx’ ‘reverb’" to "effect_active ‘colorfx & effect_select ‘colorfx’ ‘filterroll’" but as the filterroll already behaves like the color slider, it doesn't work as you'd intend. "FILTER = effect active ‘colorfx’ ? effect_colorslider ‘colorfx’ : filter" would no doubt need changing. This one might be a little more complex so not as important as my first query.

Many thanks in advance.

Posted Fri 06 Apr 18 @ 12:46 am
Anybody? I know it's a complex one but I need to learn more advanced mapping code. Thank you.

Posted Sun 08 Apr 18 @ 12:36 pm
locodogPRO InfinityMember since 2013
LED_FX1_ASSIGN
effect_active ‘colorfx’ ? effect_select ‘colorfx’ ‘distortion’ ? on : effect_select ‘colorfx’ ‘reverb’ ? blink : off : off

Try that. Does it make sense?

Posted Sun 08 Apr 18 @ 9:21 pm
Thank you very much, i'll try this now. It looks like this will help me with quite a few other areas of code too.

Posted Mon 09 Apr 18 @ 7:54 pm
Yes... Thank you. This works 100%. I was close with my attempts but it was the off command I had wrong, especially the double part of it. Thank you.

Posted Mon 09 Apr 18 @ 9:58 pm
locodogPRO InfinityMember since 2013
Ney worries, what's this about filter roll, can you describe the unexpected behaviour?

Posted Tue 10 Apr 18 @ 5:31 am
I missed your reply here. My issue with using Filter Roll on the filter was, setting it up via the colorfx slider string means it has the center pot 3 times, as it is already set to have a center position by default. Filter Roll needs to be assigned as normal, not as a colorfx slider but this messes up everything already coded. That was quite hard for me to find the right words, hope it makes sense.

Posted 4 days ago @ 11:33 am