1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
function pushbutton2_Callback(hObject, eventdata, handles)
global fichier
fichier='son.wav';
% 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)
function pushbutton4_Callback(hObject, eventdata, handles)
global fichier
fichier='sonnerie_tel.wav';
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
function pushbutton5_Callback(hObject, eventdata, handles)
global fichier
global N
global Fe
N=5000;
global y
[x,Fe]=audioread(fichier);
for n=N+1:length(x)
y(n)=x(n)+x(n-N);
end
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA
function pushbutton1_Callback(hObject, eventdata, handles)
global y
global Fe
Fe=44100;
sound(y,Fe);
% 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) |