circuitpython/ports/mimxrt10xx/common-hal/audiobusio
Jeff Epler cb5e1a1e98
mimxrt: Fix output frequency for samples that don't divide 192kHz
This makes all the samples from Dan's collection register as 440Hz
when playing on pwmio or i2sout, using https://webaudiodemos.appspot.com/pitchdetect/index.html
to detect the frequency played (all should show as A 440Hz; an error
of up to 20 "cents" should be treated as OK)

There's an audible carrier with PWM output and the 8kHz samples. This is
probably a limitation of the peripheral which is documented as being for
input signals of 44 kHz or 48 kHz; the carrier frequency is a fixed
multiple of the sample frequency.

Closes #7800
2023-03-28 10:18:28 -05:00
..
__init__.c mimxrt: Fix output frequency for samples that don't divide 192kHz 2023-03-28 10:18:28 -05:00
__init__.h mimxrt10xx: implement i2sout 2023-03-22 12:15:25 -05:00
I2SOut.c mimxrt10xx: implement i2sout 2023-03-22 12:15:25 -05:00
I2SOut.h move comment next to its associated #if 2023-03-23 21:11:05 -05:00
PDMIn.c mimxrt10xx: implement i2sout 2023-03-22 12:15:25 -05:00
PDMIn.h mimxrt10xx: implement i2sout 2023-03-22 12:15:25 -05:00