remove debug prints
This commit is contained in:
parent
74068fae1c
commit
d4d027183b
6 changed files with 8 additions and 12 deletions
|
@ -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)),+
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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, ...):
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ impl DspNode for Quant {
|
|||
#[inline]
|
||||
fn process<T: NodeAudioContext>(
|
||||
&mut self, ctx: &mut T, _ectx: &mut NodeExecContext,
|
||||
nctx: &NodeContext,
|
||||
_nctx: &NodeContext,
|
||||
atoms: &[SAtom], inputs: &[ProcBuf],
|
||||
outputs: &mut [ProcBuf], ctx_vals: LedPhaseVals)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue