登录:     


Forum: General Discussion

Topic: Question About mapping a button for a controller

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

Hey guys quick question here.

I want to map the sampler buttons in a different way to standard.

Is there a way to set my sampler buttons so that the led light is on permantly and then when i press the button to activate the sampler the light then blinks.

I have been looking at wiki and having a play around but cant seem to sucide.

I can get the led light to work like i want it to and that is the buttons light is on solid then when i press the button the light then blinks.

But when i get the led light working the sampler no longer plays so i am just sat here scratching my head so thought i would ask you guys.
 

发表时间 Mon 16 Jan 12 @ 6:18 pm
to do that you just need to make the sampler playing the variable that tells the led what to do using

"variable ? action if true : action if false"

eg for the led mapping it would be

"sampler play ? blink : on"

you can also query a specific sample if you want to use multiple buttons

"sampler 1 play ? blink : on"
 

It depends if led is separately mapped or not.

If led is a different key in the mapper, then the above script should work fine.

But is if the led is not mapped separately, it means that it will work using the same action with the button.
So you need to apply both to a single action.
Eg.

sampler 1 play ? blink & sampler 1 play_stop : on & sampler 1 play_stop
 

I tried both them and neither work
 

what controller are you trying to map, and which button ?
 

I am using the pioneer ergo.

I am wanting to map nearly all the buttons so that they all light up and when i activate the button they flash.

Reason for this is so that i can see them clearly in the club as at the weekend i wanted to press the sampler 1 button but pressed the hot cue 1 button by mistake because i couldnt see them clearly because none of them light up unless pressed.
 

Hi,

Sorry but i am now back with another question.

I have now configured the leds to work how i want but want to know how to map the crossfader.

What i want to achieve is the when the crossfader move from deck 1 to deck 2 i also what it to tell virtual dj that to is also the masterdeck.

So for example i have a song loaded on deck 1 with the crossfader all the way to the left and that is my masterdeck, then when i move the crossfader to deck 2 i then want it to automatically change deck 2 to the masterdeck.

Cheers in advanced
 

see if this works, I just edited the fader start script I came up with a while ago... so no promises but I'll check it later tonight LOL

crossfader & param_equal 0% ? set '$faderleft' 1 & set '$faderright' 0 : param_equal 100% ? set '$faderright' 1 & set '$faderleft' 0 : var '$faderleft' 1 ? param_greater 1% ? deck right select & deck right masteredeck & '$faderleft' 0 : nothing : var '$faderright' 1 ? param_smaller 99% ? deck left select & deck left masteredeck & set '$faderright' 0 : nothing : nothing : crossfader & param_equal 0% ? set '$faderleft' 1 & set '$faderright' 0 : param_equal 100% ? set '$faderright' 1 & set '$faderleft' 0 : var '$faderleft' 1 ? param_greater 1% ? set '$faderleft' 0 : nothing : var '$faderright' 1 ? param_smaller 99% ? set '$faderright' 0 : nothing
 

Hey cheers maate tried the aobove but doesnt seem to work.

Thanks
 

Try the following:

crossfader & crossfader 0% ? deck left masterdeck : crossfader 100% ? deck right masterdeck : nothing
 

Hi,

Thanks again but that one does not work either.
 

Rob ...

Shift+Sync is already set to change the Master Deck assignment. Why the need to change it to the crossfader?

 

Because it would be nice to have it say that way rather than messing about keep pressing shift and sync each time i load a new song.
 

Are you using the Load buttons on the unit ?

If so ... then change the mapping for them ... >> load & masterdeck

Now that will switch the master deck at load, so if you are going to use 'sync' on the deck you have just loaded it will pose a problem.

If you are looking to use sync before the deck becomes the masterdeck then maybe this would be more appropriate >> load & sync & masterdeck


 

Thanks will give that a try as i never use sync button anyway.

But surely it is just easier to have it set on the crossfader so that if the slider is all the way to the left then master deck a is active and if slider all the way to the right then master deck b is active
 

I forgot I had a shift in front of this, so it would have said syntax error, this should fix it. but it is a little different to what you said, basically if the crossfader is all the way left you are arming a shift to set the masterdeck as deck right when you start moving it over towards the right side, not when you get to the right side


crossfader & param_equal 0% ? set '$faderleft' 1 & set '$faderright' 0 : param_equal 100% ? set '$faderright' 1 & set '$faderleft' 0 : var '$faderleft' 1 ? param_greater 1% ? deck right select & deck right masterdeck & '$faderleft' 0 : nothing : var '$faderright' 1 ? param_smaller 99% ? deck left select & deck left masterdeck & set '$faderright' 0 : nothing

what you just asked for is

crossfader & param_equal 0% ? deck left masterdeck : param_equal 100% ? deck right masterdeck
 



(陈旧帖子或论坛版块会自动关闭)