What to use for converting midi to OSC?

Support & discussion regarding DAWs and MIDI sequencers.

Moderators: MattKingUSA, khz

Post Reply
tavasti
Established Member
Posts: 1123
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Contact:

What to use for converting midi to OSC?

Post 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
Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM
More my music https://audiu.net/users/tawaste

User avatar
noedig
Established Member
Posts: 150
Joined: Wed Feb 12, 2014 4:39 am
Location: South Africa

Re: What to use for converting midi to OSC?

Post 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.

tavasti
Established Member
Posts: 1123
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Contact:

Re: What to use for converting midi to OSC?

Post by tavasti »

In ubuntu package liblo-tools contain oscdump and oscsend for testing and finding what to adjust.
Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM
More my music https://audiu.net/users/tawaste

tavasti
Established Member
Posts: 1123
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Contact:

Re: What to use for converting midi to OSC?

Post 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.
Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM
More my music https://audiu.net/users/tawaste

Post Reply