diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-15 15:31:59 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-15 15:31:59 +0200 |
commit | 895b9c20518141510ec0192f603913475fae6493 (patch) | |
tree | aa042984ff7914a12f7fa91bae8784286bf3f61d /libs/ardour/automatable.cc | |
parent | 2d18d512e361e5f582bf96669c1df8c6696b9b17 (diff) |
Fix PolyKeyPressure, consolidate AutomationType checks
Diffstat (limited to 'libs/ardour/automatable.cc')
-rw-r--r-- | libs/ardour/automatable.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index 1ff86e2ef4..16832b8af1 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -521,7 +521,7 @@ Automatable::control_factory(const Evoral::Parameter& param) ParameterDescriptor desc(param); boost::shared_ptr<AutomationList> list; - if (param.type() >= MidiCCAutomation && param.type() <= MidiChannelPressureAutomation) { + if (parameter_is_midi (param.type())) { MidiTrack* mt = dynamic_cast<MidiTrack*>(this); if (mt) { control = new MidiTrack::MidiControl(mt, param); |