diff options
author | David Robillard <d@drobilla.net> | 2014-11-01 23:29:10 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-02 02:10:24 -0500 |
commit | 8a128b33d38172ae525ac798c53bc105bc4e2c64 (patch) | |
tree | 226459f2fec72a9717d12f190d354f72175607dc /libs/ardour/ardour/event_type_map.h | |
parent | 6dfb11c2d08201f1a27818955707590b762f5a40 (diff) |
Automation of LV2 plugin properties.
Work towards ParameterDescriptor being used more universally to describe control characteristics.
Diffstat (limited to 'libs/ardour/ardour/event_type_map.h')
-rw-r--r-- | libs/ardour/ardour/event_type_map.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/ardour/ardour/event_type_map.h b/libs/ardour/ardour/event_type_map.h index fbfd9ec73c..f69d20b773 100644 --- a/libs/ardour/ardour/event_type_map.h +++ b/libs/ardour/ardour/event_type_map.h @@ -29,11 +29,15 @@ namespace ARDOUR { +class URIMap; + /** This is the interface Ardour provides to Evoral about what * parameter and event types/ranges/names etc. to use. */ class LIBARDOUR_API EventTypeMap : public Evoral::TypeMap { public: + static EventTypeMap& instance(); + 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; @@ -46,10 +50,14 @@ public: bool is_midi_parameter(const Evoral::Parameter& param); - static EventTypeMap& instance() { return event_type_map; } + URIMap& uri_map() { return _uri_map; } private: - static EventTypeMap event_type_map; + EventTypeMap(URIMap& uri_map) : _uri_map(uri_map) {} + + URIMap& _uri_map; + + static EventTypeMap* event_type_map; }; } // namespace ARDOUR |