Play a tone at a certain interval(s) and keep data at 100Hz

4 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by