Progress bar music, update in real time

조회 수: 2 (최근 30일)
Thibault
Thibault 2014년 3월 25일
편집: Joseph Cheng 2014년 3월 25일
Hi,
I'm doing a music reader with matlab. I'd like to add a progress bar for the music, a slider I think. But I have a problem : How can I update the slider in real time during the play back of the music ?
Thank you

답변 (2개)

Suneesh
Suneesh 2014년 3월 25일
  댓글 수: 1
Thibault
Thibault 2014년 3월 25일
Thank you but I'd like to use a slider because I want to have the possibility to choose the part of the music I want to play.

댓글을 달려면 로그인하십시오.


Joseph Cheng
Joseph Cheng 2014년 3월 25일
편집: Joseph Cheng 2014년 3월 25일
I do not have the time just at this moment to try it out but this link http://www.mathworks.com/matlabcentral/answers/95933 does seem applicable. Looks like you can use the player.TimerFcn to call a function that increments the slider as it plays. Will need to play and read up a bit to figure out how to get the slider update if it is manually moved and skip to the correct audio time .

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by