X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fevent_type_map.h;h=02852e9711f627e22d97f7f9742b284af9cbf79d;hb=25ca45f3959d5838a9c637ecc8687511d835140b;hp=dfa11d640839bf167b667a53ad0b01cbb29cb5c0;hpb=15cdf454ea5a1460b41cb462c35f1ffb853a0764;p=ardour.git diff --git a/libs/ardour/ardour/event_type_map.h b/libs/ardour/ardour/event_type_map.h index dfa11d6408..02852e9711 100644 --- a/libs/ardour/ardour/event_type_map.h +++ b/libs/ardour/ardour/event_type_map.h @@ -1,6 +1,6 @@ /* Copyright (C) 2000-2007 Paul Davis - Author: Dave Robillard + Author: David Robillard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,7 +22,8 @@ #define __ardour_event_type_map_h__ #include -#include +#include "evoral/TypeMap.hpp" +#include "evoral/ControlList.hpp" namespace ARDOUR { @@ -34,11 +35,14 @@ 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; + Evoral::ControlList::InterpolationStyle interpolation_of(const Evoral::Parameter& param); - 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; } @@ -46,10 +50,6 @@ private: static EventTypeMap event_type_map; }; -enum InternalEventType { - LoopEventType = 1000 -}; - } // namespace ARDOUR #endif /* __ardour_event_type_map_h__ */