playing with the browser JS console for modDuo interface (opening 192.168.51.1) to send my own websocket command.
But it will not work if I try to replicate the process from that console, or, and it’s what I really would like to do, from a new window.
for example, I’d try to open a socket: ds = new WebSocket(“ws://192.168.51.1/websocket”); but get a 403 if the not in the page. If I’m in the page I can: do a ds.send(“param_set /graph/Gain/:bypass 0”), using the existing ds object, and that will work (although the not being reflected on the web page).
Ideally I’d like to be able to create a JS client to the mod-duo, with two use cases in mind:
- be able to program a tactile interface taylored for some music: touch my tablet screen and automatically change a whole set of settings which cannot be done without many pedals.
- be able to program dynamic change of setting, like I could program a fade out on volume with different lengths and decide what happens when through a JS interface.
I like the current interface, but I think it’s more oriented to help creation / architecture of the pedalboard, not the live playing where you want to tweak quickly. As I play a lot with loop, it’s true that I can get my hand free easily.
One work around would be to build a TamperMonkey, still I was wondering if there was a more direct way.
Any information on the possibility to do that, maybe on how opening a valid websocket outside of the site.