Jump to content
Gibson Brands Forums
Sign in to follow this  
Raf VDM

Testing MIDI scripts

Recommended Posts

I'm a newbie Deckadance user.

As the Numark DJ2Go script on this forum does not comply to my needs, I am building one from scratch.

When ready, of course I will share.

 

It is quite cumbersome when testing Midi Scripts.

 

1.

To compile and load a modified version, one has to


  •  

  • open Settings,

  • select Midi Control,

  • change the Control Surface to any other mapping,

  • change the Control Surface back to the right mapping.

     

This really adds up in a lot of unnecessary lost time and frustration, especially to someone like me who is not that experienced in scripting!

 

Isn't there some trick to recompile and load the modified current mapping in almost one click or button press?

2.

Also, sometimes one little error results in dozens of error messages that can only be clicked away one by one.

This too adds up in a lot of unnecessary lost time and frustration!

 

Isn' there a way to exit immediately (or continu while not showing the remaining messages)?

Thank you,

Raf

Share this post


Link to post
Share on other sites

I'm a newbie Deckadance user.

As the Numark DJ2Go script on this forum does not comply to my needs, I am building one from scratch.

When ready, of course I will share.

 

It is quite cumbersome when testing Midi Scripts.

 

1.

To compile and load a modified version, one has to


  •  

  • open Settings,

  • select Midi Control,

  • change the Control Surface to any other mapping,

  • change the Control Surface back to the right mapping.

     

This really adds up in a lot of unnecessary lost time and frustration, especially to someone like me who is not that experienced in scripting!

 

Isn't there some trick to recompile and load the modified current mapping in almost one click or button press?

2.

Also, sometimes one little error results in dozens of error messages that can only be clicked away one by one.

This too adds up in a lot of unnecessary lost time and frustration!

 

Isn' there a way to exit immediately (or continu while not showing the remaining messages)?

Thank you,

Raf

 

Hay Raf,

 

As the original developer of the DJ2GO script, let me know what you need and I might be able to throw together a custom script for you.

 

As far as some of the little annoyances of scripting, there really is no way about avoiding them (Believe me I have tried). The easiest solution I found was to have the destination folder open, have deckadance set up to automatically search for the script upon loading, and have a second copy of the script on your desktop that your working from, and just copy and paste the script back and forth. You still need to prelaunch deckadance every time a change is made to the script but it did seem to improve workflow. If your writing the script using a tool like notepad++ or any of the versions of Microsoft's Visual Studio, the little messages can actually be helpful because they will tell you exactly what line of code the error occurred in.

 

 

Also I did work on a streamlined version of the script last night that I have yet to upload. Let me know what I can do to help.

Share this post


Link to post
Share on other sites

Thank you, TheMoroney.

 

I use notepad++ and the messages help, of course.

It's just that when one knows a } is missing, there is no use in reading or clicking away the 88 messages that result from that silly mistake, right? :-)

So we have to do with what we've got.

 

I'll keep in mind your workflow.

At this moment I try to keep the Settings panel open as much as possible, the controller remains functional at that moment, that also helps.

 

I'm afraid that my current script is so different from yours, that there is little use in me telling you what I need.

Please understand me well, I do not dislike your script, it's just that I turned over in a totally different thinking path that covers my way of working.

My solution will certainly not be a replacement of yours, merely an alternative for certain users (or only me).

 

If I tumble in some issues I can not resolve, I am glad that you are willing to help me.

 

Thank you again,

Raf

Share this post


Link to post
Share on other sites

Thank you, TheMoroney.

 

I use notepad++ and the messages help, of course.

It's just that when one knows a } is missing, there is no use in reading or clicking away the 88 messages that result from that silly mistake, right? :-)

So we have to do with what we've got.

 

I'll keep in mind your workflow.

At this moment I try to keep the Settings panel open as much as possible, the controller remains functional at that moment, that also helps.

 

I'm afraid that my current script is so different from yours, that there is little use in me telling you what I need.

Please understand me well, I do not dislike your script, it's just that I turned over in a totally different thinking path that covers my way of working.

My solution will certainly not be a replacement of yours, merely an alternative for certain users (or only me).

 

If I tumble in some issues I can not resolve, I am glad that you are willing to help me.

 

Thank you again,

Raf

 

No worries. I did just get the modified and updated script online. Let me know if it is similar to your style of coding and if it flows a bit better as far as code understanding (from one script writer to another).

Share this post


Link to post
Share on other sites

We should improve the script creation workflow, what happens is that only a couple of persons have been interested in creating scripts since the release of this feature, so that, improving this area has been always low priority. Said this, I have been thinking to add a proper MIDI script editor with a better error handling instead of using an external one (...notepad or full IDE).

  • Upvote 1

Share this post


Link to post
Share on other sites

Luis,

 

I can understand that only a few people are interested in creating scripts.

And for those who do, I'm sure they will never be occupied in doing so full time.

Take me for an example ... I'm currently investing quite some time in my scripts, but as soon as they are finished, I will not easily start over again, unless I buy myself a new controller.

So why invest a lot of time in a proper script editor (unless for the satisfaction)?

 

Just an idea ...

Can't you allow DD to run with an optional argument, something like "Developer Mode".

When the argument is set, DD could continuously check the active script files.

Script developers remain free to use the editor they prefer and when the script is saved, DD's "Developer Mode" detects the change and compiles and loads the new version automatically.

 

If it bothers anyone that in this way scripts are edited in the standard folder, an alternative folder could also be passed through argument.

But it does not bother me.

Share this post


Link to post
Share on other sites

So why invest a lot of time in a proper script editor (unless for the satisfaction)?

Basically for myself, but I'm not creating scripts lately, so that, what you said makes sense.

 

Just an idea ...

It's interesting. Another one would be to create a "secret" keyboard shortcut that once executed would reload all the scripts in use (i.e.: "CTRL + S").

Share this post


Link to post
Share on other sites

The "secret" shortcut on 2.73 works great.

And I still think that there is no need for even better solutions.

This is already a very big improvement for script writers.

 

Thank you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...