View Single Post
Old 12-28-2020, 06:40 AM   #223
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

When analyzing the working of Midi events in reaper itself it should be considered, how Midi events are "timed" within Reaper - but not when send out to or received by hardware and not necessarily when handled by any plugins.

All Midi events are associated with sample blocks and denoted by an offset in samples. So effectively they are associated with a single sample. If multiple midi events are associated with the same sample their precedence is random, (In fact I did see that their sequence can be swapped).

Hence a discussion if first sending or receiving MSB or LSB is futile for Midi events that are sent by a JSFX (in the same @block call and with the same offset). You need to be aware of any order, but you don't need any special handling if both are received in that way.

OTOH, you can't be sure that some previous plugin or hardware creates the events as "singles" for more efficiency. Or if there is a delay of any kind that produces a pair with different offset or even in different blocks.

BTW you might consider to create a sequence order by incrementing the offset, but here I don't know what will happen in the (rare) case that the offset is greater that the sample block size.

-Michael

Last edited by mschnell; 02-08-2021 at 11:45 PM.
mschnell is offline   Reply With Quote