From 3861615d3372a35fd2c4ae747d0c3e8a78ff2769 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sat, 2 Jul 2022 07:51:36 +0200 Subject: [PATCH] fixed stupid bug in the ctrl quantizer --- src/dsp/helpers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsp/helpers.rs b/src/dsp/helpers.rs index ce12140..493f673 100644 --- a/src/dsp/helpers.rs +++ b/src/dsp/helpers.rs @@ -2407,8 +2407,8 @@ impl CtrlPitchQuantizer { pub fn update_keys(&mut self, mut mask: i64, min_oct: i64, max_oct: i64) { let inp_params = (mask as u64) - | ((min_oct as u64) << 8) - | ((max_oct as u64) << 16); + | ((min_oct as u64) << 12) + | ((max_oct as u64) << 20); if self.input_params == inp_params { return;