Anyone have experience writing/testing VST MIDI generators?

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

I'm trying to make a plugin to produce MIDI events to send to an external synth. I'm using JUCE and following generally the tutorial for a MIDI note filter.

My DAW is Reaper 64 on Mac, and it's not clear to me how I'm supposed to configure it to either send its MIDI to an instrument on another track, or to the external hardware MIDI.

Anyone have any experience doing this?
Image
Don't do it my way.

Post

You use sends to accomplish this in Reaper. (Usually named "ROUT", route.)

MIDI output has only a single channel (in VST) per plug-in and the best you can do is use MIDI's channels (1 - 16) and split this using external processing in the host.

Otherwise though routing of all tracks whether audio or MIDI is 100% up to the host.

Be careful with note-on and note-off: Not all plug-ins can handle both on the same "tick" (sample) even if they're in the proper order. This is because plug-ins that attempt to sort events might not use a sort that maintains the order for equal values.

So in general it is safer to delay all on/off events to ensure they happen on different "ticks" rather than just hoping for the best.

This can apply to other event types (all notes off, all sound off, etc) but it's mostly a problem with note-on and note-off for the same note.
Free plug-ins for Windows, MacOS and Linux. Xhip Synthesizer v8.0 and Xhip Effects Bundle v6.7.
The coder's credo: We believe our work is neither clever nor difficult; it is done because we thought it would be easy.
Work less; get more done.

Post Reply

Return to “DSP and Plugin Development”