Sound Ploting + img

This commit is contained in:
Thomas PÉRIN 2023-03-24 08:51:27 +01:00
parent 11d30a9522
commit 96512fb02b
2 changed files with 5 additions and 0 deletions

BIN
Sound_plot.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -3,4 +3,9 @@ close all
clc clc
[y, fs] = audioread("sound/modulator22.wav"); [y, fs] = audioread("sound/modulator22.wav");
plot(0:1/fs:(length(y)-1)/fs,y);
xlabel("Time (s)");
ylabel("Amplitude");
title("Sound Amplitude Over Time");
audiowrite("sound/output.wav", y, fs/2); audiowrite("sound/output.wav", y, fs/2);