Midi controller message not received by plugin


#1

I have a weird problem in my host.

I can send note on and off messages to my loaded plugin (which is also developed by me). 

Like, 

    MidiMessage mm = MidiMessage::noteOn(1, 50, (uint8)127);

    mm.setTimeStamp(Time::getMillisecondCounterHiRes() * 0.001);

    c.addMessageToQueue(mm);

 

But if I try to send a controller message, like

    MidiMessage mm = MidiMessage(0xb0, 50, 0x7f);

    mm.setTimeStamp(Time::getMillisecondCounterHiRes() * 0.001);

    c.addMessageToQueue(mm);

or

    MidiMessage mm = MidiMessage::controllerEvent(1, 50, 120);

    mm.setTimeStamp(Time::getMillisecondCounterHiRes() * 0.001);

    c.addMessageToQueue(mm);

The plugin side cannot receive anything.

 

Any thought?


#2

Is it a VST3?

The VST3 spec prevents actual midi messages being passed to the plugin, it can only send notes.