Skip to content

Commit

Permalink
Correct center voice detection in poly mode
Browse files Browse the repository at this point in the history
Closes #197
  • Loading branch information
baconpaul committed Feb 2, 2025
1 parent 6c1bf66 commit 25057ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/synth/synth.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ struct Synth
synth.voices[i].voiceValues.uniIndex = vc;
synth.voices[i].voiceValues.hasCenterVoice = (ct > 1 && (ct % 2 == 1));
synth.voices[i].voiceValues.isCenterVoice =
(ct > 1 && (ct % 2 == 1)) && (std::fabs(uniScale[i]) < 1e-4);
(ct > 1 && (ct % 2 == 1)) && (std::fabs(uniScale[vc]) < 1e-4);
synth.voices[i].voiceValues.uniRatioMul = uniVal[vc];
synth.voices[i].voiceValues.uniPanShift = uniPan[vc];
synth.voices[i].voiceValues.uniPMScale = uniScale[vc];
Expand Down

0 comments on commit 25057ad

Please sign in to comment.