function varargout = Pad(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Pad_OpeningFcn, ...
'gui_OutputFcn', @Pad_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
function Pad_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
function varargout = Pad_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function Bouton1_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1209;
cf=697;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton2_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1336;
cf=697;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton3_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1477;
cf=697;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton4_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1209;
cf=770;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton5_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1336;
cf=770;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton6_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1477;
cf=770;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton7_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1209;
cf=852;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton8_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1336;
cf=852;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton9_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1477;
cf=852;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function BoutonDiez_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1209;
cf=941;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function Bouton0_Callback(hObject, eventdata, handles)
Fe = 8000;
lf=1336;
cf=941;
axes(handles.axes1);
PlayFr( lf,cf,Fe,Amp );
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function BoutonEtoile_Callback(hObject, eventdata, handles)
Fe = 8000;
Amp = 0.5;
lf=1477;
cf=941;
axes(handles.axes1);
PlayFr( lf,cf, Fe )
axes(handles.axes2);
PlayFr2( lf,cf,Fe,Amp );
axes(handles.axes3);
PlayFr3( lf,cf,Fe,Amp );
axes(handles.axes4);
PlayFr4( lf,cf,Fe,Amp );
axes(handles.axes5);
PlayFr5( lf,cf,Fe,Amp );
set(handles.Amplitude,'string',num2str(Amp));
set(handles.NumberSample,'string',num2str(Fe));
guidata(hObject, handles);
function axes2_ButtonDownFcn(hObject, eventdata, handles)
guidata(hObject, handles);
function axes1_ButtonDownFcn(hObject, eventdata, handles)
guidata(hObject, handles);
function axes3_ButtonDownFcn(hObject, eventdata, handles)
guidata(hObject, handles);
function axes4_ButtonDownFcn(hObject, eventdata, handles)
guidata(hObject, handles);
function axes5_ButtonDownFcn(hObject, eventdata, handles)
guidata(hObject, handles);
function edit1_Callback(hObject, eventdata, handles)
guidata(hObject, handles);
function edit1_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
guidata(hObject, handles);
function edit1_ButtonDownFcn(hObject, eventdata, handles)
guidata(hObject, handles);
function text4_CreateFcn(hObject, eventdata, handles)
guidata(hObject, handles);
function edit2_Callback(hObject, eventdata, handles)
function edit2_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
guidata(hObject, handles);
function edit2_KeyPressFcn(hObject, eventdata, handles)
guidata(hObject, handles);
function slider1_Callback(hObject, eventdata, handles)
Valeur = get(hObject,'Value');
set(handles.ValueSlider,'String',num2str(Valeur));
guidata(hObject, handles);
function slider1_CreateFcn(hObject, eventdata, handles)
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
function ValueSlider_Callback(hObject, eventdata, handles)
guidata(hObject, handles);
function ValueSlider_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
guidata(hObject, handles);
function NumberSample_Callback(hObject, eventdata, handles)
function NumberSample_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Amplitude_Callback(hObject, eventdata, handles)
function Amplitude_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Phase_Callback(hObject, eventdata, handles)
function Phase_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
5 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490373
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490373
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490374
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490374
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490378
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490378
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490384
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490384
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490385
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/359889-how-i-can-send-data-from-a-pushbutton-to-an-edit-box-in-gui-for-mak-an-interface-phone#comment_490385
Sign in to comment.