Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::EventTypeMap Class Reference

#include <event_type_map.h>

Inheritance diagram for ARDOUR::EventTypeMap:
[legend]

Public Member Functions

bool type_is_midi (uint32_t type) const
 
uint8_t parameter_midi_type (const Evoral::Parameter &param) const
 
Evoral::ParameterType midi_parameter_type (const uint8_t *buf, uint32_t len) const
 
Evoral::ControlList::InterpolationStyle interpolation_of (const Evoral::Parameter &param)
 
Evoral::Parameter from_symbol (const std::string &str) const
 
std::string to_symbol (const Evoral::Parameter &param) const
 
Evoral::ParameterDescriptor descriptor (const Evoral::Parameter &param) const
 
void set_descriptor (const Evoral::Parameter &param, const Evoral::ParameterDescriptor &desc)
 
- Public Member Functions inherited from Evoral::TypeMap
virtual ~TypeMap ()
 

Static Public Member Functions

static EventTypeMapinstance ()
 

Private Types

typedef std::map< Evoral::Parameter, Evoral::ParameterDescriptorDescriptors
 

Private Member Functions

 EventTypeMap (URIMap *uri_map)
 

Private Attributes

URIMap_uri_map
 
Descriptors _descriptors
 

Static Private Attributes

static EventTypeMapevent_type_map
 

Detailed Description

This is the interface Ardour provides to Evoral about what parameter and event types/ranges/names etc. to use.

Definition at line 39 of file event_type_map.h.

Member Typedef Documentation

◆ Descriptors

Constructor & Destructor Documentation

◆ EventTypeMap()

ARDOUR::EventTypeMap::EventTypeMap ( URIMap uri_map)
inlineprivate

Definition at line 61 of file event_type_map.h.

Member Function Documentation

◆ descriptor()

Evoral::ParameterDescriptor ARDOUR::EventTypeMap::descriptor ( const Evoral::Parameter param) const
virtual

Return the description of a parameter.

Implements Evoral::TypeMap.

◆ from_symbol()

Evoral::Parameter ARDOUR::EventTypeMap::from_symbol ( const std::string &  str) const

◆ instance()

static EventTypeMap& ARDOUR::EventTypeMap::instance ( )
static

◆ interpolation_of()

Evoral::ControlList::InterpolationStyle ARDOUR::EventTypeMap::interpolation_of ( const Evoral::Parameter param)

◆ midi_parameter_type()

Evoral::ParameterType ARDOUR::EventTypeMap::midi_parameter_type ( const uint8_t *  buf,
uint32_t  len 
) const
virtual

The parameter type for the given MIDI event.

Implements Evoral::TypeMap.

◆ parameter_midi_type()

uint8_t ARDOUR::EventTypeMap::parameter_midi_type ( const Evoral::Parameter param) const
virtual

Return the MIDI type (ie status byte with channel 0) for a parameter, or 0 if parameter can not be expressed as a MIDI event

Implements Evoral::TypeMap.

◆ set_descriptor()

void ARDOUR::EventTypeMap::set_descriptor ( const Evoral::Parameter param,
const Evoral::ParameterDescriptor desc 
)

◆ to_symbol()

std::string ARDOUR::EventTypeMap::to_symbol ( const Evoral::Parameter param) const
virtual

Implements Evoral::TypeMap.

◆ type_is_midi()

bool ARDOUR::EventTypeMap::type_is_midi ( uint32_t  type) const
virtual

Return true iff the type is a MIDI event. The contents of the event will be used for specific ID

Implements Evoral::TypeMap.

Member Data Documentation

◆ _descriptors

Descriptors ARDOUR::EventTypeMap::_descriptors
private

Definition at line 64 of file event_type_map.h.

◆ _uri_map

URIMap* ARDOUR::EventTypeMap::_uri_map
private

Definition at line 63 of file event_type_map.h.

◆ event_type_map

EventTypeMap* ARDOUR::EventTypeMap::event_type_map
staticprivate

Definition at line 66 of file event_type_map.h.


The documentation for this class was generated from the following file: