Audio&MIDI plugin

hello everybody, I would like to know if an AudioPlugIn can somehow also send out MIDI data. I am trying to build a MIDI output base on the frequency of the notes received by the Audio plugin output.
I would like to know if this is something possible.
best.
d