There are already two threads that might be interesting for you:
- Sending midi CCs in VST3: Sending midi CCs in VST3 - VST 3 SDK - Steinberg Forums
- Audio-IN, MIDI-OUT: Audio-IN, MIDI-OUT - VST 3 SDK - Steinberg Forums
There are already two threads that might be interesting for you: