快速登录:  

Forum: Old versions

话题: need an example of vdj script

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

Hi, I currently use an akai mpd with virtual vinyl, I have 4 banks of 16 pads, I want to be able to do live remixing using hot cues.
I have already set up the mpd to create 16 hot cues on the fly for each deck on two separate banks and delete them using the keyboard and the CTRL (deck 1) and ALT (deck 2) keys with the respective cue number eg. 1-0 and q-y making the 16 cues,
I was wanting to know if it is possible to delete the cues using another button on the mpd controller and the cue pad.
I have already looked at the vdj script help, but got lost... I would appreciate if anyone could give a specific example of the script that would need to be used if it is possible. It would need to work as follows...

Pad 1 = hot_cue 1
Pad 16 + Pad 1 = delete hot_cue 1
Pad 2 = hot_cue 2
Pad 16 + Pad 2 = delete hot_cue 2 etc...

Cheers
 

发表时间 Sun 15 Aug 10 @ 9:01 am
DHoudePRO InfinityMember since 2009
I use this on my Numark NS7. Delete in this instance is only active while pressed, then while holding that delete key, press the cue you wish to delete.

HOTCUE_DELETE action= set '%hotcue_delete' 1 & holding ? set '%hotcue_delete' 0 : goto_first_beat & set '%hotcue_delete' 0

HOTCUE_1 action= var '%hotcue_delete' ? delete_cue 1 : hot_cue 1

The bold text is all you need. The rest is extra and the way I use it, coppied straight out of my mapper. I have that "delete" jump to the first beat of the song if you haold it for a second and then release it. Just another cue tool that I like. Hope this helps, thanks Jeremk for your knowledge on this, I love it!

Edit: now that I see it, you need to incorperate the set '%hotcue_delete' 0 is the first command if you plan to pick it apart. That is how it knows the key is up. If you copy it straight out, it should all work fine and you can enjoy the extra feature.
 

发表时间 Sun 15 Aug 10 @ 9:24 am
cool, thanks dhoude, i'll try it now, still don't understand though... lol
 

发表时间 Fri 20 Aug 10 @ 4:04 am
SBDJPRO Infinity Member since 2006
As above by DHoude, try the following:

Pad 16: set hcd_shift while_pressed
Pad 1: var hcd_shift ? delete_cue 1 : hot_cue 1

This tells VDJ to set the variable hcd_shift to true whilst Pad 16 is being pressed (and back to false when you let go).

Explanation:

Pad 16: Set variable hcd_shift to true whilst Pad 16 is pressed down and back to false when you let go.
Pad 1: If hcd_shift is true then delete cue 1, else hot cue 1

The variable name is irrelevant, you can choose anything. Think of '?' as 'then' and ':' as 'else'.
 

发表时间 Fri 20 Aug 10 @ 6:09 am
Thanks SBDJ, now I understand and it works! :) that makes things so much easier!

while I m asking about VDJ script... would it be possible to set up pad 15 + pad 1 etc.. as sample play buttons alongside this set up... although from the explanation it sounds like you would only have two options true and false and a another variable button might clash?

This may really push the friendship but, can you change the colors of the cues from the default blue and red. I have the mpd set up like this:

bank 1 - cue 1 - start, cue 2 - first bit, cue 3 - breakdown, cue 4 - last bit
pads 1 - 4= deck A hot cues 1-4, pads 9-12 = deck B hot cues 1 - 4.

bank 2
Pads 1 - 16 - deck A hot cues 20 - 36

bank 3
Pads 1 - 16 - deck B hot cues 20 - 36

bank 4
sampler play

would it be possible to change the colors or the opacity/transparency of banks 2 and 3 to distinguish a difference between the types of cues so they don't get in the way?
 

发表时间 Fri 20 Aug 10 @ 6:36 am
Hi,
i'm an Italian user.
I would setting my Akai MPD 26.
I have 4 Bank Pad: A, B, C, D.
For each Bank Pad i have 16 pad, but, i can use only 12 pad for my samplers.
I would setting:
Pad Bank A --> 12 samplers (the other 4 pads I use them for other functions)
Pad Bank B --> 12 samplers (the other 4 pads I use them for other functions)
Pad Bank C --> 12 samplers (the other 4 pads I use them for other functions)
Pad Bank D --> 12 samplers (the other 4 pads I use them for other functions)
total 4 Pad Bank --> 48 samplers
How can I set the keys Pad Bank A, Pad Bank B, Pad Bank C and Pad Bank D?
it's possible?

PS:
I only managed to set the pad bank A!!

Thanks for any replies!!
 

发表时间 Fri 10 Feb 12 @ 11:47 am
Nothing?
 

发表时间 Mon 13 Feb 12 @ 11:09 am
the banks in the mpd are hardware shifts... you have two options, you could use the spare four buttons to change out the sample bank you are in, or you could set a variable that if true will load the samples, or if false will only play the samples, but that would need to be done to every button...

set the different soft shifts
set 'samp_bank' 1 & sampler 1 load "C://Filepath/to/sample.vdj" & sampler 2 load "C://Filepath/to/sample.vdj" & sampler 3 load "C://Filepath/to/sample.vdj" & etc... sampler 12 load "C://Filepath/to/sample.vdj"

set 'samp_bank' 2 & sampler 1 load "C://Filepath/to/sample.vdj" & sampler 2 load "C://Filepath/to/sample.vdj" & sampler 3 load "C://Filepath/to/sample.vdj" & etc... sampler 12 load "C://Filepath/to/sample.vdj"

set 'samp_bank' 1 & sampler 1 load "C://Filepath/to/sample.vdj" & sampler 2 load "C://Filepath/to/sample.vdj" & sampler 3 load "C://Filepath/to/sample.vdj" & etc... sampler 12 load "C://Filepath/to/sample.vdj"

etc....

the reason for setting an individual shift is you can change the behaviour of the play button for different banks, so one bank could be play_stop, one bank play_stutter, one bank play while_pressed etc...
var 'samp_bank' 1 ? sampler 1 play : var 'samp_bank' 2 ? sampler 1 play_stutter : var 'samp_bank' 3 ? sampler 1 play while_pressed : etc...\

for the second option you would need to map a load script for every button in the four banks, the negative of this method is it involves a lot more scripting, but the benifit is you can know what bank you are in by looking at the mpd screen.

var_not_equal "samp_bank' 1 ? set 'samp_bank' 1 & sampler 1 load "C://Filepath/to/sample.vdj" & sampler 2 load "C://Filepath/to/sample.vdj" & sampler 3 load "C://Filepath/to/sample.vdj" & etc... sampler 12 load "C://Filepath/to/sample.vdj" : sampler 1 play_stop

unfortunately you need vdj pro to be able to load samples and use vdj script with controllers to make use of this, but if you do get vdj pro you can use the "sampler manager" plugin to change the banks for you.
 

发表时间 Mon 13 Feb 12 @ 12:23 pm
Thank you very much!!!
i'm happy after this post!
Thank you!!!
 

发表时间 Mon 13 Feb 12 @ 1:35 pm
I was installed Sampler Manager, but, when i open VDJ there isn't this plug-in!
There is a normally skin...
what is the problem?
 

发表时间 Mon 13 Feb 12 @ 2:35 pm


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