From 0f66b8d91fcd045dae0017510bc9ce8c009a31ed Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 7 Oct 2017 14:17:53 +0200 Subject: [PATCH] include/midi interface naming --- src/core/MidiInterface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/MidiInterface.cpp b/src/core/MidiInterface.cpp index 1495342b..4621a6b7 100644 --- a/src/core/MidiInterface.cpp +++ b/src/core/MidiInterface.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include "rtmidi/RtMidi.h" #include "core.hpp" #include "gui.hpp" #include "../../include/engine.hpp" @@ -40,7 +40,7 @@ struct MidiInterface : Module { MidiInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) { try { - midiIn = new RtMidiIn(); + midiIn = new RtMidiIn(RtMidi::UNSPECIFIED, "VCVRack"); } catch ( RtMidiError &error ) { fprintf(stderr,"Failed to create RtMidiIn: %s\n", error.getMessage().c_str()); @@ -145,7 +145,7 @@ void MidiInterface::setPortId(int portId) { // Open new port if (portId >= 0) { - midiIn->openPort(portId); + midiIn->openPort(portId, "Midi Interface"); } this->portId = portId; } @@ -185,7 +185,7 @@ void MidiInterface::processMidi(std::vector msg) { int data1 = msg[1]; int data2 = msg[2]; - // fprintf(stderr, "channel %d status %d data1 %d data2 %d\n", channel, status, data1,data2); + //fprintf(stderr, "channel %d status %d data1 %d data2 %d\n", channel, status, data1,data2); // Filter channels if (this->channel >= 0 && this->channel != channel)