Plugin Audio Doesn't Record in DAW

Hi all,

I created a sampler plugin that essentially works as an instrument. When I use the plugin in Logic Pro, and play a sound in the plugin by pressing something on the virtual keyboard (left), the notes do not register in Logic when I am recording. However, when I play the notes using Logic’s musical typing feature (right), the notes record perfectly fine when I record and play something. Anybody know how I can get the DAW to recognize the notes being played from the virtual keyboard on the plugin itself? Thanks

You’d need to do something like route the midi output from the plugin back to Logic. This assumes you’re already stuffing the MidiBuffer in processBlock with the info from the keyboard.