Operator SDK
Build MIDI processing and UI modes for the Operator device
Loading...
Searching...
No Matches
OpMidiMessage Struct Reference

A single MIDI message passed to a mode's process function. More...

#include <mode_api.h>

Public Attributes

uint8_t status
 Status byte: message type in the high nibble, channel in the low nibble.
uint8_t data1
 First data byte (for example note number or controller).
uint8_t data2
 Second data byte (for example velocity or value).
uint8_t port
 Input this message arrived on.
uint8_t length
 Valid byte count, 1 to 3.

Detailed Description

A single MIDI message passed to a mode's process function.

A fixed C layout: a status byte, two data bytes, the source port, and a valid-length count.

Member Data Documentation

◆ port

uint8_t OpMidiMessage::port

Input this message arrived on.

0..3 are the physical inputs, 4 is USB. A generated message arrived on no input and carries 0xFF.

◆ status

uint8_t OpMidiMessage::status

Status byte: message type in the high nibble, channel in the low nibble.

Clearing it to 0 takes the message out of the batch.


The documentation for this struct was generated from the following file: