|
|
|
@ -115,17 +115,18 @@ void AudioControlSGTL5000Plus::setEQFc(uint8_t band, float frq) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Calculate Q: http://www.sengpielaudio.com/calculator-bandwidth.htm
|
|
|
|
|
/* void AudioControlSGTL5000Plus::setEQQ(uint8_t band, float q)
|
|
|
|
|
void AudioControlSGTL5000Plus::setEQQ(uint8_t band, float q) |
|
|
|
|
{ |
|
|
|
|
if (Q) |
|
|
|
|
{ |
|
|
|
|
band = constrain(band, 1, num_bands); |
|
|
|
|
Q[band - 1] = q; |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void setEQBandwidth(uint8_t band, float bw); |
|
|
|
|
/*
|
|
|
|
|
// Calculate Q: http://www.sengpielaudio.com/calculator-bandwidth.htm
|
|
|
|
|
void setEQBandwidth(uint8_t band, float bw) |
|
|
|
|
{ |
|
|
|
|
if (Q && Fc) |
|
|
|
|
{ |
|
|
|
@ -133,6 +134,8 @@ void setEQBandwidth(uint8_t band, float bw); |
|
|
|
|
//Q[band - 1] = ;
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
void AudioControlSGTL5000Plus::setEQGain(uint8_t band, float gain) |
|
|
|
|
{ |
|
|
|
|
if (peakGainDB) |
|
|
|
|