From de2681f7cddc95e5a859c40e24d302631336a35a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Feb 2009 23:41:05 +0000 Subject: [PATCH] Remove superfluous typedefs. Don't set range on sysex parameters (fix warning). git-svn-id: svn://localhost/ardour2/branches/3.0@4568 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/event_type_map.cc | 8 +++----- libs/evoral/evoral/Note.hpp | 14 +++++++------- libs/evoral/evoral/Sequence.hpp | 8 ++++---- libs/evoral/evoral/types.hpp | 9 --------- libs/evoral/src/Note.cpp | 2 +- libs/evoral/src/Sequence.cpp | 12 ++++++------ libs/evoral/test/SequenceTest.cpp | 2 +- 7 files changed, 22 insertions(+), 33 deletions(-) diff --git a/libs/ardour/event_type_map.cc b/libs/ardour/event_type_map.cc index 3f36aa6632..063090cef9 100644 --- a/libs/ardour/event_type_map.cc +++ b/libs/ardour/event_type_map.cc @@ -116,16 +116,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 +162,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); diff --git a/libs/evoral/evoral/Note.hpp b/libs/evoral/evoral/Note.hpp index d9d4b070ff..c8365588ee 100644 --- a/libs/evoral/evoral/Note.hpp +++ b/libs/evoral/evoral/Note.hpp @@ -32,7 +32,7 @@ namespace Evoral { template class Note { public: - Note(uint8_t chan=0, Time time=0, EventLength len=0, uint8_t note=0, uint8_t vel=0x40); + Note(uint8_t chan=0, Time time=0, Time len=0, uint8_t note=0, uint8_t vel=0x40); Note(const Note