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 /gtk2_ardour/midi_time_axis.cc | |
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 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r-- | gtk2_ardour/midi_time_axis.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index 9f3da122c5..c482c744cf 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -469,11 +469,7 @@ MidiTimeAxisView::add_cc_track() void MidiTimeAxisView::add_parameter_track(const Evoral::Parameter& param) { - if ( param.type() != MidiCCAutomation && - param.type() != MidiPgmChangeAutomation && - param.type() != MidiPitchBenderAutomation && - param.type() != MidiChannelPressureAutomation - ) { + if ( !EventTypeMap::instance().is_midi_parameter(param) ) { error << "MidiTimeAxisView: unknown automation child " << ARDOUR::EventTypeMap::instance().to_symbol(param) << endmsg; return; |