Skip to content

Using real Time MIDI API with own MIDI sequencers

Vitaly Novichkov edited this page Jul 3, 2018 · 1 revision

Since you have initialized the library by using adl_init() call and you have selected a bank or loaded any custom, the library is ready for real-time MIDI processing.

Using library in real-time is very easy: you will have to use adl_rt_* functions family to forward received MIDI events into the library, and call the adl_generate() or adl_generateFormat() to generate the output between of event rows. (One event row is a group of MIDI events are has zero delta (delay) between each other).

Note 1: The adl_generate() or adl_generateFormat() functions are receiving size value in absolute samples count, not in a count of frames (one stereo frame is two samples: one sample per channel).

Clone this wiki locally