ignore negative value locates and MMC locate commands
[ardour.git] / libs / ardour / event_type_map.cc
index c8c48c5b8674550d8ab2eb9fb7f2a3f66dfb8405..29a363c78b42952220af25b8b162ff5b59855a8a 100644 (file)
@@ -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);
 }