[sdiy] MIDI running status implementation - status bytes

Ove Ridé nitro2k01 at gmail.com
Fri Jan 31 15:41:18 CET 2014


On 31 January 2014 14:32, Neil Johnson <neil.johnson71 at gmail.com> wrote:
> Hi,
>
>> I don't see see any ambiguity. The status byte (8x-Ex) always comes
>> with a channel. Any data bytes belong to the last received status.
>> What I've done in a MIDI project I'm working on is to sort of decouple
>> the status and data byte logic. Reception of a status byte (8x-Ex)
>> just sets a "current status" variable (and resets the data byte
>> counter) and does nothing else. Reception of two consecutive data
>> bytes triggers a command execution assuming that the "current status"
>> contains a cupported message and is on a valid channel.
>
> Umm, not all messages have two data bytes.  Program Change and Channel
> AT have only one data byte.

Right. I slipped on my words there. My point with the example was
that, yes, you should update the current status and check the validity
later.

-- 
/Ove

Blog: <http://blog.gg8.se/>

"Here is Evergreen City. Evergreen is the color of green forever."



More information about the Synth-diy mailing list