diff --git a/src/example_with_wave_file.m b/src/example_with_wave_file.m index e288ffce5280fbee6268f915d49b999fd7d6082e..efdc07d6b29d048580f5182ca3150736055b5ff5 100644 --- a/src/example_with_wave_file.m +++ b/src/example_with_wave_file.m @@ -1,12 +1,7 @@ -%% this is a simple example to read and play a wave file with matlab - -% set a string variable to a wave filename we want to open: -toneFileName = "wav/single_tone_piano1.wav"; -% read the content of the wave file: -[data,fe] = audioread(toneFileName); -% data is a matrix with 2 columns if the sound is stereo; keep the mono to ease further processing -data = data(:,1); -% get the number of sample in vector data -N = length(data); -% play the sound in the audio output: -soundsc(data,fe); \ No newline at end of file +[x_piano, Fe] = audioread("synthetic_piano_ADSR.wav"); +x_piano = x_piano(:,1); % mono +delay_time = 0.25; +g = 0.9; +K = 10; +y_filtre = effet_delay_filtre(x_piano, delay_time, g, K, Fe); +soundsc(y_filtre, Fe); diff --git a/src/wav/single_tone_guitar_nylon_string_a2.wav b/src/wav/single_tone_guitar_nylon_string_a2.wav deleted file mode 100644 index b36d25495e30cebbaac2cb248e629bddf8bdb2bc..0000000000000000000000000000000000000000 Binary files a/src/wav/single_tone_guitar_nylon_string_a2.wav and /dev/null differ diff --git a/src/wav/single_tone_piano1.wav b/src/wav/single_tone_piano1.wav deleted file mode 100644 index af184b832ca44b0a28441e62e7ade80f617c00e5..0000000000000000000000000000000000000000 Binary files a/src/wav/single_tone_piano1.wav and /dev/null differ