From bf79b09e6a1684cdc616bd904c38472e2708464a Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 15 Nov 2023 13:21:12 +0000 Subject: [PATCH] Avoid double panning correction --- tracker/agb-midi-core/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tracker/agb-midi-core/src/lib.rs b/tracker/agb-midi-core/src/lib.rs index d68d4d39..17280af2 100644 --- a/tracker/agb-midi-core/src/lib.rs +++ b/tracker/agb-midi-core/src/lib.rs @@ -232,9 +232,7 @@ pub fn parse_midi(midi_info: &MidiInfo) -> TokenStream { effect1: PatternEffect::Volume(Num::from_f32( vel.as_int() as f32 / 128.0 * channel_data.volume, )), - effect2: PatternEffect::Panning(Num::from_f32( - (channel_data.panning + 1.0) / 2.0, - )), + effect2: PatternEffect::Panning(Num::from_f32(channel_data.panning)), }); } midly::MidiMessage::Aftertouch { .. } => {}