Answer the question
In order to leave comments, you need to log in
WAV how to pull the list of frequencies?
Good day!
There was a task to play sound from arduino (something like beep-beep), there is a WAV file with this sound.
I remember in the old days "player" was written in Pascal, there was an array of frequencies that were alternately transferred to a certain function, thanks to which the tweeter gave me "music". For the arduino tone()
, I found a function with the help of which all the same is done.
It remains to figure out how to pull out a list of frequencies from a WAV file (well, or RAW, or something else) and put it all on the buzzer.
Well, or what is the other option?
Thanks in advance to everyone who helps out!
Answer the question
In order to leave comments, you need to log in
The Fourier transform is engaged in pulling out the frequencies. But to play wav, you do not need to pull out the frequencies - you just need to change the voltage at one of the controller outputs with the desired frequency.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question