Play a tone at a certain interval(s) and keep data at 100Hz
Afficher commentaires plus anciens
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.
Réponses (0)
Catégories
En savoir plus sur Audio and Video Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!