Nicer MIDI initialization
This commit is contained in:
parent
c70858709e
commit
a56cddf5e4
3 changed files with 15 additions and 10 deletions
|
@ -325,7 +325,7 @@ int mainState; // The state of the main state machine
|
|||
|
||||
int initial_breath_value; // The breath value at the time we observed the transition
|
||||
|
||||
byte activeMIDIchannel=1; // MIDI channel
|
||||
byte activeMIDIchannel; // MIDI channel
|
||||
byte activePatch=0;
|
||||
byte doPatchUpdate=0;
|
||||
|
||||
|
@ -625,8 +625,8 @@ void setup() {
|
|||
doPatchUpdate=1;
|
||||
}
|
||||
|
||||
Serial3.begin(31250); // start serial with midi baudrate 31250
|
||||
Serial3.flush();
|
||||
activeMIDIchannel = MIDIchannel;
|
||||
midiInitialize(MIDIchannel);
|
||||
|
||||
//Serial.begin(9600); // debug
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue