mirror of
https://github.com/SupernaviX/vvb.git
synced 2024-11-30 05:40:23 +00:00
Fix backwards sweep effects
This commit is contained in:
parent
a96fded0e9
commit
22718d8669
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user