Skip to content

Commit

Permalink
re-add turning on incontrol
Browse files Browse the repository at this point in the history
  • Loading branch information
spacem committed Jun 6, 2019
1 parent b24e37f commit 697eda2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MidiFlasher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class MidiFlasher
if (flag != MMSYSERR_NOERROR) {
throw L"Error opening MIDI Output.";
}
this->turnOnInControl();
}

~MidiFlasher()
Expand Down Expand Up @@ -43,7 +44,6 @@ class MidiFlasher
}

void SendMidi(float peak) {

if (peak == 0)
{
this->offFrom(0);
Expand Down Expand Up @@ -111,6 +111,11 @@ class MidiFlasher
}
}

void turnOnInControl()
{
this->sendMidiMessage(12, 127);
}

int getNoteColour(int note)
{
switch (note) {
Expand Down

0 comments on commit 697eda2

Please sign in to comment.