Grabbing MIDI inputs from FL Piano Roll alongside MidiKeyboardComponent

Hi, I’m a first-time jucer!

I’m trying to integrate the synthesizer I made using FAUST with the MIDI keyboard tutorial at and so far it’s been working wonderfully.

However, when I load the VST into FL Studio or other plug-in hosts, it doesn’t seem to recognize MIDI inputs from the piano roll, only from the MidiKeyboardComponent and my hardware MIDI controllers.

I tried using addMidiInputDeviceCallback() without device identifiers to try and grab all the incoming MIDI messages but to no effect.

How do I go forward with this?

Found a solution!

FAUST has a method called DspFaust::propagateMidi(). Just fill that in with data from processBlock() and you’re golden.