2 Copyright (C) 2000-2007 Paul Davis
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __ardour_event_type_map_h__
22 #define __ardour_event_type_map_h__
24 #include <evoral/TypeMap.hpp>
28 class EventTypeMap : public Evoral::TypeMap {
30 bool type_is_midi(uint32_t type) const;
31 uint8_t parameter_midi_type(const Evoral::Parameter& param) const;
32 uint32_t midi_event_type(uint8_t status) const;
34 static EventTypeMap& instance() { return event_type_map; }
37 static EventTypeMap event_type_map;
42 #endif /* __ardour_event_type_map_h__ */