You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (type === DSP.PEAKING_EQ || type === DSP.LOW_SHELF || type === DSP.HIGH_SHELF ) { A = Math.pow(10, (this.dBgain/40)); // for peaking and shelving EQ filters only } else { A = Math.sqrt( Math.pow(10, (this.dBgain/20)) );
can probably be replaced with...
A = Math.sqrt( Math.pow(10, (this.dBgain/20)) );
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Needless code in recalculateCoefficients
Duplicated code in recalculateCoefficients
Jun 9, 2018
ghost
changed the title
Duplicated code in recalculateCoefficients
Duplicate code in recalculateCoefficients
Jun 9, 2018
Fwiw, this code...
if (type === DSP.PEAKING_EQ || type === DSP.LOW_SHELF || type === DSP.HIGH_SHELF ) {
A = Math.pow(10, (this.dBgain/40)); // for peaking and shelving EQ filters only
} else {
A = Math.sqrt( Math.pow(10, (this.dBgain/20)) );
can probably be replaced with...
A = Math.sqrt( Math.pow(10, (this.dBgain/20)) );
The text was updated successfully, but these errors were encountered: