Skip to content

Commit

Permalink
Bugfix - Auditioned arp notes don’t reflect triplet and dotted sync r…
Browse files Browse the repository at this point in the history
…ates (#1543)
  • Loading branch information
soymonitus authored and m-m-adams committed Mar 21, 2024
1 parent 83a6850 commit 5acf5a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/deluge/modulation/arpeggiator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,13 @@ uint32_t ArpeggiatorSettings::getPhaseIncrement(int32_t arpRate) {
.getTimePerInternalTickInverse(); // multiply_32x32_rshift32(playbackHandler.getTimePerInternalTickInverse(),
// arpRate);
phaseIncrement >>= rightShiftAmount;

if (syncType == SYNC_TYPE_TRIPLET) {
phaseIncrement = phaseIncrement * 3 / 2;
}
else if (syncType == SYNC_TYPE_DOTTED) {
phaseIncrement = phaseIncrement * 2 / 3;
}
}
return phaseIncrement;
}

0 comments on commit 5acf5a9

Please sign in to comment.