I have been rethinking how my slew limiter might work. Unfortunately this SmoothSlew plugin has a bug with changing sound at different samplerates. I am surprised this was not mentioned before. When I prototyped it in reaktor, this bug was not present. I had transferred the reaktor core to C code and never noticed the samplerate bug. Now I am using an AI to generate some basic code! Here is a JSFX script for a new idea:
SmoothSlew still sounds great IMO, and this code is just something totally different. I was also able to fix the samplerate bug easily with the AI, however it added a new parameter which I will not accept for the old version. If you are curious what the hell this code is, just ask an AI for explaination ![Razz :P]()
Code:
desc: Hybrid Slew-Limited Lowpass Filterslider1:delta_scale=1.0<0.1,10.0,0.1>Delta Scale (Sensitivity)in_pin:left inputin_pin:right inputout_pin:left outputout_pin:right output@init// Initialize previous output values for both channelsprev_left = 0.0;prev_right = 0.0;@slider// No additional processing needed here, sliders are updated automatically@sample// Process left channeldelta_left = spl0 - prev_left; // Raw delta (input - previous output)alpha_left = delta_left != 0 ? 1.0 / (abs(delta_left) * delta_scale + 1.0) : 1.0;output_left = prev_left + alpha_left * delta_left;prev_left = output_left;// Process right channeldelta_right = spl1 - prev_right;alpha_right = delta_right != 0 ? 1.0 / (abs(delta_right) * delta_scale + 1.0) : 1.0;output_right = prev_right + alpha_right * delta_right;prev_right = output_right;// Output the processed samplesspl0 = output_left;spl1 = output_right;

Statistics: Posted by camsr — Fri Mar 07, 2025 10:47 am