Skip to content

Commit 0333a63

Browse files
committed
Don't divide by 64 any more
1 parent 3be6323 commit 0333a63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tracker/agb-xm-core/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ static AMIGA_FREQUENCIES: &[u32] = &[
653653
457,
654654
];
655655

656-
#[derive(PartialEq, Eq, Hash, Clone)]
656+
#[derive(PartialEq, Eq, Hash, Clone, Debug)]
657657
struct EnvelopeData {
658658
amounts: Vec<Num<i16, 8>>,
659659
sustain: Option<usize>,
@@ -685,7 +685,7 @@ impl EnvelopeData {
685685
let first_point = &e.point[index];
686686
let second_point = &e.point[index + 1];
687687

688-
let amount = EnvelopePoint::lerp(first_point, second_point, xm_frame) / 64.0;
688+
let amount = EnvelopePoint::lerp(first_point, second_point, xm_frame);
689689
let amount = Num::from_f32(amount);
690690

691691
amounts.push(amount);

0 commit comments

Comments
 (0)