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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!