Skip to content

Commit

Permalink
Don't divide by 64 any more
Browse files Browse the repository at this point in the history
  • Loading branch information
gwilymk committed Nov 6, 2024
1 parent 3be6323 commit 0333a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracker/agb-xm-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ static AMIGA_FREQUENCIES: &[u32] = &[
457,
];

#[derive(PartialEq, Eq, Hash, Clone)]
#[derive(PartialEq, Eq, Hash, Clone, Debug)]
struct EnvelopeData {
amounts: Vec<Num<i16, 8>>,
sustain: Option<usize>,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0333a63

Please sign in to comment.