Browse Source

Merge branch 'master' of github.com:VCVRack/Rack

tags/v0.3.0
Andrew Belt 7 years ago
parent
commit
4b08091f60
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/core/MidiInterface.cpp

+ 2
- 2
src/core/MidiInterface.cpp View File

@@ -86,7 +86,7 @@ void MidiInterface::step() {
} }


if (outputs[PITCH_OUTPUT]) { if (outputs[PITCH_OUTPUT]) {
*outputs[PITCH_OUTPUT] = ((note - 64)) / 12.0;
*outputs[PITCH_OUTPUT] = ((note - 60)) / 12.0;
} }
if (outputs[GATE_OUTPUT]) { if (outputs[GATE_OUTPUT]) {
bool gate = pedal || !notes.empty(); bool gate = pedal || !notes.empty();
@@ -173,7 +173,7 @@ void MidiInterface::processMidi(long msg) {
int status = (msg >> 4) & 0xf; int status = (msg >> 4) & 0xf;
int data1 = (msg >> 8) & 0xff; int data1 = (msg >> 8) & 0xff;
int data2 = (msg >> 16) & 0xff; int data2 = (msg >> 16) & 0xff;
printf("channel %d status %d data1 %d data2 %d\n", channel, status, data1, data2);
// printf("channel %d status %d data1 %d data2 %d\n", channel, status, data1, data2);


// Filter channels // Filter channels
if (this->channel >= 0 && this->channel != channel) if (this->channel >= 0 && this->channel != channel)


Loading…
Cancel
Save