Don't divide by 64 any more

This commit is contained in:
Gwilym Inzani 2024-11-06 09:59:34 +00:00
parent 3be63230de
commit 0333a631f8

View file

@ -653,7 +653,7 @@ static AMIGA_FREQUENCIES: &[u32] = &[
457, 457,
]; ];
#[derive(PartialEq, Eq, Hash, Clone)] #[derive(PartialEq, Eq, Hash, Clone, Debug)]
struct EnvelopeData { struct EnvelopeData {
amounts: Vec<Num<i16, 8>>, amounts: Vec<Num<i16, 8>>,
sustain: Option<usize>, sustain: Option<usize>,
@ -685,7 +685,7 @@ impl EnvelopeData {
let first_point = &e.point[index]; let first_point = &e.point[index];
let second_point = &e.point[index + 1]; 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); let amount = Num::from_f32(amount);
amounts.push(amount); amounts.push(amount);