diff options
author | David Robillard <d@drobilla.net> | 2008-09-29 22:47:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-29 22:47:40 +0000 |
commit | b5ec66ae6cb60fa43c343d3d29340b2370d0b9d1 (patch) | |
tree | 217722d96b61288f44477c69ac3bbe5d2e7d43f1 /libs/ardour/ardour/event_type_map.h | |
parent | 03f188cc8b17edc7c727f62b22b4577a2fdbfbe8 (diff) |
Can't call the wrong function when there's only one of them: remove ARDOUR::Parameter and just use Evoral::Parameter (move Ardour specific functionality to EventTypeMap where it belongs).
Less than pretty in places but easily seddable just in case...
git-svn-id: svn://localhost/ardour2/branches/3.0@3838 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/event_type_map.h')
-rw-r--r-- | libs/ardour/ardour/event_type_map.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/ardour/event_type_map.h b/libs/ardour/ardour/event_type_map.h index 4d7180c028..99911121c5 100644 --- a/libs/ardour/ardour/event_type_map.h +++ b/libs/ardour/ardour/event_type_map.h @@ -21,17 +21,24 @@ #ifndef __ardour_event_type_map_h__ #define __ardour_event_type_map_h__ +#include <string> #include <evoral/TypeMap.hpp> namespace ARDOUR { +/** This is the interface Ardour provides to Evoral about what + * parameter and event types/ranges/names etc. to use. + */ class EventTypeMap : public Evoral::TypeMap { public: bool type_is_midi(uint32_t type) const; uint8_t parameter_midi_type(const Evoral::Parameter& param) const; uint32_t midi_event_type(uint8_t status) const; - bool is_integer(const Evoral::Parameter& param) const; + bool is_integer(const Evoral::Parameter& param) const; + Evoral::Parameter new_parameter(uint32_t type, uint8_t channel=0, uint32_t id=0) const; + Evoral::Parameter new_parameter(const std::string& str) const; + std::string to_symbol(const Evoral::Parameter& param) const; static EventTypeMap& instance() { return event_type_map; } |