In order to remove the annoying audible clicks, I have rewritten the AudioOut to detect the input frequency and to generate a pure sine wave cycle.
The code is heavely based on Frequenciometer.
Attached patch and Arduino Mega example.
BTW, SimulIDE cannot compile INO files with a .h in the same folder. To solve it I have created a pseudo-library:
arduino-1.8.13/libraries/pitches/pitches.h
Best regards.
The code is heavely based on Frequenciometer.
Attached patch and Arduino Mega example.
BTW, SimulIDE cannot compile INO files with a .h in the same folder. To solve it I have created a pseudo-library:
arduino-1.8.13/libraries/pitches/pitches.h
Best regards.
- Attachments
- audio_out.zip
- Patch and example
- You don't have permission to download attachments.
- (7 Kb) Downloaded 4 times