Skip to content

Commit

Permalink
Add FrontPanel document
Browse files Browse the repository at this point in the history
  • Loading branch information
Chysn committed Aug 23, 2018
1 parent ae7d5a7 commit 9e52a5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Binary file added hardware/HemispherePanel_14HP.fpd
Binary file not shown.
11 changes: 9 additions & 2 deletions software/o_c_REV/APP_MIDI.ino
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,13 @@ enum MIDI_OUT_FUNCTION {
};

const char* const midi_messages[7] = {
"Note", "Off", "CC#", "Aft", "Bend", "SysEx", "Clock"
"Note", "Off", "CC#", "Aft", "Bend", "SysEx", "Diag"
};
//#define MIDI_DIAGNOSTIC
struct CaptainMIDILog {
bool midi_in; // 0 = out, 1 = in
char io; // 1, 2, 3, 4, A, B, C, D
uint8_t message; // 0 = Note On, 1 = Note Off, 2 = CC, 3 = Aftertouch, 4 = Bend, 5 = SysEx, 6 = Clock
uint8_t message; // 0 = Note On, 1 = Note Off, 2 = CC, 3 = Aftertouch, 4 = Bend, 5 = SysEx, 6 = Diagnostic
uint8_t channel; // MIDI channel
int16_t data1;
int16_t data2;
Expand Down Expand Up @@ -749,6 +750,12 @@ private:
if (clock_count % mod == 0) ClockOut(ch);
}

#ifdef MIDI_DIAGNOTIC
if (message > 0) {
UpdateLog(1, ch, 6, message, data1, data2);
}
#endif

if (indicator) indicator_in[ch] = MIDI_INDICATOR_COUNTDOWN;
}
}
Expand Down

0 comments on commit 9e52a5d

Please sign in to comment.