Pushbotton which can not be controled with a 'Pause' command.
Show older comments
Hi!
I hope someone can help me with this. I've made a GUI and what it does is: when the user press button 1 it ask's the user to choose a wav file. If they press button 2, there is a denoiser which removes some ambient noise included in the files. And then if they press button 3, it starts to play the wav file in segments of 5 seconds.
In my code, I included a 'Pause' command in the point of segmenting the wav in 5 seconds window, which works when im running the code without the gui figure. Supose this button 3 is called 'Next sample' and what i want is the user press that button and hear the first 5 seconds. Then when he press again, the next 5 seconds are played and we can repeat this process until the wav file ends.
Now, my problem is: The user can play a sample of 5 seconds and then press the button of denoising again, and maybe he wants to continue hearing the next 5 seconds of the wav, that's why that 'pause' command is not working for what i want to do. What i need is to play 5 seconds and stay in that point but without that pause comand. Then whenever the user wants to play the next 5 seconds, he/she press the 'next sample' button again and hears the next 5 second.
Any ideas? I hope i explained the situation in a way you guys can understand me.
Thanks!
2 Comments
Walter Roberson
on 26 Jan 2014
I do not understand why you have included the pause() ?
Reeki
on 26 Jan 2014
Accepted Answer
More Answers (0)
Categories
Find more on Entering Commands 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!