Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distorted / buffer overrun / clipping audio problem #13

Open
cementimental opened this issue Jan 18, 2025 · 0 comments
Open

Distorted / buffer overrun / clipping audio problem #13

cementimental opened this issue Jan 18, 2025 · 0 comments

Comments

@cementimental
Copy link

cementimental commented Jan 18, 2025

Hi, discovered espsynth86 recently, very excited to use it as I'd been looking for something similar to the Teensy audio library but which runs on still-easily-affordable board. :) After some messing about I figured out how to get it compiling and uploading fine via Arduino IDE.

I'm using a NodeMCU 1.0 board in PDM mode and it's working but I'm getting extreme tearing distortion whenever any sound goes over a certain level. E.G. even a simple test script with 2 sine waves causes it. If I add a pot-controlled VCA it seems like the distortion starts abruptly as soon as the volume exceeds 50%.

It sounds to me more like buffer overrun or something than simple clipping; really extreme and on the waveform it appears as loud spikes rather than clipped-off wave.

As well as my own tests, the examples and the synth file shared in the comments on this video all sound extremely distorted, completely unlike the clean sound in the video: https://www.youtube.com/watch?v=uRPdX0R1gKY

Tried some different sampling frequencies and bitrates in the example .ino code but that doesn't seem to help.

Also tried it on a Wemos D1 Mini board with the same issue.

Any ideas would be amazing thanks!

@cementimental cementimental changed the title Distorted / buffer overrun audio Distorted / buffer overrun / clipping audio problem Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant