快速登录:  

Forum: General Discussion

话题: Scripting help: Use midi and vdj to remote control via html external dsp input

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

I am trying to find out if VDJ could be used to control an external parameter on a dsp asio line in. The reason I am wondering it is my understanding that a midi device can only be assigned to 1 app at a time same as an asio device. I have a dsp/encoder I use with VDJ that connects the audio by virtual cable and runs on my asio card. The dsp can also take a direct asio line input such as an analog mixer or a mic and preamp which is how I currently use it now and everything is working fine.
I am using a korg nanokontrol studio to control all the parameters of VDJ that I use and its working perfectly and I have several buttons and a few sliders that are not being used.

I have tried AHK and a few other things and basically since the korg device is being used with VDJ I wasnt able to assign it to anything else at the same time. SO if I could make a vdj script do this then my problems are solved.

What I would like to do is use one of the extra sliders and a button to control the level of the dsp asio input or mute on /off completely.
The real question is can VDJ script be used to control an external event?

Here is the scripting for the DSP remote and I removed all the semicolons following http to make these links inactive

/hd1/misc/mix_level_asio=="100"

ASIO: 0 dB

Range: 0 to 115

Instance: HD Processor
Core: Misc
Category: I/O

Get Value Link: http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio%3f
Get Value Link (Query): http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio?get
Set Value Link: http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio=100
Set Value (Query with Parameter): http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio?set=100

Decrement Value Link: http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio-=1
Increment Value Link: http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio+=1

Set unless already higher: http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio<=100
Set unless already lower: http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio>=100

Reload: http //127.0.0.1:8282/parameter/hd1/misc/mix_level_asio
List Parameters: http //127.0.0.1:8282/listparams

If i could use any of my extra midi sliders via VDJ as a gain control or even a simple button to mute on /off that would be wonderful. If anyone has any thoughts or ides on this please let me know and thanks in advance




 

发表时间 Thu 21 Jan 21 @ 10:47 pm
If your DSP accepts MIDI then you can pass MIDI commands to it.
The way you can do that varies depending on how VirtualDJ "sees" the DSP.
But it's doable.

As for controlling the DSP via HTTP, currently that's not possible, at least with the native tools of the program.
 

发表时间 Fri 22 Jan 21 @ 1:10 pm
Thanks for the reply and sorry I haven't been home much lately to check things. That's the whole problem. The DSP is set up to be used via remote transmitter site via IP or in the same machine locally. There's no midi, only html, and I am not well versed enough to get up to speed on this as fast as I need to.

All I am trying to do is access and control that line input either via slider or button mute on/off and right now id settle for a keyboard command as long as the keyboard could stay focused on it at all times no matter what the mouse is doing or even some other outboard device.

There is a slider in the dsp interface but its not easy to access and then your trying to run a narrow slide with a mouse click and hold like a mic gain slider and to do that you have to have eyes on that screen and i need them elsewhere. The layout isn't practical for on the fly changes. I had a thing I found that did let me control it with a key command but as soon as you touch the mouse its lost focus and gone. I need something that's going to stay and work that control no matter what anything else in the pc is doing. The midi controller is the perfect answer if I could just make it work.

Everything else is working as it should be. The only thing that even tried to work kept giving me errors cause VDJ is assigned to the midi controller already. If i re-assigned the controller directly to it, it would see the dsp but wouldnt do anything like it was missing something but it wasnt made for html either. Im sure 3 lines of script would fix that.

There is a pass thru open source re-mapper similar to autohotkey thats made for midi thats supposed to be able to let multiple devices access the same controller but it don't have a html plug in ready made. I contacted the dev for it about a script but never got a response. This is why I thought that if I could find a simple VDJ script to go to html than that would solve the issue. I guess what i need is something written custom for this setup but then im completely lost as to where or how to start.

The thing is, I can see the extra slides and buttons working in the Korg mapping software even when its assigned to VDJ so I know they are working so I am sure there's a way to custom assign it and the Korg mapping software works constantly even while running VDJ I can see every control working on the screen

I'm batting my head against the wall on this one. I know hardware extremely well but not code.
 

发表时间 Tue 26 Jan 21 @ 4:52 pm
Unfortunately VirtualDJ does not output commands via html
Someone with some programming knowledge could perhaps write a plugin that will control the given DSP effect, but without access on the DSP and without the DSP being enough popular, I doubt that he will spend the time needed.
The company that produces the DSP would be more likely to be able to do that though if they don't want to introduce MIDI control.
VirtualDJ has an open SDK that they can use to make a plugin that will control their DSP
https://www.virtualdj.com/wiki/Developers.html
 

发表时间 Tue 26 Jan 21 @ 5:08 pm
I was editing before I saw your last post. Thanks for all your help I do appreciate it. I had thought there should be an easier way to do this and hoped a few lines of code would fix it all and I'm sure there's a way somehow with or without VDJ.

If any coders out there want a project please PM me. I need to get this solved. I know there are things I cant say openly in the forum and I am not trying to draw any fire here so contact me directly. Thanks
 

发表时间 Tue 26 Jan 21 @ 5:20 pm
NicotuxHome userMember since 2014
Just an idea: maybe a wrapper would be more easy web -> midi with a pseudo controller as Freestyler midi plugin and a web midi api such as https://jazz-soft.net/
 

发表时间 Tue 26 Jan 21 @ 5:45 pm
Thanks Nicotux. I had a look at that today and when I went to the documentation to find out what it was about after the 3rd sentence they showed a box of CSS code so I was done right there. It don't say what kind of plugin it is or what its for or how to use it. I installed it hoping there may be some kind of GUI but nothing and nothing I did seem to change anything, most likely its looking for a DAW or a instrument interface. It didnt show up in the Korg editor or in VDJ anyplace so I removed it.

So I am still exactly where I started. The only reason I knew it was CSS code is because it said so. I know absolutely nothing about any kind of code at all but have been able to make a few things work in VDJ and I know in the above script if I change the variable its looking for and refresh the page then it changes the level. How it does it I have no clue at all. I have also tried screen capture apps on the dsp interface itself and for whatever reason nothing works. This is why I'd like to hire someone to do this.

I do know the creator of the DSP from my days working broadcast engineering on analog systems. I sent him an email about a year ago asking about a midi interface for it and he mentioned something called eventghost but they have no midi plugins for it but he says it would work with that and a simple js script. But he writes code so whats simple to him is out of reach for someone that don't know anything about it. Ive chased for a solution for this for nearly a year and have gotten nowhere and now I have a deadline to try and make this work. Either way he sees no real need to add midi scripting to his DSP but said it would be easy to do. To him I suppose it would be.

Thanks again for your suggestion and I do appreciate your help. I wish its webpage gave more of a description of what it is and what it does.
 

发表时间 Thu 28 Jan 21 @ 6:48 pm
NicotuxHome userMember since 2014
In fact JAZZ only exposes MIDI in and/or MIDI out ports usable in any browser script
 

发表时间 Thu 28 Jan 21 @ 8:14 pm


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