Play a tone at a certain interval(s) and keep data at 100Hz
5 views (last 30 days)
Show older comments
Hopefully someone out there can help me with this one: I need to play a tone/beep sound (like a metronome) for about 20 seconds.
Specifically, a .wav file needs to sound at a certain interval (e.g., twice a second) for a certain period of time (e.g., 30 seconds) while saving an output vector of when the sound/tone was made (I have also just made a tone and played that opposed to playing a .wav file).
The goal is to have an output file that saves the integer "1" when the sound is playing and "0" when it is not. And, of course, I need the vector of ones and zeros needs to be at 100Hz.
I can create a sound, play a sound, but have not been able to find a solution or solve the rest of the problems. Anything to point me in the right direction will greatly be appreciated and paid forward.
0 Comments
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!