However the sound comes out too low.
I need to use sine waves, with frequency (close to) 10kHz and 5kHz, with duration of 5 milliseconds.
I also need to create an envelope to the sound (fade in and fade out to prevent the "TICS" at the beginning and end of the sound).
I thought that maybe creating the sound in tje arduino itself and not playing then through the mp3 will give better results?
Is there a way to implement such sounds in Arduino mega?
If yes, does anyone know where I can find a reference to such implementation
(I am a beginner in Arduino so it would be better for me if there was something detailed)
I attach an example of the sound I need to create.
here is the link (attach option was not available)
I created this sound by Matklab.
Thanks a lot!