How to use 2 datacursors to dynamically change audio files in GUI's?
4 ビュー (過去 30 日間)
古いコメントを表示
Mayank Amencherla
2013 年 12 月 31 日
コメント済み: Walter Roberson
2014 年 1 月 1 日
In my GUI, I have loaded an audio file ( .wav ) into the variable storedStructure, and saved it in the handles structure - handles.str1
Now, i would like to use 2 data cursors to dynamically alter the audio playing length. For example, if the length of the audio is 5 seconds, if I were to choose 2 cursors at 2 seconds and 4 seconds, it would play only that part of the audio.
I need to put this code right away in my .m file for my GUI.
0 件のコメント
採用された回答
Walter Roberson
2013 年 12 月 31 日
編集済み: Walter Roberson
2013 年 12 月 31 日
Is there a reason why you need to use data cursors instead of (for example) ginput() ?
What is the data cursor to be applied against? Data cursors require a graph, but you have not indicated anything as being graphed. Are you graphing the signal level, or are you graphing the time?
Why not use a couple of sliders?
13 件のコメント
Walter Roberson
2014 年 1 月 1 日
Correction:
plot(handles.Audio, first_samp : nsamp, sig(first_samp:end, :));
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


