Skip to content

Main content

MIDI Status Byte Channel Split

Split a MIDI 1.0 channel status byte into message type nibble, zero-based channel and required data byte count; excludes system statuses.

Loading tool…

Description

Split a MIDI 1.0 channel status byte into message type nibble, zero-based channel and required data byte count; excludes system statuses.

MIDI 1.0 channel messages use a status byte identifying a message type and a channel, followed by one or two seven-bit data bytes. This family uses channel indexes 0–15 and raw program values 0–127. Raw message bytes do not include musical timing, instrument state or a MIDI file container.1

Split a MIDI 1.0 channel status byte into message type nibble, zero-based channel and required data byte count; excludes system statuses.

When to use this tool

Use this tool to split a MIDI 1.0 channel status byte into message type nibble, zero-based channel and required data byte count; excludes system statuses.

How to use the tool and how it works

  1. Enter status using the field definitions below.
  2. Run the operation. Correct input errors before interpreting an output.
  3. Read result.type, result.channel, result.dataBytes. Use the ordering, boundary rules and absence conditions described below.

Require a channel status byte from 128 through 239. Split its high nibble into type and low nibble into channel, and return its required data-byte count.2

Input fieldMeaning and unitsAccepted input
statusMIDI 1.0 channel status byte, 128–239.A finite safe integer within the operation’s stated bounds.
Output fieldInterpretation
resultObject containing the named fields below.
result.typeChannel status high nibble, an integer 8–14.
result.channelZero-based channel index 0–15.
result.dataBytesRequired data-byte count for the supplied channel status.
json
{
  "input": {
    "status": 146
  },
  "output": {
    "result": {
      "type": 9,
      "channel": 2,
      "dataBytes": 2
    }
  }
}

Limitations and assumptions

  • Channels are zero-based 0–15; system status bytes are outside this tool’s scope.
  • Message data bytes must be integers 0–127 and channel statuses 128–239. Channels are zero-based; this family does not implement MIDI 2.0 UMP, audio synthesis or a complete timed MIDI file.
  • Every declared top-level input field is required and unexpected fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
  • Numeric outputs must be finite and no larger in absolute magnitude than the safe-integer limit; operations returning exact large integers use decimal text. Positions are zero-based and spans end exclusively unless the operation explicitly states a different convention.

Alternative or Complementary methods

Separate channel-message encoding from timing, running status and device interpretation. Use a MIDI sequencer or full file/stream parser when those additional layers matter.

References

  1. Summary of MIDI 1.0 Messages — The MIDI Association

  2. Tool behavior and example: MIDI Status Byte Channel Split — tool.io

Similar or alternative tools

  • MIDI Status Byte Channel Join

    Join MIDI 1.0 channel-message type 8–14 with zero-based channel 0–15; system message types are rejected.

  • MIDI Channel Message Byte Count

    Return required MIDI 1.0 channel-message byte counts from an explicit status, excluding running-status omission and system messages.