Anmelden:     


Forum: General Discussion

Topic: crossfader scripting help!

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

anyone know the syntax so i can use a crossfader to select between device sides?

got a prety complicated mapping project going on here and need to be able to use it as a selection swithc with variable that allows me to select device sides to i can setup independant control of each side.
 

geposted Wed 30 May 12 @ 3:59 pm
can you give a better description of what you want blu, that is hard to understand exactly what your after...
 

basically, i need to seperate completely the two sides of the device, but be able to switch between which side im using. im working on turning my mp3e2 into an fx unit and sampler.
 

you might need to draw a diagram lol

...but hopefully this will help

to seperate the sides of the controller so you have independant controls you use

"device_side 'left' ? action for left side : action for right side

so if you want to make both sides work on one deck in the software you could do something like ths, the example is to use a slider or knob for effect 1 sliders 1 & 2.

two position switch (deck selector)
left position
set '$fx_side 0

right position
set '$fx_side' 1

knob/slider
"device_side 'left' ? var '$fx_side' 1 ? deck right effect 1 slider 1 : deck left effect 1 slider 1 : var '$fx_side' 1 ? deck right effect 1 slider 2 : deck left effect 1 slider 2

If it's a three position switch you just need a little modification, also if it isn't a note on/off signal it would need to be changed.

is that sort of what your after?
 

hmm, lets seeif i can explain...

volume sliders = sampler volume

pitch +/- = selector knob for sampler and effects.

Master tempo = toggle switch

sync = activate sample or effect

jogs = fx parameters.

now then, i need to seperate the device sides as to allow me to select each side independently so i can controll the parameters of each decks fx by using the two jogs. im re thinking the selector switch but id prefer it to be the fader. i could also use the pfl if necessary.

 

in that case

crossfader
param_smaller 50% ? set '$fx_side' 0 : set '$fx_side' 1

jog
"device_side 'left' ? var '$fx_side' 1 ? deck right effect 1 slider 1 : deck left effect 1 slider 1 : var '$fx_side' 1 ? deck right effect 1 slider 2 : deck left effect 1 slider 2

If you want to decrease the sensivity use "param_multiply 20% &" you might need to use "param_greater 0/50% ? " depending on the way it's defined.

forgot the $sign in the other one aswell
 

crossfade script dont work
 

it looks like it should work... try mapping your pfl buttons to see if that fixes it

left deck focus
set '$fx_side 0

right deck focus
set '$fx_side' 1

then put the jog script on the volume sliders to see where the problem lies, you may need to use "param_greater 0%/50%" on the jogs as said in the last post, but i recall that last time you wanted to map an encoder you didn't need to worry about that, can't remember what controller it was for though.
 

ive tried a few variations of your script synth and it doesnt seem to work at all, usually i can pull something from your scripts and work out the syntax, but not this time.

i tried this but still to no avail

param_smaller 50% ? set leftdeck : effect active? set fxside_0 & deck 1 effects slider 1 & deck 1 effects slider 2 & param_greater 50% ? set rightdeck : effect active? set fxside_1 & deck 2 effects slider 1 & deck 2 effects slider 2

im not sure why, but i cant seem to get the device sides to switch with the fader. there has to be a simple option... im gonna try something i just thought of and get back to you.
 

synthet1c wrote :
it looks like it should work... try mapping your pfl buttons to see if that fixes it

left deck focus
set '$fx_side 0

right deck focus
set '$fx_side' 1

then put the jog script on the volume sliders to see where the problem lies, you may need to use "param_greater 0%/50%" on the jogs as said in the last post, but i recall that last time you wanted to map an encoder you didn't need to worry about that, can't remember what controller it was for though.


the last time i was mapping it was on the MTP, however we went through a load of syntax last time i mapped this herc.

ill try the pfl now.
 

this should have errors blu, and it straight away won't work on the deck sides as the shifts aren't "$global" and I have no idea what you are trying to achieve with this script tbh the setting of the '$fx_side' is done completely seperately to the actual control performing the action...

param_smaller 50% ? set leftdeck : effect active? set fxside_0 & deck 1 effects slider 1 & deck 1 effects slider 2 & param_greater 50% ? set rightdeck : effect active? set fxside_1 & deck 2 effects slider 1 & deck 2 effects slider 2

the intention of the script I gave you is the crossfader is the switch between both jogs working on either deck eg. if the crossfader is on the left side the left jog controls effect param 1 on the left deck and the right jog controls effect param 2 on the left deck, if the crossfader is over to the right then the left jog controls effect param 1 on the right deck and the right jog controls effect param 2 on the right deck.
 

ah ok, i see what your saying, however, the script you gave me didnt work to swap between the decks.

that is exactly what i want.

fader to side 1 = jogs control deck 1 fx param
fader to side 2 = jogs contrlo deck 2 fx param

however no matter what ive tried so far, there seems to be no alteration in which fx side the jogs control.

ill post up what ive changed so far in regards to the jogs and fx, then you can hopefully get a bit better understanding of what im wanting to achieve, im sure together we can work it out, we do every other time :D
 

Let's try again:

1) The crossfader should be mapped to:
param_smaller 50% ? set '$FXDECK' 0 : set '$FXDECK' 1

2) Now the jog:
device_side 'left' ? var_equal '$FXDECK' 0 ? deck left effect slider 1 : deck right effect slider 1 : var_equal '$FXDECK' 0 ? deck left effect slider 2 : deck right effect slider 2

If the effect sliders are moving in one direction only then we'll have to adjust the jog script. More info on this once we get it working so far...

 

thanks phantom. that works perfect first go :D, i knew it couldnt be that difficult. i was overthinking it. hapens sometimes.
 

Nice to hear that you got it working the way you wanted!
 

lol, you got it working not me. there is more i want to do tho, because ive gotta set this up for a 4 deck fx unit yet ;)
 

ok, next question, is it possible to map an eq knob to activate a particular effect? plus double up as fx slider 1???
 

yep...

param_greater 0% ? effect 'effect_name' active on & effect slider 1 : effect 'effect_name' active off

that is exactly what you asked, but you can of coarse name the effect for the slider which I recommend doing... I'm just not taking any chances after this LMAO! ;-)
 

synthet1c wrote :
yep...

param_greater 0% ? effect 'effect_name' active on & effect slider 1 : effect 'effect_name' active off

that is exactly what you asked, but you can of coarse name the effect for the slider which I recommend doing... I'm just not taking any chances after this LMAO! ;-)


i tried something simiar earlier, i was close but its late now and im falling asleep so will test your script in the morning

i tried

param_greater 0% ? effect"effect_name" active & effect slider 1

which didnt work... i knew i was somewhere near but gave up because i decided i would prefer to chat with my gf than mess around with mapping.
 



(Alte Themen und Foren werden automatisch geschlossen)