falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.55k stars 144 forks source link

Remote controls work but only partially #1874

Open lanmower opened 3 months ago

lanmower commented 3 months ago

I want to tell carla to remove all plugins, then tell it to load a file, from the cli

So I've managed to get OSC messages over to Carla, such as Carla/1/set_active 1 and 0

But I can't seem to get remove_all_plugins across, I've tried /ctrl/remove_all_plugins /remove_all_plugins and /Carla/remove_all_plugins and /Carla/ctrl/remove_all_plugins amd a few others

I also dont see the rest port listening if I check for listening ports

What would be the simplest way to do it? Currently I use killall and start cala every time, but its much slower than clicking remove all and loading a project

lanmower commented 3 months ago

I've just made a little TCP test because I assumed maybe some controls are unavailable on UDP

const osc = require('osc'); console.log(osc) // TCP Server

let server = new osc.TCPSocketPort({});

server.open('127.0.0.1', 22753); // change to remote host/port

server.on('ready', () => { console.log('ready'); server.send({ address: "/ctrl/register", }); setTimeout(()=>{ server.send({ address: "/ctrl/remove_all_plugins", }); console.log('sent ctrl') }, 2000) });

I'm still not getting any results, I feel like I'm close

lanmower commented 3 months ago

Can we get those messages available on udp? I think that will fix it for me