get rid of left shift

Co-Authored-By: nukeykt <alexeytf2@gmail.com>
This commit is contained in:
Jasmine Iwanek
2024-07-08 21:14:02 -04:00
parent 24b39c9c8f
commit 3bc9d82f67

View File

@@ -612,7 +612,7 @@ env_calc(slot_t *slot)
if (!slot->eg_rout)
slot->eg_gen = envelope_gen_num_decay;
else if (slot->key && shift > 0 && rate_hi != 0x0f)
eg_inc = ((~slot->eg_rout) << shift) >> 4;
eg_inc = ~slot->eg_rout >> (4 - shift);
break;
case envelope_gen_num_decay: