Skip to content

Commit

Permalink
[MP2K] Fix GB panning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kermalis committed Jun 5, 2020
1 parent 8316571 commit d8e64de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VG Music Studio/Core/GBA/MP2K/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public override void SetVolume(byte vol, sbyte pan)
{
if (State < EnvelopeState.Releasing)
{
_panpot = pan < -0x20 ? GBPan.Left : pan > 0x20 ? GBPan.Right : GBPan.Center;
_panpot = pan < -21 ? GBPan.Left : pan > 20 ? GBPan.Right : GBPan.Center;
_peakVelocity = (byte)((Note.Velocity * vol) >> 10);
_sustainVelocity = (byte)(((_peakVelocity * _adsr.S) + 0xF) >> 4); // TODO
if (State == EnvelopeState.Playing)
Expand Down

0 comments on commit d8e64de

Please sign in to comment.