removed DC offset stuff from BOsc and the all pass has a more standard implementation again now.
This commit is contained in:
parent
dae7c512eb
commit
0f344b0fc1
3 changed files with 3 additions and 11 deletions
|
@ -50,13 +50,6 @@ const DAT_LEFT_TAPS_TIME_MS : [f64; 7] = [
|
|||
];
|
||||
|
||||
const DAT_RIGHT_TAPS_TIME_MS : [f64; 7] = [
|
||||
// 266.0 / DAT_SAMPLES_PER_MS,
|
||||
// 2974.0 / DAT_SAMPLES_PER_MS,
|
||||
// 1913.0 / DAT_SAMPLES_PER_MS,
|
||||
// 1996.0 / DAT_SAMPLES_PER_MS,
|
||||
// 1990.0 / DAT_SAMPLES_PER_MS,
|
||||
// 187.0 / DAT_SAMPLES_PER_MS,
|
||||
// 1066.0 / DAT_SAMPLES_PER_MS,
|
||||
353.0 / DAT_SAMPLES_PER_MS,
|
||||
3627.0 / DAT_SAMPLES_PER_MS,
|
||||
1228.0 / DAT_SAMPLES_PER_MS,
|
||||
|
@ -380,7 +373,6 @@ impl DattorroReverb {
|
|||
let out_hpf = self.input_hpf.process(out_lpf);
|
||||
|
||||
// HPF => Pre-Delay
|
||||
// let out_pre_delay = out_hpf;
|
||||
let out_pre_delay =
|
||||
self.pre_delay.next_cubic(params.pre_delay_time_ms(), out_hpf);
|
||||
|
||||
|
|
|
@ -898,9 +898,9 @@ impl<F: Flt> AllPass<F> {
|
|||
#[inline]
|
||||
pub fn next(&mut self, time_ms: F, g: F, v: F) -> F {
|
||||
let s = self.delay.linear_interpolate_at(time_ms);
|
||||
let input = v + g * s;
|
||||
let input = v + -g * s;
|
||||
self.delay.feed(input);
|
||||
input * -g + s
|
||||
input * g + s
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ impl DspNode for BOsc {
|
|||
let pw = denorm::BOsc::pw(pw, frame);
|
||||
out.write(
|
||||
frame,
|
||||
self.osc.next_pulse(freq, israte, pw));
|
||||
self.osc.next_pulse_no_dc(freq, israte, pw));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue