Page 1 of 1

What to use for converting midi to OSC?

Posted: Tue May 28, 2019 11:09 am
by tavasti
I'd like to use midi controller to adjust various things in DAW (Mixbus). Sometimes I want to adjust plugins (at least zynaddsubfx and surge), sometimes Mixbus controls itself. Because amount of possible knobs is higher that number of knobs in midi controller (9 sliders + 8 pots), mappings need to be changed pretty often. Therefor mapping all one by one is not practical.

So to make things fast to change, I want to use some midi 2 osc gateway program. Program should have text config, so that I can edit that config, and start gateway with suitable config. And when synth sound is adjusted to be what I want, stop gateway, and start with different config, doing mixing. And for next project, I change strip id's and plugin id's, and everything works again for same plugins.

Now I would like to hear suggestions for:
- OSC client for getting osc strings: What is strip id, what is plugin id, what are controls there?
- Suitable midi2osc gateway program

Re: What to use for converting midi to OSC?

Posted: Wed May 29, 2019 6:53 am
by noedig
You could use Python with liblo for OSC and Mididings for MIDI support.
For example, the following script accepts MIDI commands and then signals Ardour via OSC to switch to timeline markers and start/stop playback.
https://github.com/noedigcode/ArdourSongSwitcher

I assume this will work with Mixbus also since it is based on Ardour.

Re: What to use for converting midi to OSC?

Posted: Wed May 29, 2019 12:14 pm
by tavasti
In ubuntu package liblo-tools contain oscdump and oscsend for testing and finding what to adjust.

Re: What to use for converting midi to OSC?

Posted: Wed Feb 05, 2020 2:41 pm
by tavasti
noedig wrote:You could use Python with liblo for OSC and Mididings for MIDI support.
For example, the following script accepts MIDI commands and then signals Ardour via OSC to switch to timeline markers and start/stop playback.
https://github.com/noedigcode/ArdourSongSwitcher

I assume this will work with Mixbus also since it is based on Ardour.
Mididings would contain also osc support, so it would be possible to use it for conversion. However, conversions does not seem to be that simple. In Mixbus, EQ and Compressor are plugins, and for setting parameters for plugins, they are referred with numbers. And when EQ is after other plugins, it varies on what location it is. Therefore it would need querying data from mixbus to find where plugin is. And at least according to docs, mididings does not support such.