Skip to content

Commit

Permalink
Bug fixed for peak hold type 3 in Octavia SC.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jun 20, 2024
1 parent 99a84a7 commit 5b49fab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/disp/disp_sc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,9 @@ let ScDisplay = class extends RootDisplay {
// Strength calculation
sum.velo.forEach(function (e, i) {
upThis.#lingerOld[i] = upThis.#linger[i] >> 8;
upThis.#noteOn[i] --;
if (upThis.#noteOn[i]) {
upThis.#noteOn[i] --;
};
if (((e >> 4) << 4) > upThis.#linger[i] >> 8) {
if (scConf.peakHold == 3) {
upThis.#linger[i] = ((e >> 4) << 4) << 8;
Expand Down

0 comments on commit 5b49fab

Please sign in to comment.