I am working on a plugin which controls other plugins in the effect chain of a DAW (in my case REAPER) by MIDI CC messages. (The intention is to create a complex pattern within a sound which is generated by a (non-cabbage) plugin.) I have previously written a plugin which sucessfully produces note-on (0x90) and note-off (0x80) messages using the csound opcode ‘midiout’, https://forum.cabbageaudio.com/t/anykey-a-midi-helper/3443. Now I tried the same to generate a CC (0xb0) but that does not work.
I wrote a small test example for this and attach it together with a REAPER file which includes JS MIDI Logger to show what happens. The test includes a couple of midiout commands which should create different kinds of note-on, note-off, CC, program change events repeatedly when the instrument is played. But in the log only note-on and note-off events appear.
Now I am stuck because I don’t have an idea what is the culprit. Although I post this here, I think it is least likely Cabbage. Could it be that something is wrong with csound’s midiout? I also don’t think this is likely. I am always insecure with the command line options of csound, especially ‘-Q0’. Finally, it could be that REAPER does not handle this properly. Maybe someone can check with another DAW?
MIDI-CC-problem,.zip (3.8 MB)