ardour
|
#include <MIDIEvent.hpp>
Public Member Functions | |
MIDIEvent (EventType type=0, Time time=0, uint32_t size=0, uint8_t *buf=NULL, bool alloc=false) | |
MIDIEvent (const Event< Time > ©, bool alloc) | |
uint8_t | type () const |
void | set_type (uint8_t type) |
uint8_t | channel () const |
void | set_channel (uint8_t channel) |
bool | is_note_on () const |
bool | is_note_off () const |
bool | is_cc () const |
bool | is_pitch_bender () const |
bool | is_pgm_change () const |
bool | is_note () const |
bool | is_aftertouch () const |
bool | is_channel_pressure () const |
uint8_t | note () const |
void | set_note (uint8_t n) |
uint8_t | velocity () const |
void | set_velocity (uint8_t value) |
void | scale_velocity (float factor) |
uint8_t | cc_number () const |
void | set_cc_number (uint8_t number) |
uint8_t | cc_value () const |
void | set_cc_value (uint8_t value) |
uint8_t | pitch_bender_lsb () const |
uint8_t | pitch_bender_msb () const |
uint16_t | pitch_bender_value () const |
uint8_t | pgm_number () const |
void | set_pgm_number (uint8_t number) |
uint8_t | aftertouch () const |
uint8_t | channel_pressure () const |
bool | is_channel_event () const |
bool | is_smf_meta_event () const |
bool | is_sysex () const |
bool | is_spp () const |
bool | is_mtc_quarter () const |
bool | is_mtc_full () const |
uint16_t | value () const |
Public Member Functions inherited from Evoral::Event< Time > | |
Event (EventType type=0, Time time=Time(), uint32_t size=0, uint8_t *buf=NULL, bool alloc=false) | |
Event (EventType type, Time time, uint32_t size, const uint8_t *buf) | |
Event (const Event ©, bool alloc) | |
~Event () | |
const Event & | operator= (const Event ©) |
void | set (const uint8_t *buf, uint32_t size, Time t) |
bool | operator== (const Event &other) const |
bool | operator!= (const Event &other) const |
bool | owns_buffer () const |
void | set_buffer (uint32_t size, uint8_t *buf, bool own) |
void | realloc (uint32_t size) |
void | clear () |
EventType | event_type () const |
Time | time () const |
Time | original_time () const |
uint32_t | size () const |
const uint8_t * | buffer () const |
uint8_t * | buffer () |
void | set_event_type (EventType t) |
void | set_time (Time) |
void | set_original_time (Time) |
event_id_t | id () const |
void | set_id (event_id_t n) |
Additional Inherited Members | |
Protected Attributes inherited from Evoral::Event< Time > | |
EventType | _type |
Time | _original_time |
Time | _nominal_time |
uint32_t | _size |
uint8_t * | _buf |
event_id_t | _id |
bool | _owns_buf |
MIDI helper functions for an Event.
This class contains no data, an Evoral::Event can be cast to a MIDIEvent but the application must make sure the Event actually contains valid MIDI data for these functions to make sense.
Definition at line 42 of file MIDIEvent.hpp.
|
inline |
Definition at line 44 of file MIDIEvent.hpp.
|
inline |
Definition at line 48 of file MIDIEvent.hpp.
|
inline |
Definition at line 95 of file MIDIEvent.hpp.
|
inline |
Definition at line 85 of file MIDIEvent.hpp.
|
inline |
Definition at line 87 of file MIDIEvent.hpp.
|
inline |
Definition at line 64 of file MIDIEvent.hpp.
|
inline |
Definition at line 96 of file MIDIEvent.hpp.
|
inline |
Definition at line 74 of file MIDIEvent.hpp.
|
inline |
Definition at line 70 of file MIDIEvent.hpp.
|
inline |
Definition at line 97 of file MIDIEvent.hpp.
|
inline |
Definition at line 75 of file MIDIEvent.hpp.
|
inline |
Definition at line 103 of file MIDIEvent.hpp.
|
inline |
Definition at line 102 of file MIDIEvent.hpp.
|
inline |
Definition at line 73 of file MIDIEvent.hpp.
|
inline |
Definition at line 69 of file MIDIEvent.hpp.
|
inline |
Definition at line 68 of file MIDIEvent.hpp.
|
inline |
Definition at line 72 of file MIDIEvent.hpp.
|
inline |
Definition at line 71 of file MIDIEvent.hpp.
|
inline |
Definition at line 98 of file MIDIEvent.hpp.
|
inline |
Definition at line 101 of file MIDIEvent.hpp.
|
inline |
Definition at line 99 of file MIDIEvent.hpp.
|
inline |
Definition at line 76 of file MIDIEvent.hpp.
|
inline |
Definition at line 93 of file MIDIEvent.hpp.
|
inline |
Definition at line 89 of file MIDIEvent.hpp.
|
inline |
Definition at line 90 of file MIDIEvent.hpp.
|
inline |
Definition at line 91 of file MIDIEvent.hpp.
|
inline |
Definition at line 80 of file MIDIEvent.hpp.
|
inline |
Definition at line 86 of file MIDIEvent.hpp.
|
inline |
Definition at line 88 of file MIDIEvent.hpp.
|
inline |
Definition at line 65 of file MIDIEvent.hpp.
|
inline |
Definition at line 77 of file MIDIEvent.hpp.
|
inline |
Definition at line 94 of file MIDIEvent.hpp.
|
inline |
Definition at line 61 of file MIDIEvent.hpp.
|
inline |
Definition at line 79 of file MIDIEvent.hpp.
|
inline |
Definition at line 60 of file MIDIEvent.hpp.
|
inline |
Definition at line 108 of file MIDIEvent.hpp.
|
inline |
Definition at line 78 of file MIDIEvent.hpp.