remove debug prints

This commit is contained in:
Weird Constructor 2022-06-25 08:37:05 +02:00
parent 74068fae1c
commit d4d027183b
6 changed files with 8 additions and 12 deletions

View file

@ -1081,8 +1081,8 @@ macro_rules! make_node_info_enum {
node_desc: "Nop Desc", node_desc: "Nop Desc",
node_name: "Nop", node_name: "Nop",
norm_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), denorm_v: std::rc::Rc::new(|_i, x| x),
}, },
$(NodeId::$variant(_) => crate::dsp::ni::$variant(nid)),+ $(NodeId::$variant(_) => crate::dsp::ni::$variant(nid)),+
} }

View file

@ -152,10 +152,10 @@ impl DspNode for BiqFilt {
} }
for frame in 0..ctx.nframes() { 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 freq = freq.clamp($minfreq, $maxfreq);
let q = denorm::BiqFilt::q(q, frame); // let q = denorm::BiqFilt::q(q, frame);
let gain = denorm::BiqFilt::gain(gain, frame); // let gain = denorm::BiqFilt::gain(gain, frame);
let mut s = inp.read(frame); let mut s = inp.read(frame);
for i in 0..=order { for i in 0..=order {

View file

@ -8,7 +8,7 @@ use crate::dsp::{
out, inp, DspNode, LedPhaseVals, NodeContext out, inp, DspNode, LedPhaseVals, NodeContext
}; };
use crate::dsp::helpers::{FixedOnePole, DelayBuffer}; use crate::dsp::helpers::{FixedOnePole, DelayBuffer};
use crate::dsp::biquad::{Biquad, BiquadCoefs}; use crate::dsp::biquad::Biquad;
// Bowed String instrument oscillator // Bowed String instrument oscillator
// Bowed string model, a la Smith (1986), // Bowed string model, a la Smith (1986),
@ -189,7 +189,7 @@ impl DspNode for BowStri {
let mut last_val = 0.0; let mut last_val = 0.0;
for frame in 0..ctx.nframes() { for frame in 0..ctx.nframes() {
// The BowStri oscillator is usually off by ~30 cent per octave, // 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. // at 440 Hz.
// Calculate some tune correction here based on the // Calculate some tune correction here based on the
// normalized value (-0.2 is 110Hz, 0.0 is 440Hz, ...): // normalized value (-0.2 is 110Hz, 0.0 is 440Hz, ...):

View file

@ -120,8 +120,6 @@ impl DspNode for CQnt {
self.quant.update_keys(keys.i(), omin.i(), omax.i()); self.quant.update_keys(keys.i(), omin.i(), omax.i());
let mut last_key = 0;
for frame in 0..ctx.nframes() { for frame in 0..ctx.nframes() {
let pitch = let pitch =
self.quant.signal_to_pitch( self.quant.signal_to_pitch(

View file

@ -211,10 +211,8 @@ impl DspNode for PVerb {
if (nctx.in_connected & 0x03) != 0x03 { if (nctx.in_connected & 0x03) != 0x03 {
if nctx.in_connected & 0x01 == 0x01 { if nctx.in_connected & 0x01 == 0x01 {
println!("ONLY L");
in_r = in_l; in_r = in_l;
} else if nctx.in_connected & 0x02 == 0x02 { } else if nctx.in_connected & 0x02 == 0x02 {
println!("ONLY R");
in_l = in_r; in_l = in_r;
} }
} }

View file

@ -75,7 +75,7 @@ impl DspNode for Quant {
#[inline] #[inline]
fn process<T: NodeAudioContext>( fn process<T: NodeAudioContext>(
&mut self, ctx: &mut T, _ectx: &mut NodeExecContext, &mut self, ctx: &mut T, _ectx: &mut NodeExecContext,
nctx: &NodeContext, _nctx: &NodeContext,
atoms: &[SAtom], inputs: &[ProcBuf], atoms: &[SAtom], inputs: &[ProcBuf],
outputs: &mut [ProcBuf], ctx_vals: LedPhaseVals) outputs: &mut [ProcBuf], ctx_vals: LedPhaseVals)
{ {