Couple of assertions suggestion


#1

for the StateVariableFilter parameters :

    void setCutOffFrequency (double sampleRate, NumericType frequency,
                             NumericType resonance = static_cast<NumericType> (1.0 / std::sqrt (2.0))) noexcept
    {
        jassert (sampleRate > 0.0);
        jassert (resonance > (NumericType) 0.0);
        jassert (frequency > (NumericType) 0.0 && frequency <= NumericType (sampleRate * 0.5));

        g  = static_cast<NumericType> (std::tan (double_Pi * frequency / sampleRate));
        R2 = static_cast<NumericType> (1.0 / resonance);
        h  = static_cast<NumericType> (1.0 / (1.0 + R2 * g + g * g));

#2

Thanks, good suggestion!