From 0333a631f89cc1ebd79ce0119d44d6616cb59a37 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 6 Nov 2024 09:59:34 +0000 Subject: [PATCH] Don't divide by 64 any more --- tracker/agb-xm-core/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracker/agb-xm-core/src/lib.rs b/tracker/agb-xm-core/src/lib.rs index ba3b399a..c7117b83 100644 --- a/tracker/agb-xm-core/src/lib.rs +++ b/tracker/agb-xm-core/src/lib.rs @@ -653,7 +653,7 @@ static AMIGA_FREQUENCIES: &[u32] = &[ 457, ]; -#[derive(PartialEq, Eq, Hash, Clone)] +#[derive(PartialEq, Eq, Hash, Clone, Debug)] struct EnvelopeData { amounts: Vec>, sustain: Option, @@ -685,7 +685,7 @@ impl EnvelopeData { let first_point = &e.point[index]; let second_point = &e.point[index + 1]; - let amount = EnvelopePoint::lerp(first_point, second_point, xm_frame) / 64.0; + let amount = EnvelopePoint::lerp(first_point, second_point, xm_frame); let amount = Num::from_f32(amount); amounts.push(amount);