From 79c7d4ec22f0a1ea37c609d5304e585cc89a565b Mon Sep 17 00:00:00 2001 From: Da CodeKid Date: Mon, 18 Feb 2019 14:35:25 -0500 Subject: [PATCH] Fix sendChannelMessage Signature on SendNoteOn/Off Fix sendChannelMessage call Signature on SendNoteOn & SendNoteOff functions --- src/utility/AbstractMidiInterface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/AbstractMidiInterface.h b/src/utility/AbstractMidiInterface.h index 26a0071..3b41bf7 100644 --- a/src/utility/AbstractMidiInterface.h +++ b/src/utility/AbstractMidiInterface.h @@ -277,11 +277,11 @@ namespace Midi { public: // sending void sendNoteOn(DataByte note, DataByte velocity, Channel channel) { - sendChannelMessage(MidiType::NoteOn, channel, note, velocity); + sendChannelMessage(MidiType::NoteOn, note, velocity, channel); } void sendNoteOff(DataByte note, DataByte velocity, Channel channel) { - sendChannelMessage(MidiType::NoteOff, channel, note, velocity); + sendChannelMessage(MidiType::NoteOff, note, velocity, channel); } void sendProgramChange(DataByte number, Channel channel) {