|
Ardour
9.0-pre0-1950-g391fe97693
|
#include <Event.h>
Public Member Functions | |
| Event (EventType type=NO_EVENT, 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 () | |
| void | assign (const Event &other) |
| 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 |
| uint32_t | size () const |
| const uint8_t * | buffer () const |
| uint8_t * | buffer () |
| bool | is_midi () const |
| bool | is_live_midi () const |
| void | set_event_type (EventType t) |
| void | set_time (Time t) |
| event_id_t | id () const |
| void | set_id (event_id_t n) |
| uint8_t | type () const |
| uint8_t | channel () const |
| bool | is_note_on () const |
| bool | is_note_off () const |
| bool | is_note () const |
| bool | is_poly_pressure () const |
| bool | is_channel_pressure () const |
| bool | is_cc () const |
| bool | is_pgm_change () const |
| bool | is_pitch_bender () const |
| bool | is_channel_event () const |
| bool | is_smf_meta_event () const |
| bool | is_sysex () const |
| bool | is_mtc_quarter () const |
| bool | is_spp () const |
| bool | is_song () const |
| bool | is_tune () const |
| bool | is_eox () const |
| bool | is_clock () const |
| bool | is_tick () const |
| bool | is_mtc_full () const |
| bool | is_realtime () const |
| uint8_t | note () const |
| uint8_t | velocity () const |
| uint8_t | poly_note () const |
| uint8_t | poly_pressure () const |
| uint8_t | channel_pressure () const |
| uint8_t | cc_number () const |
| uint8_t | cc_value () const |
| uint8_t | pgm_number () const |
| uint8_t | pitch_bender_lsb () const |
| uint8_t | pitch_bender_msb () const |
| uint16_t | pitch_bender_value () const |
| void | set_channel (uint8_t channel) |
| void | set_type (uint8_t type) |
| void | set_note (uint8_t num) |
| void | set_velocity (uint8_t val) |
| void | set_cc_number (uint8_t num) |
| void | set_cc_value (uint8_t val) |
| void | set_pgm_number (uint8_t num) |
| void | scale_velocity (float factor) |
| uint16_t | value () const |
Protected Attributes | |
| EventType | _type |
| Type of event (application relative, NOT MIDI 'type') More... | |
| Time | _time |
| Time stamp of event. More... | |
| uint32_t | _size |
| Size of buffer in bytes. More... | |
| uint8_t * | _buf |
| Event contents (e.g. raw MIDI data) More... | |
| event_id_t | _id |
| Unique event ID. More... | |
| bool | _owns_buf |
| Whether buffer is locally allocated. More... | |
An event (much like a type generic jack_midi_event_t)
Template parameter Time is the type of the time stamp used for this event.
| Evoral::Event< Time >::Event | ( | EventType | type = NO_EVENT, |
| Time | time = Time(), |
||
| uint32_t | size = 0, |
||
| uint8_t * | buf = NULL, |
||
| bool | alloc = false |
||
| ) |
| Evoral::Event< Time >::Event | ( | EventType | type, |
| Time | time, | ||
| uint32_t | size, | ||
| const uint8_t * | buf | ||
| ) |
| Evoral::Event< Time >::Event | ( | const Event< Time > & | copy, |
| bool | alloc | ||
| ) |
Copy copy.
If alloc is true, the buffer will be copied and this method is NOT REALTIME SAFE. Otherwise both events share a buffer and memory management semantics are the caller's problem.
| Evoral::Event< Time >::~Event | ( | ) |
| void Evoral::Event< Time >::assign | ( | const Event< Time > & | other | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Evoral::Event< Time >::set | ( | const uint8_t * | buf, |
| uint32_t | size, | ||
| Time | t | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |