circuitpython/shared-bindings/audiopwmio
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
..
PWMAudioOut.c mimxrt: Fix output frequency for samples that don't divide 192kHz 2023-03-28 10:18:28 -05:00
PWMAudioOut.h run code formatting script 2021-03-15 19:27:36 +05:30
__init__.c run black_bindings across all bindings 2022-09-27 15:21:42 -05:00
__init__.h wip 2020-11-22 19:10:09 -05:00