Connexion rapide:  

Forum: Old versions

Sujet Mapping Question....Multiple shift keys? help please

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

I have a question, when writing commands with $shift & %shift can u assign 2 variables to the same button?
example:

deck 1 button = set $alpha while_pressed
deck 2 button = set $omega while_pressed

FX Button = var $alpha ? effect flanger : effect beatgrid & var $omega ? effect vocals : effect chorus

I think im messing up when trying to add both commands with the " & " but I thought thats what its for... complex stuff... hmmm theres gotta be a way.

I want to be able to press the $shift key then activate effects then (while still holding/toggled) press a 2nd $shift key to enable other buttons for effects. any help would be great :)
 

Posté Sat 09 Mar 13 @ 6:49 am
technzPRO InfinityMember since 2011
DJ Blaze Kaze wrote :
FX Button = var $alpha ? effect flanger : effect beatgrid & var $omega ? effect vocals : effect chorus


FX Button = var '$alpha' ? var '$omega' ? effect vocals : effect 'flanger' : var '$omega' ? effect beatgrid : effect chorus

this provides us with 4 states for a button, which should be enough for most people, however if you want to get crafty your could use more variables to detect which shift button was pressed first and provide a 5th state.

but im not going to do that here
 

Posté Sat 09 Mar 13 @ 2:20 pm
Thank you
 

Posté Sat 09 Mar 13 @ 8:02 pm
Here's what part of it looks like:


A var '$shift' ? var '$browse' ? device_side 'left' ? sampler 7 play_stutter : sampler 8 play_stop : device_side 'left' ? sampler 11 play_stop : sampler 12 play_stop : device_side 'left' ? sampler 3 play_stutter : sampler 4 play_stop




B var '$shift' ? var '$browse' ? device_side 'left' ? sampler 5 play_stutter : sampler 6 play_stop : device_side 'left' ? sampler 9 play_stop : sampler 10 play_stop : device_side 'left' ? sampler 1 play_stutter : sampler 2 play_stop


I have 4 buttons samples 1-4 when variables are off
buttons change to samples 5-8 when '$shift' is toggled
when '$browse' is toggled (only if '$shift' is on) the last 4 samples are loaded


thx for the help, i have a crazy script goin on :)
 

Posté Sat 09 Mar 13 @ 8:54 pm


(Les anciens sujets et forums sont automatiquement fermés)