Skip to content

Commit

Permalink
Commented code breaking compiling on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
Afonso, Bruno committed Apr 5, 2018
1 parent f203467 commit b705740
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions src/MPEToCV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,37 +68,37 @@ void MPEToCV::step() {
}
}

void MPEToCV::pressNote(int note) {
// Remove existing similar note
auto it = std::find(notes.begin(), notes.end(), note);
if (it != notes.end())
notes.erase(it);
// Push note
notes.push_back(note);
this->note = note;
gate = true;
this->newNote = true;
}
// void MPEToCV::pressNote(int note) {
// // Remove existing similar note
// auto it = std::find(notes.begin(), notes.end(), note);
// if (it != notes.end())
// notes.erase(it);
// // Push note
// notes.push_back(note);
// this->note = note;
// gate = true;
// this->newNote = true;
// }

void MPEToCV::releaseNote(int note) {
// Remove the note
auto it = std::find(notes.begin(), notes.end(), note);
if (it != notes.end())
notes.erase(it);
// void MPEToCV::releaseNote(int note) {
// // Remove the note
// auto it = std::find(notes.begin(), notes.end(), note);
// if (it != notes.end())
// notes.erase(it);

if (pedal) {
// Don't release if pedal is held
gate = true;
} else if (!notes.empty()) {
// Play previous note
auto it2 = notes.end();
it2--;
this->note = *it2;
gate = true;
} else {
gate = false;
}
}
// if (pedal) {
// // Don't release if pedal is held
// gate = true;
// } else if (!notes.empty()) {
// // Play previous note
// auto it2 = notes.end();
// it2--;
// this->note = *it2;
// gate = true;
// } else {
// gate = false;
// }
// }

void MPEToCV::processMessage(MidiMessage msg) {
// debug("MIDI: %01x %01x %02x %02x", msg.status(), msg.channel(), msg.data1, msg.data2);
Expand Down

0 comments on commit b705740

Please sign in to comment.