Represents a Function Block (FB) or Group Terminal Block (GTB). More...
Public Member Functions | |
Block ()=default | |
Block | withName (const String &x) const |
Block | withFirstGroup (uint8_t x) const |
Block | withNumGroups (uint8_t x) const |
Block | withMaxSysex8Streams (uint8_t x) const |
Block | withEnabled (bool x=true) const |
Block | withUiHint (BlockUiHint x) const |
Block | withMIDI1ProxyKind (BlockMIDI1ProxyKind x) const |
Block | withDirection (BlockDirection x) const |
String | getName () const |
The name of the block, if any. | |
BlockInfo | getInfo () const |
All info relating to this block. | |
uint8_t | getFirstGroup () const |
In the range 0x0 to 0xF inclusive. | |
uint8_t | getNumGroups () const |
In the range 0x01 to 0x10 inclusive. | |
uint8_t | getMaxSysex8Streams () const |
The number of simultaneous Sysex8 streams that are supported. | |
BlockUiHint | getUiHint () const |
Some blocks may support bidirectional communication (e.g. | |
BlockMIDI1ProxyKind | getMIDI1ProxyKind () const |
If this block is a proxy for a MIDI 1.0 stream, describes the capabilities of that stream. | |
BlockDirection | getDirection () const |
Returns the message transmission directions that are supported by this block. | |
bool | isEnabled () const |
True if this block is enabled. | |
bool | nameMatches (const Block &other) const |
True if the names of the two blocks match. | |
bool | infoMatches (const Block &other) const |
True if the BlockInfo of the two blocks match. | |
bool | operator== (const Block &other) const |
bool | operator!= (const Block &other) const |
Represents a Function Block (FB) or Group Terminal Block (GTB).
GTBs are only available in USB MIDI, so devices on non-USB transports will not expose GTB information. In the case that a device only exposes GTBs and not FBs, default values will be used for any fields that are unavailable in the GTB definition.
|
default |
References Block(), withMember(), and x.
|
nodiscard |
References Block(), withMember(), and x.
|
nodiscard |
References Block(), withMember(), and x.
|
nodiscard |
References Block(), withMember(), and x.
|
nodiscard |
References Block(), withMember(), and x.
|
nodiscard |
References Block(), withMember(), and x.
|
nodiscard |
References Block(), withMember(), and x.
|
nodiscard |
References Block(), withMember(), and x.
String universal_midi_packets::Block::getName | ( | ) | const |
The name of the block, if any.
BlockInfo universal_midi_packets::Block::getInfo | ( | ) | const |
All info relating to this block.
uint8_t universal_midi_packets::Block::getFirstGroup | ( | ) | const |
In the range 0x0 to 0xF inclusive.
uint8_t universal_midi_packets::Block::getNumGroups | ( | ) | const |
In the range 0x01 to 0x10 inclusive.
uint8_t universal_midi_packets::Block::getMaxSysex8Streams | ( | ) | const |
The number of simultaneous Sysex8 streams that are supported.
BlockUiHint universal_midi_packets::Block::getUiHint | ( | ) | const |
Some blocks may support bidirectional communication (e.g.
for CI) but function predominantly as a sender or receiver. The direction returned here is a hint to the user that doesn't necessarily reflect the hardware capabilities.
BlockMIDI1ProxyKind universal_midi_packets::Block::getMIDI1ProxyKind | ( | ) | const |
If this block is a proxy for a MIDI 1.0 stream, describes the capabilities of that stream.
BlockDirection universal_midi_packets::Block::getDirection | ( | ) | const |
Returns the message transmission directions that are supported by this block.
Use this to determine block capabilities. For information that will be displayed to the user, prefer getUIHint().
bool universal_midi_packets::Block::isEnabled | ( | ) | const |
True if this block is enabled.
bool universal_midi_packets::Block::nameMatches | ( | const Block & | other | ) | const |
True if the names of the two blocks match.
References Block().
bool universal_midi_packets::Block::infoMatches | ( | const Block & | other | ) | const |
True if the BlockInfo of the two blocks match.
References Block().
bool universal_midi_packets::Block::operator== | ( | const Block & | other | ) | const |
Referenced by operator!=().
bool universal_midi_packets::Block::operator!= | ( | const Block & | other | ) | const |
References Block(), and operator==().