Skip to content

Commit

Permalink
Fix pitch calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziemas committed May 7, 2022
1 parent 3c8bb96 commit 347f6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/sound/989snd/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ std::pair<s16, s16> pitchbend(Tone& tone,
int current_pm,
int start_note,
int start_fine) {
auto v9 = (start_note << 7) + start_fine * current_pm;
auto v9 = (start_note << 7) + start_fine + current_pm;
u32 v7;
if (current_pb >= 0)
v7 = tone.PBHigh * (current_pb << 7) / 0x7fff + v9;
Expand Down

0 comments on commit 347f6e0

Please sign in to comment.