Definition at line 61 of file types.hpp.
|
| uint8_t | note () const |
| | Note number (alias for data1)
|
| |
| uint8_t | velocity () const |
| | Velocity (alias for data2)
|
| |
| uint8_t | cc_number () const |
| | CC number (alias for data1)
|
| |
| uint8_t | cc_value () const |
| | CC value (alias for data2)
|
| |
| int16_t | pitch_bend_value () const |
| | 14-bit pitch bend value, centered at 8192
|
| |
| uint16_t | pitch_bend_raw () const |
| | Raw 14-bit pitch bend (0-16383)
|
| |
| uint8_t | to_bytes (uint8_t *out) const |
| | Encode this event as raw MIDI bytes.
|
| |
|
| static constexpr MidiEvent | control_change (uint8_t channel, uint8_t number, uint8_t value) |
| | A Control Change event: channel 0-15, controller number and value 0-127.
|
| |
◆ control_change()
| static constexpr MidiEvent sbl::midi::MidiEvent::control_change |
( |
uint8_t |
channel, |
|
|
uint8_t |
number, |
|
|
uint8_t |
value |
|
) |
| |
|
inlinestaticconstexpr |
◆ note()
| uint8_t sbl::midi::MidiEvent::note |
( |
| ) |
const |
|
inline |
Note number (alias for data1)
Definition at line 78 of file types.hpp.
References data1.
◆ velocity()
| uint8_t sbl::midi::MidiEvent::velocity |
( |
| ) |
const |
|
inline |
Velocity (alias for data2)
Definition at line 81 of file types.hpp.
References data2.
◆ cc_number()
| uint8_t sbl::midi::MidiEvent::cc_number |
( |
| ) |
const |
|
inline |
CC number (alias for data1)
Definition at line 84 of file types.hpp.
References data1.
◆ cc_value()
| uint8_t sbl::midi::MidiEvent::cc_value |
( |
| ) |
const |
|
inline |
CC value (alias for data2)
Definition at line 87 of file types.hpp.
References data2.
◆ pitch_bend_value()
| int16_t sbl::midi::MidiEvent::pitch_bend_value |
( |
| ) |
const |
|
inline |
14-bit pitch bend value, centered at 8192
Range: 0 (max down) to 16383 (max up), 8192 = center.
Definition at line 94 of file types.hpp.
References data1, and data2.
◆ pitch_bend_raw()
| uint16_t sbl::midi::MidiEvent::pitch_bend_raw |
( |
| ) |
const |
|
inline |
◆ to_bytes()
| uint8_t sbl::midi::MidiEvent::to_bytes |
( |
uint8_t * |
out | ) |
const |
|
inline |
Encode this event as raw MIDI bytes.
- Parameters
-
| out | Buffer for MIDI bytes (must be at least 3 bytes) |
- Returns
- Number of bytes written (0 if unsupported message type)
Definition at line 104 of file types.hpp.
References channel, data1, and data2.
◆ type
| MessageType sbl::midi::MidiEvent::type = MessageType::None |
◆ channel
| uint8_t sbl::midi::MidiEvent::channel = 0 |
◆ data1
| uint8_t sbl::midi::MidiEvent::data1 = 0 |
◆ data2
| uint8_t sbl::midi::MidiEvent::data2 = 0 |
The documentation for this struct was generated from the following file: