Accesso rapido:  

Forum: General Discussion

Topic: VirtualDJ Scripting - Page: 2

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

Hello, I've been looking around the net for examples of how to use " get cue " with no luck.. my current experiment is no going as well as planned...sad face... Before I buy into Virtual DJ ( used it with many many services over the years and love it ) I need to know that it is not falling behind in the midi game.. I know that there is a freestyler plugin if you want to make 2 computers work together to sync a light show to music but unfortunately I have many hours of programming in a different light suite and I want to make them work together by writing a "controller" which is working well. I can pass midi on different events like " load " or " cue " over to my second computer ( just made a bunch of LED xml reference in my custom controller ) so the only thing that is holding me back is figuring out how to monitor the last cue played and then having my custom controller send a " On " signal over to my light suite. People use the LED portion of the scripting language to make buttons light up on controllers so that is basically all i am doing here with rtpMIDI interface. So I want to use the same theory that the freestyler plug-in people did ( song goes past cue_81 and then makes the lighting software do something ). How can I use " get cue " to watch for the last cue played? Here is a working example from my xml mapping that makes my light suite " do something " when a track is loaded...

<map value="LED_TEST" action="loaded ? on " />

from everything i've read i'm guess i need to set a varibal and then try and use the var_equals somehow.. i came up with this... but I doesn't work ...another sad face

<map value="LED_TEST" action="play ? var "cuetester" get cue & var_equal "cuetester" 1 ? on : off" />


Any help would be nice.. I saw that there is a watch dog plugin but it states that it is depreciated so that is not an option for a sustainable solution

Thank you.. have a good gig!
 

Inviato Tue 29 Oct 13 @ 5:41 pm
get cue can't be used in that way. It simply returns the number of the last cue point used/set by the user (I.e: The last triggered with a hot cue button, etc.) It can't be used to determine whether the song has passed a cue point or not. Currently that's not possible natively in VirtualDJ. Custom plugins such as the FreeStyler plugin work by actively monitoring the song position vs cue point positions to determine when to trigger events.

However, as shown in demo videos, VirtualDJ v8 will have 'Points Of Interest', which could be used to set/reset variables as cue points are reached, which could then be mapped to your LED's to turn them on/off appropriately.

In the meantime, in the current v7 version, your only option would be to either use an existing lighting control solution such as the FreeStyler plugin, VenueMagic, etc. or possibly CueMacro, but that's an experimental plugin (Use at own risk.) Or depending on your computer/programming knowledge, you could make your own plugin.
 

Inviato Tue 29 Oct 13 @ 8:03 pm
Thanks for the tip, when is version 8 going to be released to the public? I'd rather wait for the latest and greatest if there will be something nativity to code off of and not write a plug-in. I think my theory holds a lot of wait since it could be a quick and dirty way to get anything midi to play with VDJ. It seems like the only thing that it's missing is a why to check a point of interest like your saying.
 

Inviato Tue 29 Oct 13 @ 11:10 pm
Why wait? v8 will be a free upgrafe to all Pro users regardless of their current version.

Invest now, reap the rewards later...

Roy
 

Inviato Wed 30 Oct 13 @ 5:49 am
There's also the MIDI clock output (ticks based on the CBG beat grid of each song) which could potentially be used to sync a light show to Virtual DJ.

The MIDI clock output works fine on PC but is apparently broken on Mac.
 

Inviato Wed 30 Oct 13 @ 7:24 am
Actually I just can't take "it can't be" done at face value... just my nature. I played around a bit more today with this concept (changed the approach a little) and i can now send a midi note at a specific point in a song using something like:

cue ? nothing : get time & param_greater 5000 & param_smaller 5099 ? on : off

Which basically seems to send a midi note at very close to 5 seconds into playing the song which is good enough for what I'm doing at this point. The next piece of what I'm trying to do would be now finding a way to tag a song with a 1 or 5 or whatever number in the comment field so that if I load a song with that comment my crazy home made midi map picks that up and triggers the midi note at 5 seconds.. idea is I could at least start the right kind of light show for the right kind of music, example tag a ballad with 5 so at the end of a dance set I could load that ballad into the automix section.. push automix and run off to take care of personal business... (dj's that do short sets... do an 8 hour wedding and then tell me it's cheating.. sure.. a 3 hour club gig.. if you use automix that ain't cool but you all day guys like me.. you know how much this feature has improved our lives) ... anyway back to what I'm super close to making a reality in a simple manner till version 8 (which comes out when again) is out..

So I come up with a little VDJ Script like this and it works sweet except if there is nothing in the comment field on a track.. then it crashes.. I guess my question is, is there a safer way to cast my text based number comment to an integer so my code works without crashing VDJ if a comment field is blank or can anyone think of a better way to 'massage' the existing functionality of VDJ7 to accomplish this goal? Make sense?

deck active get loaded_song 'comment' & param_cast 'integer' & param_equal 5 ? on

The last thing I want to do is have a client hand me a usb key with a track and forget to check if there is a comment set..lol..bad news

I know i'm stretching here... but it's fun to think outside the box ;)

 

Inviato Wed 30 Oct 13 @ 10:52 pm
....wait? cause I have access to VDJ7 with the main company I work for, but.. if VDJ 8 actually makes my dream of a sync'd light show on my current light suite a reality then I'm in.. if not.. then I'm unfortunately going to keep the dream alive and find a DJ system that will, sry. $400 CND is a lot of money to invest in a personal project if the tool isn't the exact tool for the job. If this 'point of interest' thing actually does the functionality I need it too, then I'll buy in and start using my copy at all the gigs I do. Right now I just use whatever system the particular company I'm working for that night send out.. they all work the same(ish) with my lighting right now anyway. I'm not a club DJ any more.. just a dad of 6 working weekends to relax...haha

Thanks everyone
 

Inviato Wed 30 Oct 13 @ 11:01 pm
You can already do that with a few different plugins BUT you have to be a registered user with a VDJ FULL PRO license ........

 

Inviato Wed 30 Oct 13 @ 11:07 pm
What plug-ins? Can you tell me exactly? Cause googling did not :)
 

Inviato Thu 31 Oct 13 @ 5:09 am
issue82PRO InfinityMember since 2013
Hi there
I have set up a key map at once, but I have a question.
It is about setting the sampler.
"The flow of sound sampler only while you hold down the Shift FX button"
"To stop the sound of the sampler When you release the Shift FX button"
To make these settings, do you good how you have entered in the key map?
It becomes "When the button is pushed, playback, stop and press again." And by default, but I want to change so bad usability.
Controller I'm using is Beatmix.
How do I set.

Thanks in advance.
Sorry bad English.
 

Inviato Sat 02 Nov 13 @ 1:31 pm
 

Inviato Sat 02 Nov 13 @ 4:27 pm
Hello, I have been trying to figure out if there is a way to setup a keyboard shortcut or button perhaps on my launchpad mini that would place an action point in a track very much like you can set up a button that would create a cue point "on the fly". It would make using the fantastic SBDJ Freestyler plug-in even more awesome and save loads of time programming light cues if it is. It would be fantastic if could program the 30+ cues I have in Freestyler to 30+ different buttons in VDJ and then trigger them in real time / having the actions written to the DB.

Example, this is possible:
<Poi Name="Cue 2" Pos="0.146576" Num="2" />

Is it possible to have a button that would create this without having to open the POI Editor?
<Poi Name="LP1" Pos="1.874701" Num="-1" Type="action" Action="set $fsvalue 255 &amp; set $fscommand 266" />

I am also open to any other suggestion on how to accomplish the goal.

Thank you for your time.
 

Inviato Thu 06 Jul 17 @ 12:00 pm
In the future, please don't open threads from 2011, as most of the info is obsolete. Open a new thread with the issue that is important to you, thank you.
 

Inviato Fri 07 Jul 17 @ 10:05 pm


(Vecchi argomenti e forum sono automaticamente chiusi)