|
|
|
@ -30,31 +30,31 @@ |
|
|
|
|
|
|
|
|
|
#define EQ_TYPE_0 FILTER_HIPASS |
|
|
|
|
#define EQ_CENTER_FRQ_0 50.0 |
|
|
|
|
#define EQ_Q_0 0.5 |
|
|
|
|
#define EQ_Q_0 0.126984 |
|
|
|
|
|
|
|
|
|
#define EQ_TYPE_1 FILTER_PARAEQ |
|
|
|
|
#define EQ_CENTER_FRQ_1 120.0 |
|
|
|
|
#define EQ_Q_1 0.5 |
|
|
|
|
#define EQ_Q_1 0.126984 |
|
|
|
|
|
|
|
|
|
#define EQ_TYPE_2 FILTER_PARAEQ |
|
|
|
|
#define EQ_CENTER_FRQ_2 220.0 |
|
|
|
|
#define EQ_Q_2 0.5 |
|
|
|
|
#define EQ_Q_2 0.126984 |
|
|
|
|
|
|
|
|
|
#define EQ_TYPE_3 FILTER_PARAEQ |
|
|
|
|
#define EQ_CENTER_FRQ_3 1000.0 |
|
|
|
|
#define EQ_Q_3 0.5 |
|
|
|
|
#define EQ_Q_3 0.126984 |
|
|
|
|
|
|
|
|
|
#define EQ_TYPE_4 FILTER_PARAEQ |
|
|
|
|
#define EQ_CENTER_FRQ_4 2000.0 |
|
|
|
|
#define EQ_Q_4 0.5 |
|
|
|
|
#define EQ_Q_4 0.126984 |
|
|
|
|
|
|
|
|
|
#define EQ_TYPE_5 FILTER_PARAEQ |
|
|
|
|
#define EQ_CENTER_FRQ_5 7000.0 |
|
|
|
|
#define EQ_Q_5 0.5 |
|
|
|
|
#define EQ_Q_5 0.126984 |
|
|
|
|
|
|
|
|
|
#define EQ_TYPE_6 FILTER_LOPASS |
|
|
|
|
#define EQ_CENTER_FRQ_6 10000.0 |
|
|
|
|
#define EQ_Q_6 0.5 |
|
|
|
|
#define EQ_Q_6 0.126984 |
|
|
|
|
|
|
|
|
|
class AudioControlSGTL5000Plus : public AudioControlSGTL5000 |
|
|
|
|
{ |
|
|
|
@ -66,6 +66,7 @@ class AudioControlSGTL5000Plus : public AudioControlSGTL5000 |
|
|
|
|
void setEQType(uint8_t band, uint8_t ft); |
|
|
|
|
void setEQFc(uint8_t band, float frq); |
|
|
|
|
void setEQQ(uint8_t band, float q); |
|
|
|
|
//void setEQBandwidth(uint8_t band, float bw);
|
|
|
|
|
void setEQGain(uint8_t band, float gain); |
|
|
|
|
void commitFilter(uint8_t band); |
|
|
|
|
void show_params(uint8_t band); |
|
|
|
|