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