add display name to processors (so that it can differ from the "real name"); pay...
[ardour.git] / libs / ardour / event_type_map.cc
index 3f36aa6632eba6fc76a659d4451135fb27aa7323..cbc3458615cafd62cf4865c1fc5112ce21e06cfb 100644 (file)
 
 */
 
-#include <ardour/types.h>
-#include <ardour/event_type_map.h>
-#include <evoral/Parameter.hpp>
-#include <evoral/midi_events.h>
-#include <evoral/MIDIParameters.hpp>
-#include <pbd/error.h>
-#include <pbd/compose.h>
+#include <cstdio>
+#include "ardour/types.h"
+#include "ardour/event_type_map.h"
+#include "evoral/Parameter.hpp"
+#include "evoral/midi_events.h"
+#include "evoral/MIDIParameters.hpp"
+#include "pbd/error.h"
+#include "pbd/compose.h"
 
 using namespace std;
 
@@ -116,16 +117,12 @@ EventTypeMap::interpolation_of(const Evoral::Parameter& param)
                case MIDI_CTL_OMNI_OFF:
                case MIDI_CTL_OMNI_ON:
                case MIDI_CTL_MONO:
-               case MIDI_CTL_POLY:
-                       
+               case MIDI_CTL_POLY:     
                        return Evoral::ControlList::Discrete;
                        break;
-
                default: return Evoral::ControlList::Linear; break;
                }
-               
                break; 
-               
        case MidiPgmChangeAutomation:       return Evoral::ControlList::Discrete; break; 
        case MidiChannelPressureAutomation: return Evoral::ControlList::Linear; break; 
        case MidiPitchBenderAutomation:     return Evoral::ControlList::Linear; break; 
@@ -166,6 +163,8 @@ EventTypeMap::new_parameter(uint32_t type, uint8_t channel, uint32_t id) const
                Evoral::MIDI::controller_range(min, max, normal); break;
        case MidiPitchBenderAutomation:
                Evoral::MIDI::bender_range(min, max, normal); break;
+       case MidiSystemExclusiveAutomation:
+               return p;
        }
        
        p.set_range(type, min, max, normal);