Synth: fix bug

This commit is contained in:
Alex Iadicicco 2022-12-09 23:31:15 -08:00 committed by Alexis King
parent 2c8eb3d550
commit 904c5b50e6

View File

@ -115,7 +115,7 @@ public final class Synth {
for (int harm_idk = 0; harm_idk < 5; ++harm_idk) { for (int harm_idk = 0; harm_idk < 5; ++harm_idk) {
if (this.harmVol_idk[harm_idk] != 0) { if (this.harmVol_idk[harm_idk] != 0) {
int index = harm_idk + harmDelScaled_idk[harm_idk]; int index = i + harmDelScaled_idk[harm_idk];
if (index < len) { if (index < len) {
buf[index] += this.sample( buf[index] += this.sample(
this.envBaseFreq.waveform, this.envBaseFreq.waveform,