kmatheussen / radium

A graphical music editor. A next generation tracker.
http://users.notam02.no/~kjetism/radium/
GNU General Public License v2.0
834 stars 37 forks source link

No MIDI Note output to VCV Rack VST #1160

Open Teteros opened 5 years ago

Teteros commented 5 years ago

1. Steps to reproduce the problem.

This is only for Note MIDI events, MIDI-CC module in Rack works fine, meaning automation of CC 0-15 seems to works from radium -> rack.

Rack Docs on these modules: https://vcvrack.com/manual/Core.html#midi-1 https://vcvrack.com/manual/Bridge.html

2. Which version of Radium are you using? Do you know if an earlier version has worked?

5.9.10, VCV Rack bridge README hints radium 5.4.9 may have worked before/was tested.

3. If relevant, which operating system did you run Radium on?

LXVST on Arch Linux x64 (radium/rack compiled from source)

GeorgeNs commented 5 years ago

Yes, this is a known issue due to buffer setting. That's sad because rack is awesome open source piece and its plugin manager is so awesome too. Ardour works fine with bridge though. I wish a big radium update for the version 6.-)

kmatheussen commented 5 years ago

I've tried the recipe quickly but didn't understand "match the Port with the VST Port used in Radium (I left it at 1)". I skipped this step, and tried next step, but didn't understand that one either. Is this a bug in Radium? Should I invest time on this ticket?

Teteros commented 5 years ago

Thanks for looking into this, I've made a screencast to demonstrate the issue: (Scope is silent when radium plays notes, Ardour playing notes draws the pulses.)

screencast_link

Is this a bug in Radium?

I think it is because radium reports the plugin does not accept MIDI which isn't true. infobox

Other synths that do play notes in the sequencer report Yes.

The VCVRack bridge readme mentions trouble if the VST host "does not use an audio buffer with a fixed size" but the issue is that radium does not seem to send the note events to the VST bridge at all.

kmatheussen commented 5 years ago

Thank you very much. I see the problem now. I've digged a little bit, and things only get more confusing. First of all, it seems like the vst plugin doesn't report immediately that it is able to receive MIDI. But after taking that into account, it still won't receive MIDI, at least not from the editor. I am, for some reason, able to send MIDI when using the virtual keyboard (the one Radium adds under the native VST gui), which makes no sense.

kmatheussen commented 5 years ago

Oh, and radium should use a fixed size for the audio buffer.

kmatheussen commented 5 years ago

It doesn't work with Radium 5.4.9 either: http://users.notam02.no/~kjetism/radium/demos/linux/radium_64bit_linux-5.4.9-demo.tar.xz

kmatheussen commented 5 years ago

By the way. When Radium reports that the plugin doesn't receive MIDI, it still tries to send MIDI to the plugin when it receives notes. So that's just a display issue. I don't know what's happening here though. Has there been reports of the same problem for hosts that doesn't use fixed buffers?

Teteros commented 5 years ago

I've tested Carla 1.9.13 (2.0-RC3) now and the "fixed-size buffer" option on/off makes no difference at least.

Hm, I would imagine the audio buffers would only be relevant when using the audio input/output module (You can set that to Bridge mode rather than ALSA/JACK/etc to route audio from/to DAW)

It's weird that only MIDI-1 module is misbehaving. MIDI-CC used to transmit automation works well in radium.

kmatheussen commented 5 years ago

It's weird that only MIDI-1 module is misbehaving. MIDI-CC used to transmit automation works well in radium.

I agree. That is really strange. And even stranger is notes from the virtual keyboard works, but not notes from the editor. Both sends events to the same buffer. Since this doesn't work in Traction either, it's probably something in JUCE causing this since both programs use JUCE to host VST plugins.

Teteros commented 5 years ago

For the record the audio input/output on bridge mode works too. Passes sound from JACK as expected. radium_vcvrack_ports

It's just the MIDI-1 module in Bridge mode that seems affected for the time being, yes.

Workaround (at least on Linux) is to use ALSA MIDI in radium and in the MIDI-1 module. It's a bit inconvenient to use on a full JACK setup but works.