Hi all,
I am new to MATLAB GUI... please advise how should i get things starts :(
I have tried to work out the thing but no result till now..
I am trying to work out a GUI that have three button
Record : To initiate the recording
Stop: To stop the recording
Playback: To play back the recording
I am refering this Matlab page for play back .m code...
http://www.mathworks.com/help/techdoc/ref/audiorecorder.record.html
Then i created a .fig with 3 buttons.. then i tried to intergertae the code for record-stop-playback in the .fiig file... but i can work it out....
Please show me the steps how should i get the things correct...
Very appreciate for your guide...
*--------------------------------------------------------------------------------------------------------*
Below is the stupid attempt i did before:
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myVoice = audiorecorder;
record(myVoice);
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
stop;
% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
play(myVoice);
|
|
0
|
|
|
|
Reply
|
st
|
1/11/2011 4:03:05 AM |
|
"st " <cell_st@hotmail.com> wrote in message <iggkpp$j2d$1@fred.mathworks.com>...
> Hi all,
> I am new to MATLAB GUI... please advise how should i get things starts :(
> I have tried to work out the thing but no result till now..
>
> I am trying to work out a GUI that have three button
> Record : To initiate the recording
> Stop: To stop the recording
> Playback: To play back the recording
>
> I am refering this Matlab page for play back .m code...
> http://www.mathworks.com/help/techdoc/ref/audiorecorder.record.html
>
> Then i created a .fig with 3 buttons.. then i tried to intergertae the code for record-stop-playback in the .fiig file... but i can work it out....
>
> Please show me the steps how should i get the things correct...
> Very appreciate for your guide...
>
> *--------------------------------------------------------------------------------------------------------*
> Below is the stupid attempt i did before:
>
>
> % --- Executes on button press in pushbutton1.
> function pushbutton1_Callback(hObject, eventdata, handles)
> % hObject handle to pushbutton1 (see GCBO)
> % eventdata reserved - to be defined in a future version of MATLAB
> % handles structure with handles and user data (see GUIDATA)
> myVoice = audiorecorder;
> record(myVoice);
>
>
> % --- Executes on button press in pushbutton2.
> function pushbutton2_Callback(hObject, eventdata, handles)
> % hObject handle to pushbutton2 (see GCBO)
> % eventdata reserved - to be defined in a future version of MATLAB
> % handles structure with handles and user data (see GUIDATA)
> stop;
>
> % --- Executes on button press in pushbutton3.
> function pushbutton3_Callback(hObject, eventdata, handles)
> % hObject handle to pushbutton3 (see GCBO)
> % eventdata reserved - to be defined in a future version of MATLAB
> % handles structure with handles and user data (see GUIDATA)
> play(myVoice);
You have to save and retrieve your recorder using GUI data. More to look for here:
http://www.mathworks.com/help/techdoc/ref/guidata.html
|
|
0
|
|
|
|
Reply
|
Thang
|
1/17/2011 10:11:05 PM
|
|
|
1 Replies
1137 Views
(page loaded in 0.028 seconds)
Similiar Articles: GUI to record , stop, playback sound - comp.soft-sys.matlab ...Hi all, I am new to MATLAB GUI... please advise how should i get things starts :( I have tried to work out the thing but no result till now.. I ... Creating a Music Player in Matlab - comp.soft-sys.matlab ...GUI to record , stop, playback sound - comp.soft-sys.matlab ... Hi all, I am new to MATLAB GUI... please advise how should i get things starts ... acid Pro why do you ... Importing Audio Files - comp.soft-sys.matlabImporting Audio Files - comp.soft-sys.matlab Need to Playback MIDI file as Stereo - comp.music.midi GUI to record , stop, playback sound - comp.soft-sys.matlab ... How to play .avi in gui axes? - comp.soft-sys.matlabGUI to record , stop, playback sound - comp.soft-sys.matlab ... How to play .avi in gui axes? - comp.soft-sys.matlab GUI to record , stop, playback sound - comp.soft-sys ... how to embed video in custom gui - comp.soft-sys.matlabGUI to record , stop, playback sound - comp.soft-sys.matlab ... how to embed video in custom gui - comp.soft-sys.matlab GUI to record , stop, playback sound - comp.soft ... Guide: Set handles out of closerequestfcn - comp.soft-sys.matlab ...GUI to record , stop, playback sound - comp.soft-sys.matlab ..... should i get things starts :( I have tried to work out ... function pushbutton1_Callback(hObject ... Dolby 5.1 in Itunes - comp.sys.mac.systemGUI to record , stop, playback sound - comp.soft-sys.matlab ... Dolby 5.1 in Itunes - comp.sys.mac.system In the itunes menu, there is the Controls-> Audio ... How do you stop a podcast in iTunes? - comp.sys.mac.apps ...GUI to record , stop, playback sound - comp.soft-sys.matlab ... How do you stop a podcast in iTunes? - comp.sys.mac.apps ... Evolution Audio no longer works - comp.music ... Matlab on Android - comp.soft-sys.matlabGUI to record , stop, playback sound - comp.soft-sys.matlab ... Hi all, I am new to MATLAB GUI... please advise how should i get things starts :( I have tried to work out ... GUIDE gui handles visibility to user defined function - comp.soft ...GUI to record , stop, playback sound - comp.soft-sys.matlab ..... your guide ... function pushbutton1_Callback(hObject, eventdata, handles ... to be defined in a future ... GUI to record , stop, playback sound - comp.soft-sys.matlab ...Hi all, I am new to MATLAB GUI... please advise how should i get things starts :( I have tried to work out the thing but no result till now.. I ... GUI to record , stop, playback sound - Newsreader - MATLAB CentralHi all, I am new to MATLAB GUI... please advise how should i get things starts :(I have tried to work out the thing but no result till now.. I am trying to work out a ... 7/19/2012 4:59:10 PM
|