diff options
author | David Robillard <d@drobilla.net> | 2014-11-30 23:14:03 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-30 23:56:20 -0500 |
commit | 0ffeaa6d6a28b2e676939eaabb6ee239482b8a5a (patch) | |
tree | 38d7943229cdfd1f25a3705e2d9f888109fd8817 /libs/ardour/event_type_map.cc | |
parent | 7eb4e5d22bf43fa1e6bc44dfa33d8732f744c2dd (diff) |
Remove braindead Parameter inheritance abuse.
Diffstat (limited to 'libs/ardour/event_type_map.cc')
-rw-r--r-- | libs/ardour/event_type_map.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libs/ardour/event_type_map.cc b/libs/ardour/event_type_map.cc index cc15d72356..6c1c8363ee 100644 --- a/libs/ardour/event_type_map.cc +++ b/libs/ardour/event_type_map.cc @@ -26,7 +26,6 @@ #include "ardour/uri_map.h" #include "evoral/Parameter.hpp" #include "evoral/midi_events.h" -#include "evoral/MIDIParameters.hpp" #include "pbd/error.h" #include "pbd/compose.h" @@ -197,9 +196,14 @@ EventTypeMap::new_parameter(uint32_t type, uint8_t channel, uint32_t id) const case MidiCCAutomation: case MidiPgmChangeAutomation: case MidiChannelPressureAutomation: - Evoral::MIDI::controller_range(min, max, normal); break; + min = 0.0; + normal = 0.0; + max = 127.0; + break; case MidiPitchBenderAutomation: - Evoral::MIDI::bender_range(min, max, normal); break; + min = 0.0; + normal = 8192.0; + max = 16383.0; case MidiSystemExclusiveAutomation: return p; case PluginPropertyAutomation: |