Search found 32 matches

by benbiles
Fri Dec 20, 2019 6:31 pm
Forum: ESP-IDF
Topic: How to configure LyraT v. 4.3 board to sample audio data from AUX input?
Replies: 4
Views: 5919

Re: How to configure LyraT v. 4.3 board to sample audio data from AUX input?

oh sorry I think I posted reply to wrong thread :o
by benbiles
Fri Dec 20, 2019 6:26 pm
Forum: ESP-IDF
Topic: How to configure LyraT v. 4.3 board to sample audio data from AUX input?
Replies: 4
Views: 5919

Re: How to configure LyraT v. 4.3 board to sample audio data from AUX input?

#include "esp_system.h" #include "es8388.h" main() { // sets ADC input gain 0 = 0db lineIn es8388_set_mic_gain(0); } If theres something you need that's not in es8388.c then write the registers over I2C by following datasheet. see how the functions are writing registers to the codec in es8388.c and ...
by benbiles
Fri Dec 20, 2019 6:56 am
Forum: ESP-ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 23
Views: 23474

Re: applying esp-dsp IIR biquad to pipeline or element ?

Awsome if you want to share your EQ code later !
would love to see how it's working. :D
by benbiles
Fri Dec 20, 2019 6:52 am
Forum: ESP-ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 23
Views: 23474

Re: applying esp-dsp IIR biquad to pipeline or element ?

fixed the buzzing ( was samples out of range +1 -1 float ) I (443) EQUALIZER: Impulse response of IIR filter with F=0.250000, qFactor=4.000000 I (453) view: Data min[2] = -1.535849, Data max[0] = 1.975187 ________________________________________________________________ 0xxx | 1xxxxx | 2xxxxxxx | 3xx...
by benbiles
Fri Dec 20, 2019 4:27 am
Forum: ESP-ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 23
Views: 23474

Re: applying esp-dsp IIR biquad to pipeline or element ?

did a test bypassing DSP int16 --> float --> int16 and its stereo again.

you are correct , ESP32 has no problem with that conversion.

so something strange happening to the samples in the DSP library making the samples mono and a small buzzing !

will post here if I can find out why.
by benbiles
Fri Dec 20, 2019 3:21 am
Forum: ESP-ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 23
Views: 23474

Re: applying esp-dsp IIR biquad to pipeline or element ?

Interesting, so I could just do the biquad eq in C maybe. How come your using inline double in your example rather than float? Inline double is a 64bit float? I should take a look at how the 10 band eq in eualizer.c is actually working!! It's probebly exactly that 😂 Equalizer.c is limited to - 13db ...
by benbiles
Thu Dec 19, 2019 3:36 pm
Forum: ESP-ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 23
Views: 23474

Re: applying esp-dsp IIR biquad to pipeline or element ?

working :D :D :D int16 samples --> float --> DSP --> float --> int16 samples I'll check if I can use the ESP-DSP lib maths functions to see if I can translate the int16 samples to and from float. The main problem apart from converting the samples to float and back was my IIR coefficients i'd generat...
by benbiles
Thu Dec 19, 2019 7:33 am
Forum: ESP-ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 23
Views: 23474

Re: applying esp-dsp IIR biquad to pipeline or element ?

Thanks for the offer of the EQ code , not sure I have the coding ability to convert PC code to ESP32 ! might come back here asking for it if I fail to figure out how to just use the IDF-DSP lib. your right , the codec 'ES8388' on lyrat 4.3 is max 24-bit 96 kHz sampling frequency ( in fact 96khz is'n...
by benbiles
Wed Dec 18, 2019 9:06 am
Forum: ESP-ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 23
Views: 23474

Re: applying esp-dsp IIR biquad to pipeline or element ?

It looks like I got your hacked equalizer.c code working but maybe in a lightly different way. audio_element_handle_t Dsp_init() // no equalizer array to pass in ! { audio_element_cfg_t DspCfg; // = DEFAULT_AUDIO_ELEMENT_CONFIG(); memset(&DspCfg, 0, sizeof(audio_element_cfg_t)); DspCfg.destroy = Dsp...
by benbiles
Tue Dec 17, 2019 5:53 am
Forum: ESP-ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 23
Views: 23474

Re: applying esp-dsp IIR biquad to pipeline or element ?

Hi shabtronic! Thanks for this ! You saved me hours of head scratching and have done exactly what I thought I needed to do! Did you just add your additional dsp functions etc to the equalizer.c or did you make a new file dspProcess.c and a dspProcess.h header? I'll try and insert my code to your Dsp...