| Author | - Topic: Virtual DJ Plugin for newbies - How to - |
|---|---|
SDK VirtualDJ v5.x You need 2 or 3 files: * VdjPlugin.h with all the basic functions to "talk" with Virtual DJ (it's what we call the SDK) * Maybe one more .h to add new and specialized functions to the SDK (audio, video, controller,...) [this .h depends of VdjPlugin.h] * .cpp your plugin using functions of the .h and actions of Virtual DJ With these 2 or 3 files, you just need to use the action of the .h SendCommand(What,Deck); to send a real-time string command What (actions=keyboard shortcuts) to VDJ on the deck Deck You need also to understand the keyboard shortcuts as in the plugins it's the same thing And to send command, the functions wsprint() [or sprintf() from the external library stdio.h (use #include) ] Simple example: First plugin to do at the beginning: one slider to move the main crossfader on the skin. It's easy but it enables you to be sure of what you believe to understand If you succeed try other action and buttons Then, you can add the function in the .h : GetInfo(What, &In); to make queries What (from parameters list) from VDJ [see forum or GetInfo.dll to have the list] |
|
If you don't have Microsoft Visual Studio .NET 2003, i advise you Dev-C++, it's a free c++ compilator and you can DOWNLOAD HERE If you want to use Visual C++ 2005 Express, follow these:instructions |
|
When you use Dev-c++, you must first create a new project, choose a name for the project and also choose DLL, or else it won't compile as a .exe which won't work with VDJ. First correct the file vdjdsp2.h to avoid the problem with enum: http://www.virtualdj.com/forums/40237/Plugins/To_write_plugin_with_Dev-C____.html?page=1 Then you must write your plugin and finally compile it by clicking on the logo that has four squares in different colors. Hopefully if you don't have any errors while compiling, you will have a new plugin to use with VirtualDJ |
|
Just some advices about compilators [IN FRENCH]: Si vous cherchez un compilateur C & C++ ou des infos sur tout ce qui se fait, lisez ceci en français: http://c.developpez.com/compilateurs/ |
|
Don't spose we could have a step by step guide to plugin creation. I have access to Visual Studio 2003, but aside from loading the .CPP a .H files I'm completly confuesd. I just want to modify the DAC2 default mapper file then create a .DLL file that suits virtual DJ? I'm not fluent in C++, but do pick this kind of programming up easly if pointed in the right direction. |
|
halo_djk wrote : I have access to Visual Studio 2003 You can so download the plugins SDK Wizard for Visual Studio 2003 that you can find here: http://www.virtualdj.com/support/developers/effects.html |
|
I had a look at that, but does it build mappers for controllers though? Think I really need a VS Tutorial! |
|
adrianh wrote : Hi All In order to use the wizard in VS2005, all you need to do is the following: 1) Install wizard (VdjDspWizard.exe) as per normal. 2) Copy the "vdjdspwizard" directory under ".\Microsoft Visual Studio .NET 2003\Vc7\VCWizards" to your VS2005 installation directory, which by default is ".\Microsoft Visual Studio 8\VC\VCWizards". 3) Copy the "VirtualDJ" directory under ".\Microsoft Visual Studio .NET 2003\Vc7\VCProjects" to your VS2005 installation directory, which by default is ".Microsoft Visual Studio 8\VC\VCProjects". 4) Edit the "vdjdspwizard.vsz" file located in ".\Microsoft Visual Studio 8\VC\VCProjects\VirtualDJ" and replace this line Wizard=VsWizard.VsWizardEngine.7.1 with this line Wizard=VsWizard.VsWizardEngine.8.0 5) Should work (holding thumbs), because mine did! Yes it works |
|
This is a full wizard? I installed that wizard, it asked me one window, IE don't process audio, do process audio, what type of interface, then that was that, right into the virtual studio manual window. Even though i clicked NO AUDIO, and NO INTERFACE, it still gave me buttons, and started dumping debugs in the EFFECTS folder!? Where do you start the wizard from?? |
|
With the VdjDspWizard.exe, the DEBUG mode automatically sends the files in the virtualdj folder. It's better to debug his plugin ;-) (if you enable the debug mode F5,it will launch VirtualDJ in addition) If you change to RELEASE mode (final compilation), the output folder is created locally and not in VirtualDJ folders. |
|
Can someone please be update this information for version 4 and also for us newbies who haven't a clue on how to do this... hold my hand and guide me through the process if you must... I want to learn... so I don't have to bug you guys on what I would love to make for a plug-in.. (mainly video transitions) |
|
Can I make a plugin using delphi? |
|
FJMSoft wrote : Can I make a plugin using delphi? As it uses COM, i guess yes but i don't know how (i don't know delphi) |
|
Must be delphi for v. 4? |
|
Soby wrote : Must be delphi for v. 4? no , can be C+ aslo |
|


