Hello there,
I'm currently trying to develop a simple plugin that should send out Midi notes when a parameter is changed.
Currently I've assigned that parameter to a button to be able to toggle it like so:
effect 'plugin' button 2 1
While that works, things will get messy once I introduce more buttons. It would feel much more natural if I could address these buttons by their name, or the name of the corresponding parameter, something like:
effect 'plugin' break
Where break would be the param the plugin is listening on through "onParameter".
I've seen effect_command but could not find any more information on how to use that? Which commands would I be sending with it?
Is it possible to directly call a plugins parameters by VDJScript?
Thanks in advance,
Marco
I'm currently trying to develop a simple plugin that should send out Midi notes when a parameter is changed.
Currently I've assigned that parameter to a button to be able to toggle it like so:
effect 'plugin' button 2 1
While that works, things will get messy once I introduce more buttons. It would feel much more natural if I could address these buttons by their name, or the name of the corresponding parameter, something like:
effect 'plugin' break
Where break would be the param the plugin is listening on through "onParameter".
I've seen effect_command but could not find any more information on how to use that? Which commands would I be sending with it?
Is it possible to directly call a plugins parameters by VDJScript?
Thanks in advance,
Marco
geposted Sat 01 Aug 15 @ 1:59 pm
No; you can get the name from the number but you can't address them by name.
You could enumerate and match manually.
You could enumerate and match manually.
geposted Sat 01 Aug 15 @ 4:41 pm
Hi SBDJ,
thanks for the response!
May I ask how you are doing it within your Freestyler plugin?
http://www.virtualdj.com/forums/137181/VirtualDJ_Plugins/SBDJ_FreeStyler.html?page=1
How do you detect changes to these variables?
If I could do that it would be my next best option as I could name the variables instead of the buttons.
Thanks again,
Marco
thanks for the response!
May I ask how you are doing it within your Freestyler plugin?
http://www.virtualdj.com/forums/137181/VirtualDJ_Plugins/SBDJ_FreeStyler.html?page=1
How do you detect changes to these variables?
If I could do that it would be my next best option as I could name the variables instead of the buttons.
Thanks again,
Marco
geposted Sat 01 Aug 15 @ 5:49 pm
Detection of changes in variable value is done by polling continuously :)
geposted Sat 01 Aug 15 @ 6:40 pm
Ahh.. and I thought onParameter would detect that. Oh well.
How often do you check for changes? Every 1/2s?
How often do you check for changes? Every 1/2s?
geposted Sun 02 Aug 15 @ 6:23 am
It depends on the purpose, whatever works for your functionality. For the kind of plugin like the freestyler plugin, maybe 200 times a second or so lol
geposted Sun 02 Aug 15 @ 9:35 am
Okay fair enough, I'll do my testing. Thanks alot! :)
/edit:
Btw, do you have any info on how to use effect_command?
/edit:
Btw, do you have any info on how to use effect_command?
geposted Sun 02 Aug 15 @ 10:48 am
effect_command relates to a parameter declared as VDJPARAM_COMMAND. The parameter you pass to the script is passed to the variable specified in DeclareParameter.
Few effects implement it tbh.
Few effects implement it tbh.
geposted Sun 02 Aug 15 @ 6:26 pm
Ah okay, thanks! I'm curious: are there any documentations and guides on plugin development for pro users that are invisible for regular users?
I know about the SDK pages but they seem to be incomplete here and there?
I know about the SDK pages but they seem to be incomplete here and there?
geposted Mon 03 Aug 15 @ 2:48 am
No; the best documentation are the SDK headers themselves :)
geposted Mon 03 Aug 15 @ 9:00 am