Skip to content

Commit

Permalink
Revert "add debug logging for iir filter"
Browse files Browse the repository at this point in the history
This reverts commit 0950baa.
  • Loading branch information
derselbst committed Nov 16, 2024
1 parent 67c104e commit 9e9c51c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/rvoice/fluid_iir_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ DECLARE_FLUID_RVOICE_FUNCTION(fluid_iir_filter_set_fres)

iir_filter->fres = fres;
iir_filter->last_fres = -1.;

FLUID_LOG(FLUID_DBG, "fluid_iir_filter_set_fres: fres= %f [Hz]",fres);
}

static fluid_real_t fluid_iir_filter_q_from_dB(fluid_real_t q_dB)
Expand Down Expand Up @@ -180,8 +178,6 @@ DECLARE_FLUID_RVOICE_FUNCTION(fluid_iir_filter_set_q)
fluid_iir_filter_t *iir_filter = obj;
fluid_real_t q = param[0].real;
int flags = iir_filter->flags;

FLUID_LOG(FLUID_DBG, "fluid_iir_filter_set_q: Q= %f [dB]",q);

if(flags & FLUID_IIR_Q_ZERO_OFF && q <= 0.0)
{
Expand All @@ -200,7 +196,6 @@ DECLARE_FLUID_RVOICE_FUNCTION(fluid_iir_filter_set_q)
q = fluid_iir_filter_q_from_dB(q);
}

FLUID_LOG(FLUID_DBG, "fluid_iir_filter_set_q: Q= %f [linear]",q);
iir_filter->q_lin = q;
iir_filter->filter_gain = 1.0;

Expand Down Expand Up @@ -329,7 +324,7 @@ void fluid_iir_filter_calc(fluid_iir_filter_t *iir_filter,
fres = 5.f;
}

FLUID_LOG(FLUID_DBG, "%f + %f cents = %f cents = %f Hz | Q: %f", iir_filter->fres, fres_mod, iir_filter->fres + fres_mod, fres, iir_filter->q_lin);
// FLUID_LOG(FLUID_INFO, "%f + %f cents = %f cents = %f Hz | Q: %f", iir_filter->fres, fres_mod, iir_filter->fres + fres_mod, fres, iir_filter->q_lin);
/* if filter enabled and there is a significant frequency change.. */
if(iir_filter->type != FLUID_IIR_DISABLED && FLUID_FABS(fres - iir_filter->last_fres) > 0.01f)
{
Expand Down

0 comments on commit 9e9c51c

Please sign in to comment.