Skip to content

Commit

Permalink
Fix for probonopd/MiniDexed#526 (hopefully?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Holger Wirtz committed Aug 8, 2023
1 parent 18fee6c commit c9f5274
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/dexed.cpp
Expand Up @@ -312,6 +312,8 @@ void Dexed::keydown(int16_t pitch, uint8_t velo) {
if (!voices[note].keydown)
{
currentNote = (note + 1) % max_notes;
//if (keydown_counter == 0) // Original comment: TODO: should only do this if # keys down was 0
lfo.keydown();
voices[note].midi_note = pitch;
voices[note].velocity = velo;
voices[note].sustained = sustain;
Expand All @@ -331,10 +333,6 @@ void Dexed::keydown(int16_t pitch, uint8_t velo) {
note = (note + 1) % max_notes;
}


if (keydown_counter == 0)
lfo.keydown();

if ( monoMode ) {
for (uint8_t i = 0; i < max_notes; i++) {
if ( voices[i].live ) {
Expand Down

0 comments on commit c9f5274

Please sign in to comment.