mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Don't divide by 64 any more
This commit is contained in:
parent
3be63230de
commit
0333a631f8
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue