From d4d027183ba7380a60de9d4a1e385679f2494fa4 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sat, 25 Jun 2022 08:37:05 +0200 Subject: [PATCH] remove debug prints --- src/dsp/mod.rs | 4 ++-- src/dsp/node_biqfilt.rs | 6 +++--- src/dsp/node_bowstri.rs | 4 ++-- src/dsp/node_cqnt.rs | 2 -- src/dsp/node_pverb.rs | 2 -- src/dsp/node_quant.rs | 2 +- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/dsp/mod.rs b/src/dsp/mod.rs index e71a80b..3213e7d 100644 --- a/src/dsp/mod.rs +++ b/src/dsp/mod.rs @@ -1081,8 +1081,8 @@ macro_rules! make_node_info_enum { node_desc: "Nop Desc", node_name: "Nop", - norm_v: std::rc::Rc::new(|i, x| x), - denorm_v: std::rc::Rc::new(|i, x| x), + norm_v: std::rc::Rc::new(|_i, x| x), + denorm_v: std::rc::Rc::new(|_i, x| x), }, $(NodeId::$variant(_) => crate::dsp::ni::$variant(nid)),+ } diff --git a/src/dsp/node_biqfilt.rs b/src/dsp/node_biqfilt.rs index e736b55..8d749d0 100644 --- a/src/dsp/node_biqfilt.rs +++ b/src/dsp/node_biqfilt.rs @@ -152,10 +152,10 @@ impl DspNode for BiqFilt { } for frame in 0..ctx.nframes() { - let freq = denorm::BiqFilt::freq(freq, frame); +// let freq = denorm::BiqFilt::freq(freq, frame); // let freq = freq.clamp($minfreq, $maxfreq); - let q = denorm::BiqFilt::q(q, frame); - let gain = denorm::BiqFilt::gain(gain, frame); +// let q = denorm::BiqFilt::q(q, frame); +// let gain = denorm::BiqFilt::gain(gain, frame); let mut s = inp.read(frame); for i in 0..=order { diff --git a/src/dsp/node_bowstri.rs b/src/dsp/node_bowstri.rs index 27d42f9..61c08b3 100644 --- a/src/dsp/node_bowstri.rs +++ b/src/dsp/node_bowstri.rs @@ -8,7 +8,7 @@ use crate::dsp::{ out, inp, DspNode, LedPhaseVals, NodeContext }; use crate::dsp::helpers::{FixedOnePole, DelayBuffer}; -use crate::dsp::biquad::{Biquad, BiquadCoefs}; +use crate::dsp::biquad::Biquad; // Bowed String instrument oscillator // Bowed string model, a la Smith (1986), @@ -189,7 +189,7 @@ impl DspNode for BowStri { let mut last_val = 0.0; for frame in 0..ctx.nframes() { // The BowStri oscillator is usually off by ~30 cent per octave, - // that makes it off by 1 semitone at about 1760Hz and off by ~30 + // that makes it off by 1 semitone at about 1760Hz and off by ~30c // at 440 Hz. // Calculate some tune correction here based on the // normalized value (-0.2 is 110Hz, 0.0 is 440Hz, ...): diff --git a/src/dsp/node_cqnt.rs b/src/dsp/node_cqnt.rs index 4e24cdd..dc8b12a 100644 --- a/src/dsp/node_cqnt.rs +++ b/src/dsp/node_cqnt.rs @@ -120,8 +120,6 @@ impl DspNode for CQnt { self.quant.update_keys(keys.i(), omin.i(), omax.i()); - let mut last_key = 0; - for frame in 0..ctx.nframes() { let pitch = self.quant.signal_to_pitch( diff --git a/src/dsp/node_pverb.rs b/src/dsp/node_pverb.rs index 56c35ca..af2299d 100644 --- a/src/dsp/node_pverb.rs +++ b/src/dsp/node_pverb.rs @@ -211,10 +211,8 @@ impl DspNode for PVerb { if (nctx.in_connected & 0x03) != 0x03 { if nctx.in_connected & 0x01 == 0x01 { - println!("ONLY L"); in_r = in_l; } else if nctx.in_connected & 0x02 == 0x02 { - println!("ONLY R"); in_l = in_r; } } diff --git a/src/dsp/node_quant.rs b/src/dsp/node_quant.rs index 66f2f2c..fc83593 100644 --- a/src/dsp/node_quant.rs +++ b/src/dsp/node_quant.rs @@ -75,7 +75,7 @@ impl DspNode for Quant { #[inline] fn process( &mut self, ctx: &mut T, _ectx: &mut NodeExecContext, - nctx: &NodeContext, + _nctx: &NodeContext, atoms: &[SAtom], inputs: &[ProcBuf], outputs: &mut [ProcBuf], ctx_vals: LedPhaseVals) {