Replies: 7 comments 5 replies
-
This should be a discussion, not a issue ticket. |
Beta Was this translation helpful? Give feedback.
-
So you can use what carla-control does. TCP is for sending critical messages, UDP is for peak meters and other stuff that is okay to drop packets for. you can activate the whole remote control by sending a /register message which starts the whole thing. there is no documentation for all this though, sorry. |
Beta Was this translation helpful? Give feedback.
-
This would be an amazing feature! My end-goal is to be able to script loops/songs that draw from SFZ and other instruments, say in python or some home-grown DSL. Of course I don't want to deal with all the low-level audio sampling and processing, so my hope is that I can script around Carla. Specifically I'm hoping for an API that lets me:
Does the HTTP API support these today? I'd be happy to dig through code and help document this if you can point me in the right direction. |
Beta Was this translation helpful? Give feedback.
-
It seems like there's something running at this line seems to suggest that the port is actually hard-coded to |
Beta Was this translation helpful? Give feedback.
-
OK I've managed to connect via OSC. I'm seeing some output in Carla's logs, but haven't managed to send a valid message yet 😓 Best I've gotten is this python code: # Import needed modules from osc4py3
from osc4py3.as_eventloop import *
from osc4py3 import oscbuildparse
import time
# Start the system.
osc_startup()
# Make client channels to send packets.
osc_udp_client("127.0.0.1", 22752, "aclientname")
# Build a simple message and send it.
msg = oscbuildparse.OSCMessage("/Carla/1/set_volume", ",sif", ["text", 672, 0])
osc_send(msg, "aclientname")
# Periodically call osc4py3 processing method in your event loop.
finished = False
while not finished:
# You can send OSC messages from your event loop too…
# …
print("processing")
osc_process()
print("processed")
# …
# Properly close the system.
osc_terminate() Carla logs say
|
Beta Was this translation helpful? Give feedback.
-
I should also note: Valid OSC endpoints seem to be here Which is a subset of what's listed here (I'd found that mentioned on a previous issue). There's a much larger set of REST endpoints listed here (C++) and here (python), but I can't figure out how to connect to that server. |
Beta Was this translation helpful? Give feedback.
-
@falkTX would love your advice on how to proceed--I'm a bit stuck at this point. |
Beta Was this translation helpful? Give feedback.
-
I can control carla fine with command like:
oscsend localhost 22752 /Carla/10/set_volume f 0
But I'd like to be able to query the parameters for scripting.
If there is another approach (maybe some midi tool?) to query the parameter from the command line, that would work.
Beta Was this translation helpful? Give feedback.
All reactions