Small fixes.

pull/89/head
Holger Wirtz 3 years ago
parent 5fe3505140
commit 46a942428d
  1. 1
      MicroDexed.ino
  2. 21
      control_sgtl5000plus.cpp

@ -301,7 +301,6 @@ void create_audio_drum_chain(uint8_t instance_id)
}
#endif
StaticJsonDocument<JSON_BUFFER_SIZE> data_json;
uint8_t sd_card = 0;
Sd2Card card;
SdVolume volume;

@ -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)

Loading…
Cancel
Save