Skip to content
Snippets Groups Projects
Commit 4464853f authored by YE Victor's avatar YE Victor
Browse files

Upload New File

parent ad618871
No related branches found
No related tags found
No related merge requests found
clear; clc;
% Lecture du signal audio
fichier = fullfile('wav', 'piano_chord.wav');
[x, Fe] = audioread(fichier);
% Paramètres
t_delay = 0.25; % Delay en secondes
g = 0.9; % Amortissement
% Application du delay
y = effet_delay(x, t_delay, g, Fe);
% Écoute et sauvegarde
soundsc(y, Fe);
audiowrite('guitare_delay.wav', y, Fe);
% Affichage d'une portion
figure;
plot((1:50000)/Fe, y(1:50000));
xlabel('Temps (s)');
ylabel('Amplitude');
title('Signal avec effet de delay (g = 0.9, delay = 0.25 s)');
grid on;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment