From 5309c327ec96de33838e45ddb1489a632c2a4c68 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Wed, 21 Jan 2009 10:20:27 +0000 Subject: * 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 --- libs/ardour/event_type_map.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/ardour/event_type_map.cc') diff --git a/libs/ardour/event_type_map.cc b/libs/ardour/event_type_map.cc index 39c2e3d6eb..a4d8317a42 100644 --- a/libs/ardour/event_type_map.cc +++ b/libs/ardour/event_type_map.cc @@ -38,6 +38,12 @@ EventTypeMap::type_is_midi(uint32_t type) const return (type >= MidiCCAutomation) && (type <= MidiChannelPressureAutomation); } +bool +EventTypeMap::is_midi_parameter(const Evoral::Parameter& param) +{ + return type_is_midi(param.type()); +} + uint8_t EventTypeMap::parameter_midi_type(const Evoral::Parameter& param) const { -- cgit v1.2.3