Fix backwards sweep effects

This commit is contained in:
Simon Gellis 2022-01-10 00:14:23 -05:00
parent a96fded0e9
commit 22718d8669

View File

@ -169,9 +169,8 @@ impl Modification {
fn apply_sweep(&mut self, value: u16) -> u16 {
let delta = value >> self.sweep_shift;
match self.sweep_dir {
// Smaller numbers are higher pitches
Direction::Grow => value - delta,
Direction::Decay => value + delta,
Direction::Grow => value + delta,
Direction::Decay => value - delta,
}
}