Entra:     


Forum: General Discussion

Topic: Scripting questions

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

I know there's a script. to skip full bars ahead.
example: goto_bar 4.

Is there a script to skip a half or quarter bar ahead.

 

Inviato Fri 19 Oct 12 @ 5:02 pm
yep... you can jump forward to an absolute point in the track eg.

goto 25%
goto 50%
goto 75%
etc...

or you can jump a relative amount eg.
goto +25%
goto -25%

actually on second thought I think you are after this to move in fractions of a beat.

goto +0.5
goto +0.25
goto -0.5
goto -0.25
 

Thank you very much. The last script was exactly what I needed.

Very much appreciated.
 

dont think the le can be scripted can it?
 

I'm pretty sure you can script the keyboard... I could be wrong though ;-)
 

VirtualDJ LE is free limited software doesn't support any custom mapping except during the time limited Pro trial.

To be able to use custom mappings and much, much more, you will need to upgrade to the full VirtualDJ Professional at a discount: http://www.virtualdj.com/buy/index.html

(Home FREE does support keyboard mapping, but doesn't support using MIDI controllers.)
 

Okay, been looking at VDJ Script again, last time was for STANTON SCS3 long ago.

Got MEP7000 and DJM-5000 so using MEP built in soundcard to output to CH1 and 2 on DJM and using DJM soundcard for CH3 and 4.
Soundcards all working fine, what i now want to do is set the CALL button on the MEP to toggle to the next deck.

So LeftDeck toggles between deck 1 and 3 and right deck toggles between deck 2 and 4.

Any help would be greatly appreciated.

Thanks

Daz

added: MEP7000 mappings only list buttons once.

Example: PLAY not PLAY_LEFT_DECK and PLAY_RIGHT_DECK... this will probably add complexity to code.

Code attempted/looked at:

get deck & deck 1 ? select deck 3 : select deck 1
leftdeck deck 1 ? select deck 3 : select deck 1
leftdeck deck 1 ? leftdeck +2 : leftdeck -2

In suedo code would be written

if leftdeck is set to 1 then set left deck to 3 else set leftdeck to 1 and if right deck is set to 2 then set to 4 else set to 2

Hope this makes sense


 

So after some further trial and error i got halfway o my objective.

deck 1 leftdeck ? deck 3 leftdeck : deck 3 leftdeck ? deck 1 leftdeck

However came across issue i antisipated, call button on right dec also effects this selection.... so need to now identify which deckt he button is being pushed to determine which decks to effect.

i.e. CALL_LEFT_DECK & DECK 1 LEFTDECK ? DECK3 LEFTDECK .... etc

 

Try ..

device_side 'left' ? deck 1 leftdeck ? deck 3 leftdeck & deck 3 select : deck 1 leftdeck & deck 3 select : deck 2 rightdeck ? deck 4 rightdeck & deck 4 select : deck 2 rightdeck & deck 2 select

or

action_deck 1 ? deck 3 leftdeck & deck 3 select : action_deck 3 ? deck 1 leftdeck & deck 1 select : action_deck 2 ? deck 4 rightdeck & deck 4 seelct : action_deck 4 ? deck 2 rightdeck & deck 2 select

Make sure your controller is set to Lef-Right (default) in Config->Mappers tab -->Mappers Options
 

djdad wrote :
Try ..

device_side 'left' ? deck 1 leftdeck ? deck 3 leftdeck & deck 3 select : deck 1 leftdeck & deck 3 select : deck 2 rightdeck ? deck 4 rightdeck & deck 4 select : deck 2 rightdeck & deck 2 select

or

action_deck 1 ? deck 3 leftdeck & deck 3 select : action_deck 3 ? deck 1 leftdeck & deck 1 select : action_deck 2 ? deck 4 rightdeck & deck 4 seelct : action_deck 4 ? deck 2 rightdeck & deck 2 select

Make sure your controller is set to Lef-Right (default) in Config->Mappers tab -->Mappers Options


Thanks DJDad, first option worked a treat, modded a little further and put a holding value on it so i could set a variable to control my effect and sampler option.

One other question i have, if you don't mind. I'm looking to split my tempo button to only affect the controllers current deck.

So currently leftdeck is assigned to deck 1, pushing the tempo button on leftdeck adjusts the range 6,10,16,100 for the pitch slider but effects all decks. if i set it to just work with active deck then only does left and right of the assigned deck so 1 and 2 not 3 and 4.

Any thoughts?

Thanks


 

Help needed again, please.

So thanks to djdad i have sorted my deck select button.

now want to complicate things even further,

Two Buttons CALL and MEMORY on MEP-7000

MEMORY switches Deck leftdeck 1/3 and rightdeck 2/4

i want to add a variable toggle to the button so i can apply/activate an effect or a sample.

So i set the deck select to happen when holding MEMORY for 300ms happy and working

i added a toggle variable $fx_mode too

I set the CALL button to check $fx_mode and either play_stop sample or effect active tested all working.

FYI setup Track Search to skip through effects or samples


Next step was to see which sample or effect was playing...

So added page sample and page effect to match $fx_mode happy.

So the tricky part...

wanted to change the skin_panel as well but only for the relevant deck.

got it working fine with deck 1 but not able to workout logic to check for deck 2,3 or 4

here's what i've got so far, any help would be greatly appreciated.

holding 300ms ? device_side 'left' ? deck 1 leftdeck ? deck 3 leftdeck & deck 3 select : deck 1 leftdeck & deck 1 select : deck 2 rightdeck ? deck 4 rightdeck & deck 4 select : deck 2 rightdeck & deck 2 select : toggle $fx_mode & var $fx_mode ? action_deck 1 ? page "effects" & skin_panel 'deck1c' on : page "sampler" & skin_panel 'deck1a' on : action_deck 2 ? page "effects" & skin_panel 'deck2c' on : page "sampler" & skin_panel 'deck2a' on : action_deck 3 ? page "effects" & skin_panel 'deck3c' on : page "sampler" & skin_panel 'deck3a' on : action_deck 4 ? page "effects" & skin_panel 'deck4c' on : page "sampler" & skin_panel 'deck4a' on


Thanks

Daz
 

okay so got it working on deck 1 and 2 but when repeated and modded for 3 and 4 nothing.

holding 300ms ? device_side 'left' ? deck 1 leftdeck ? deck 3 leftdeck & deck 3 select : deck 1 leftdeck & deck 1 select : deck 2 rightdeck ? deck 4 rightdeck & deck 4 select : deck 2 rightdeck & deck 2 select : toggle $fx_mode & var $fx_mode ? action_deck 1 ? page "effects" & skin_panel 'deck1c' on : page "sampler" & skin_panel 'deck2a' on : action_deck 2 ? page "effects" & skin_panel 'deck2c' on : page "sampler" & skin_panel 'deck1a' on

 



(Vecchi argomenti e forum sono automaticamente chiusi)