Browse Source

cleanup

tags/v0.5.0
ben 7 years ago
parent
commit
ccd820897f
2 changed files with 2 additions and 5 deletions
  1. +1
    -1
      src/core/MidiClockToCV.cpp
  2. +1
    -4
      src/core/QuadMidiToCV.cpp

+ 1
- 1
src/core/MidiClockToCV.cpp View File

@@ -91,7 +91,7 @@ void MIDIClockToCVInterface::step() {
float sampleRate = engineGetSampleRate(); float sampleRate = engineGetSampleRate();


if (isPortOpen()) { if (isPortOpen()) {
static std::vector<unsigned char> message;
std::vector<unsigned char> message;


// midiIn->getMessage returns empty vector if there are no messages in the queue // midiIn->getMessage returns empty vector if there are no messages in the queue
getMessage(&message); getMessage(&message);


+ 1
- 4
src/core/QuadMidiToCV.cpp View File

@@ -9,7 +9,6 @@ struct MidiKey {
int pitch = 60; int pitch = 60;
int at = 0; // aftertouch int at = 0; // aftertouch
int vel = 0; // velocity int vel = 0; // velocity
int retriggerC = 0;
bool gate = false; bool gate = false;
}; };


@@ -137,8 +136,7 @@ void QuadMIDIToCVInterface::processMidi(std::vector<unsigned char> msg) {
int status = (msg[0] >> 4) & 0xf; int status = (msg[0] >> 4) & 0xf;
int data1 = msg[1]; int data1 = msg[1];
int data2 = msg[2]; int data2 = msg[2];

static int gate;
bool gate;


// Filter channels // Filter channels
if (this->channel >= 0 && this->channel != channel) if (this->channel >= 0 && this->channel != channel)
@@ -195,7 +193,6 @@ void QuadMIDIToCVInterface::processMidi(std::vector<unsigned char> msg) {
} }


if (open.empty()) { if (open.empty()) {
open.clear();
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
open.push_back(i); open.push_back(i);
} }


Loading…
Cancel
Save