Skip to content

Commit

Permalink
Allow CC loopback when forwarding or MD ext ctrl is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jmamma committed Sep 18, 2021
1 parent 2fe902c commit dd7fa46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions avr/cores/megacommand/MCL/SeqPtcPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,10 @@ void SeqPtcMidiEvents::onControlChangeCallback_Midi2(uint8_t *msg) {
uint8_t track;
uint8_t track_param;

if (param < 2 || mcl_cfg.uart_cc_loopback) {
MidiUart2.sendCC(channel, param, value);
}

if (is_md_midi(channel)) {
// If external keyboard controlling MD param, send parameter updates
// to all polyphonic tracks
Expand All @@ -770,10 +774,6 @@ void SeqPtcMidiEvents::onControlChangeCallback_Midi2(uint8_t *msg) {
return;
}

if (param < 2 || mcl_cfg.uart_cc_loopback) {
mcl_seq.ext_tracks[channel].send_cc(param, value);
}

if (GUI.currentPage() == &seq_extstep_page && SeqPage::pianoroll_mode > 0) {
if (mcl_seq.ext_tracks[n].locks_params[SeqPage::pianoroll_mode - 1] - 1 ==
PARAM_LEARN) {
Expand Down

0 comments on commit dd7fa46

Please sign in to comment.