|
|
|
@ -115,24 +115,27 @@ 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) |
|
|
|
|
{ |
|
|
|
|
band = constrain(band, 1, num_bands); |
|
|
|
|
//Q[band - 1] = ;
|
|
|
|
|
band = constrain(band, 1, num_bands); |
|
|
|
|
//Q[band - 1] = ;
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
void AudioControlSGTL5000Plus::setEQGain(uint8_t band, float gain) |
|
|
|
|
{ |
|
|
|
|
if (peakGainDB) |
|
|
|
|