Skip to content
Snippets Groups Projects
Commit 43522f2d authored by CARNEIRO--GILLET Alexandre's avatar CARNEIRO--GILLET Alexandre
Browse files

modifs

parent 2fbfbdf5
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,10 @@ instrument = "piano_chord"; ...@@ -4,11 +4,10 @@ instrument = "piano_chord";
[x,fe] = audioread(audio_path + instrument +".wav"); [x,fe] = audioread(audio_path + instrument +".wav");
% y = effet_delay(x, 0.25, 0.9, fe); y = effet_delay(x, 0.25, 0.9, fe);
% soundsc(y,fe);
% y = effet_delay_filtre(x, 0.25, 0.9, 10, fe);
y = effet_delay_filtre(x, 0.25, 0.9, 10, fe);
soundsc(y,fe); soundsc(y,fe);
[x, fe] = audioread("Files - SAR Audio - signal\student_pack\src\wav\single_tone_guitar_nylon_string_a2.wav"); [x, fe1] = audioread("..\wav\single_tone_guitar_nylon_string_a2.wav");
y = simule_piece(xe1, fe);
r = xcorr(y,xe1);
tic; tic;
x2 = effet_reverb_FFT(r, x); x2 = effet_reverb_FFT(r, x);
toc toc
soundsc(x2, fe); soundsc(x2, fe1);
\ No newline at end of file
plot(x2);
\ No newline at end of file
...@@ -20,7 +20,7 @@ y_guitar = karplus_strong(x_guitar, N, g, alpha); ...@@ -20,7 +20,7 @@ y_guitar = karplus_strong(x_guitar, N, g, alpha);
% Affichage % Affichage
figure; figure;
plot(y); plot(y); % n'arrive pas à afficher pour cause de y trop grand
title('Signal Karplus-Strong avec enveloppe ADSR'); title('Signal Karplus-Strong avec enveloppe ADSR');
xlabel('Échantillons'); xlabel('Échantillons');
ylabel('Amplitude'); ylabel('Amplitude');
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment