3 Band Equilizer #16
-
Hello Thanks for your nice work with your Audio Tools Lib |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
I just extended it a bit. But please notice that I did not have the time to test this class. The use is pretty simple: just look at the documentation |
Beta Was this translation helpful? Give feedback.
-
So if you use the https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-audiokit-audiokit/streams-audiokit-audiokit.ino as starting point: StreamCopy copier(eq, kit); // copy kit with eq to kit to set up the eq parameters auto eqcfg = eq.defaultConfig(); To update the settings just change |
Beta Was this translation helpful? Give feedback.
-
I think you work still with an old version of the library |
Beta Was this translation helpful? Give feedback.
-
i have download them last week as the postman was bring my lyrat bord two day i was invest to your nice FFT lib who is quckliy but i was have some proplem will try today maybe RealFFT alone without AudioFFT will work for me thanks in advance bernhard |
Beta Was this translation helpful? Give feedback.
-
You should not use doubles but stick to floats. ps. you will need to upgrade the library to use the new functionality! |
Beta Was this translation helpful? Give feedback.
-
i have llok into new sources and the new but would in not better to for (int j=0;j<size()/2;j++) couse it is only the half of the array usfull t read thanks in advance bernhard |
Beta Was this translation helpful? Give feedback.
-
You are right: I was mixing up the meaning of size(). It was intended to provide the number of relevant bins for the result: cfg.length/2. |
Beta Was this translation helpful? Give feedback.
So if you use the https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-audiokit-audiokit/streams-audiokit-audiokit.ino as starting point:
Just use Equilizer3Bands eq(kit);
And replace the eq as copy source or copy target. It should not make any difference:
StreamCopy copier(eq, kit); // copy kit with eq to kit
or
StreamCopy copier(kit, eq); // copy kit to kit with eq
to set up the eq parameters
auto eqcfg = eq.defaultConfig();
eqcfg.bits_per_sample = kit.bits_per_sample;
eqcfg.channels = kit.channels;
eqcfg.sample_rate = kit.sample_rate;
eq.begin(eqcfg);
To update the settings just change
eqcfg. gain_high or gain_low or gain_medium