Skip to content

Commit

Permalink
rand midi chan gives stuck notes, disabling for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quixotic7 committed Mar 1, 2024
1 parent 471021d commit fbf2835
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OMX-27-firmware/src/midifx/midifx_randomizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ namespace midifx

if(midiChan_ != 0)
{
note.channel = constrain(random(note.channel, note.channel + midiChan_), 1, 16);
// note.channel = constrain(random(note.channel, note.channel + midiChan_), 1, 16);
}

if(delayMin_ > 0 || delayMax_ > 0)
Expand Down Expand Up @@ -275,7 +275,7 @@ namespace midifx
lengthPerc_ = constrain(lengthPerc_ + amtFast, 0, 100);
break;
case 3:
midiChan_ = constrain(midiChan_ + amtSlow, 0, 16);
// midiChan_ = constrain(midiChan_ + amtSlow, 0, 16);
break;
}
}
Expand Down Expand Up @@ -339,7 +339,7 @@ namespace midifx
omxDisp.setLegend(0, "VEL-", velMinus_);
omxDisp.setLegend(1, "VEL+", velPlus_);
omxDisp.setLegend(2, "LEN%", lengthPerc_);
omxDisp.setLegend(3, "CHAN", midiChan_ == 0, midiChan_);
// omxDisp.setLegend(3, "CHAN", midiChan_ == 0, midiChan_);
}
case RZPAGE_3:
{
Expand Down

0 comments on commit fbf2835

Please sign in to comment.