I'm making a plugin that will generate random midi cc messages, values within a specific range (max 0-127),
and also with a randomness in time (if the user want, 20ms-2000ms).
I'm using DISTRHO Plugin Framework (DPF)
I have no input (midi or audio) and I don't know when the host will call run() I think I need a loop but on what frames should it be based on?
I want to control the time in some way. I have this function for midi output below, but I can't figure it out by myself
Code: Select all
bool writeMidiEvent(const MidiEvent& midiEvent) noexcept;
Code: Select all
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1
and I need you help to get started
Thanks