From eeabac94d1b9804ab5bfba4a45c43e3a9b536f99 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Fri, 30 Jan 2009 00:09:47 +0000 Subject: [PATCH] * fixed bug: channel and id swapped for PitchBener, ChannelPressure and ProgramChanges git-svn-id: svn://localhost/ardour2/branches/3.0@4460 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/evoral/evoral/MIDIParameters.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/evoral/evoral/MIDIParameters.hpp b/libs/evoral/evoral/MIDIParameters.hpp index 744357f5b8..1375100929 100644 --- a/libs/evoral/evoral/MIDIParameters.hpp +++ b/libs/evoral/evoral/MIDIParameters.hpp @@ -28,15 +28,15 @@ struct ContinuousController : public Parameter { }; struct ProgramChange : public Parameter { - ProgramChange(uint32_t pc_type, uint8_t channel) : Parameter(pc_type, 0, channel) {} + ProgramChange(uint32_t pc_type, uint8_t channel) : Parameter(pc_type, channel, 0) {} }; struct ChannelPressure : public Parameter { - ChannelPressure(uint32_t ca_type, uint32_t channel) : Parameter(ca_type, 0, channel) {} + ChannelPressure(uint32_t ca_type, uint32_t channel) : Parameter(ca_type, channel, 0) {} }; struct PitchBender : public Parameter { - PitchBender(uint32_t pb_type, uint32_t channel) : Parameter(pb_type, 0, channel) {} + PitchBender(uint32_t pb_type, uint32_t channel) : Parameter(pb_type, channel, 0) {} }; inline static void controller_range(double& min, double& max, double& normal) {