Carla scripting, OSC, something - programmatic control

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: MattKingUSA, khz

Post Reply
Chuckk
Posts: 1
Joined: Wed Mar 06, 2019 7:53 pm

Carla scripting, OSC, something - programmatic control

Post by Chuckk »

Hi!
KXStudio is the bomb. Cadence saved me from ditching Linux when PulseAudio was somehow installed on my system. I'll be forever grateful for that!

My question is, I think, about Carla. I am looking for a solution to open a plugin, automatically clone it several times, and have all of the clones' parameters linked, but to send them notes and pitch bend on different channels. Ideally, this could itself happen inside a plugin.
I've tried everything. Csound has dropped VST, thanks to Steinberg aggression, Pure Data's VST support is old and shaky, I can find nothing but coding a host-plugin from the ground up. I'm not above doing that, but if there's a way to make Carla do this, I'd get from A to B faster. Or DISTRHO?

The idea is that this will all be invisible to the user. The user opens this plugin, selects another plugin to load into it, and from there interacts with this plugin as though it were just one. Internally, every automation, CC and UI interaction is propagated to all clones, and pitch bends and notes are distributed among them, to allow for microtonality without having to load the same plugin many times and make all parameter changes manually. Also, the user's software (likely my microtonal sequencer) can send all of those pitch bend and note messages on one or two MIDI channels.

So I see that Carla can be a VST plugin that loads VST plugins, but is there somewhere an interface to programmatically read and control parameters, as well as create and destroy clones of a plugin?
I know, it's open source; but alas, I am not licensed to use the VST 2.4 SDK...

Thanks for any and all tips!
Chuckk
User avatar
noedig
Established Member
Posts: 233
Joined: Wed Feb 12, 2014 4:39 am
Location: South Africa
Has thanked: 9 times
Been thanked: 52 times

Re: Carla scripting, OSC, something - programmatic control

Post by noedig »

Sounds like you want to fake MPE (MIDI Polyphonic Expression), where each note can have its own pitchbend independent from other notes?

Carla's OSC is limited - see the available commands in Help -> About -> OSC.

Carla has a programming API, you could do some digging in it. There should be some info about it lying around on the forum, like viewtopic.php?f=44&t=12672.

Mididings or similar can be used to separate notes and pitchbends to different channels/ports to send to different plugins, if only to get a proof of concept going.
Chuckk wrote: Also, the user's software (likely my microtonal sequencer) can send all of those pitch bend and note messages on one or two MIDI channels
How will the pitchbend be differentiated per note if only two channels are used? How will the user specify different pitchbend for each note if all are on the same channel?
User avatar
milkii
Established Member
Posts: 477
Joined: Tue Jan 05, 2016 9:08 am
Location: Edinburgh
Has thanked: 92 times
Been thanked: 91 times
Contact:

Re: Carla scripting, OSC, something - programmatic control

Post by milkii »

from the chat in #lad, falkTX has been working on OSC control of Carla, so expect some changes at some point

they/them ta / libreav.org / wiki.thingsandstuff.org/Audio and related pages / gh

Post Reply