X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fevent_type_map.cc;h=29a363c78b42952220af25b8b162ff5b59855a8a;hb=aa0effb4cb38f4c3a06564bd9e6a0ee516d4f958;hp=c8c48c5b8674550d8ab2eb9fb7f2a3f66dfb8405;hpb=15b5fce90480490455237da917167b0bcb5ce946;p=ardour.git diff --git a/libs/ardour/event_type_map.cc b/libs/ardour/event_type_map.cc index c8c48c5b86..29a363c78b 100644 --- a/libs/ardour/event_type_map.cc +++ b/libs/ardour/event_type_map.cc @@ -1,6 +1,6 @@ /* Copyright (C) 2008 Paul Davis - Author: Dave Robillard + Author: David Robillard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -159,15 +159,21 @@ EventTypeMap::new_parameter(uint32_t type, uint8_t channel, uint32_t id) const case PanFrontBackAutomation: case PanLFEAutomation: break; + case RecEnableAutomation: + /* default 0.0 - 1.0 is fine */ + break; case PluginAutomation: - case SoloAutomation: - case MuteAutomation: case FadeInAutomation: case FadeOutAutomation: case EnvelopeAutomation: max = 2.0f; normal = 1.0f; break; + case SoloAutomation: + case MuteAutomation: + max = 1.0f; + normal = 0.0f; + break; case MidiCCAutomation: case MidiPgmChangeAutomation: case MidiChannelPressureAutomation: @@ -244,7 +250,7 @@ EventTypeMap::new_parameter(const string& str) const } else { PBD::warning << "Unknown Parameter '" << str << "'" << endmsg; } - + return new_parameter(p_type, p_channel, p_id); }