Filtering noise from unused INMP441 channel #1247
-
Hi All, I have successfully built a I2S Digital Amplifier, which consists of an SD card reader, an I2S Microphone (INMP441) linked to an I2S Texas Instruments Class D Amplifier (TAS5760L), all of which is controlled using Phils, Arduino Audio Tools library. Please see previous post #1229. Following on from that post, I am trying to apply effects as per Phil's response, but the unused channel (as I am only using one microphone input) is causing noise as per Phil's WiKi https://github.com/pschatzmann/arduino-audio-tools/wiki/External-ADC#inmp441---mems-microphone Therefore my thought was to convert the input from 2 channels to 1, then applying Audio Effects. However when I do, I still get the noise problem reference in the WiKi. The WiKi states however to try ConverterFillLeftAndRight, but I do not understand how to implement this and cannot find any examples accordingly. I have attempted to convert 2 channels to 1 using the following code:
Regards, Christopher |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
You can use the converter object as parameter when you call copy or you can build your own output chain by adding a ConverterStream Dont forget to specify in the constructor which channel should get overwritten (LeftIsEmpty, RightIsEmpty)! Alternatively you can read the data with 32 bits and then convert it to 16... |
Beta Was this translation helpful? Give feedback.
-
But dont forget to check on which channel you have the issue... |
Beta Was this translation helpful? Give feedback.
-
There was a bug on the reading side of the ConverterStream. I have committed the related correction |
Beta Was this translation helpful? Give feedback.
-
I think there is a small bug: StreamCopy mic(out, converter); copies directly to the output w/o effects. |
Beta Was this translation helpful? Give feedback.
But dont forget to check on which channel you have the issue...