diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2009-01-21 10:20:27 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2009-01-21 10:20:27 +0000 |
commit | 5309c327ec96de33838e45ddb1489a632c2a4c68 (patch) | |
tree | 78cbc9083966e2a42cb8d6a15b0053e6681e9572 /libs/ardour/ardour/event_type_map.h | |
parent | 33852a0728d081864b83e74e900802be7ab6f2aa (diff) |
* make MIDI-specific menu show up on all MIDI lanes
* style guide, comments and a little refactoring (remove duplication)
git-svn-id: svn://localhost/ardour2/branches/3.0@4422 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 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libs/ardour/ardour/event_type_map.h b/libs/ardour/ardour/event_type_map.h index dfa11d6408..d6f26aeac7 100644 --- a/libs/ardour/ardour/event_type_map.h +++ b/libs/ardour/ardour/event_type_map.h @@ -24,6 +24,8 @@ #include <string> #include <evoral/TypeMap.hpp> +class Evoral::Parameter; + namespace ARDOUR { /** This is the interface Ardour provides to Evoral about what @@ -35,10 +37,12 @@ public: 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; - 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; + 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; + + bool is_midi_parameter(const Evoral::Parameter& param); static EventTypeMap& instance() { return event_type_map; } |