Ardour  9.0-pre0-582-g084a23a80d
Evoral Namespace Reference

Classes

class  Note
 
class  EventSink
 
class  EventList
 
class  Event
 
class  Control
 
class  ControlEvent
 
class  ControlList
 
class  ControlSet
 
class  Curve
 
class  Parameter
 
struct  ParameterDescriptor
 
class  PatchChange
 
class  ControlIterator
 
class  Sequence
 
class  SMF
 
class  TypeMap
 

Typedefs

typedef int32_t event_id_t
 
typedef uint32_t ParameterType
 

Enumerations

enum  EventType { NO_EVENT , MIDI_EVENT , LIVE_MIDI_EVENT }
 

Functions

event_id_t event_id_counter ()
 
event_id_t next_event_id ()
 
void init_event_id_counter (event_id_t n)
 
template<typename Time >
std::ostream & operator<< (std::ostream &o, const Evoral::Event< Time > &ev)
 
static int midi_event_size (uint8_t status)
 
static int midi_event_size (const uint8_t *buffer)
 
static bool midi_event_is_valid (const uint8_t *buffer, size_t len)
 
template<typename Time >
std::ostream & operator<< (std::ostream &o, const Evoral::Note< Time > &n)
 

Typedef Documentation

◆ event_id_t

typedef int32_t Evoral::event_id_t

ID of an event (note or other). This must be operable on by glib atomic ops

Definition at line 40 of file evoral/evoral/types.h.

◆ ParameterType

typedef uint32_t Evoral::ParameterType

Type of a parameter (opaque, mapped by application, e.g. gain)

Definition at line 62 of file evoral/evoral/types.h.

Enumeration Type Documentation

◆ EventType

Type of an event (opaque, mapped by application, e.g. MIDI).

Event types are really an arbitrary integer provided by the type map, and it is safe to use values not in this enum, but this enum exists so the compiler can catch mistakes like setting the event type to a MIDI status byte. Event types come from the type map and describe a format/protocol like MIDI, and must not be confused with the payload (such as a note on or CC change). There is a static value for MIDI as this type is handled specially by various parts of Evoral.

Enumerator
NO_EVENT 
MIDI_EVENT 
LIVE_MIDI_EVENT 

Definition at line 52 of file evoral/evoral/types.h.

Function Documentation

◆ event_id_counter()

event_id_t Evoral::event_id_counter ( )

◆ init_event_id_counter()

void Evoral::init_event_id_counter ( event_id_t  n)

◆ midi_event_is_valid()

static bool Evoral::midi_event_is_valid ( const uint8_t *  buffer,
size_t  len 
)
inlinestatic

Return true iff the given buffer is a valid MIDI event. len must be exactly correct for the contents of buffer

Definition at line 117 of file libs/evoral/evoral/midi_util.h.

◆ midi_event_size() [1/2]

static int Evoral::midi_event_size ( const uint8_t *  buffer)
inlinestatic

Return the size of the given event including the status byte, or -1 if event is illegal.

Definition at line 88 of file libs/evoral/evoral/midi_util.h.

◆ midi_event_size() [2/2]

static int Evoral::midi_event_size ( uint8_t  status)
inlinestatic

Return the size of the given event including the status byte, or -1 if unknown (e.g. sysex)

Definition at line 43 of file libs/evoral/evoral/midi_util.h.

◆ next_event_id()

event_id_t Evoral::next_event_id ( )

◆ operator<<() [1/2]

template<typename Time >
std::ostream& Evoral::operator<< ( std::ostream &  o,
const Evoral::Event< Time > &  ev 
)

Definition at line 223 of file Event.h.

◆ operator<<() [2/2]

template<typename Time >
std::ostream& Evoral::operator<< ( std::ostream &  o,
const Evoral::Note< Time > &  n 
)

Definition at line 118 of file Note.h.