From 0a138420ad9d6f9e61ef0726859f8bc8591f2fd6 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 31 May 2025 11:47:20 +0200 Subject: [PATCH] when clipper threshold set too high the whole mpx goes? what the fuck --- dsp/oscillator.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dsp/oscillator.c b/dsp/oscillator.c index b2f864f..0e4dcc9 100644 --- a/dsp/oscillator.c +++ b/dsp/oscillator.c @@ -34,9 +34,7 @@ float get_oscillator_cos_multiplier_ni(Oscillator *osc, float multiplier) { return cosf(new_phase); } -void advance_oscillator(Oscillator *osc) { +inline void advance_oscillator(Oscillator *osc) { osc->phase += osc->phase_increment; - if (osc->phase >= M_2PI) { - osc->phase -= M_2PI; - } + if (osc->phase >= M_2PI) osc->phase -= M_2PI; } \ No newline at end of file