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.
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 |
|
default |
References Block(), juce::withMember(), and x.
|
inlinenodiscard |
References Block(), juce::withMember(), and x.
|
inlinenodiscard |
References Block(), juce::withMember(), and x.
|
inlinenodiscard |
References Block(), juce::withMember(), and x.
|
inlinenodiscard |
References Block(), juce::withMember(), and x.
|
inlinenodiscard |
References Block(), juce::withMember(), and x.
|
inlinenodiscard |
References Block(), juce::withMember(), and x.
|
inlinenodiscard |
References Block(), juce::withMember(), and x.
|
inline |
The name of the block, if any.
|
inline |
All info relating to this block.
|
inline |
In the range 0x0 to 0xF inclusive.
|
inline |
In the range 0x01 to 0x10 inclusive.
|
inline |
The number of simultaneous Sysex8 streams that are supported.
|
inline |
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.
|
inline |
If this block is a proxy for a MIDI 1.0 stream, describes the capabilities of that stream.
|
inline |
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().
|
inline |
True if this block is enabled.
|
inline |
True if the names of the two blocks match.
References Block().
|
inline |
True if the BlockInfo of the two blocks match.
References Block().
|
inline |
Referenced by operator!=().
|
inline |
References Block(), and operator==().