TP-traitement-audio-visuel/TP12/initialisation_notes.m
2023-06-22 20:47:16 +02:00

19 lines
352 B
Matlab

function D = initialisation_notes(chemins_notes_piano, n_fenetre, n_decalage, fenetre)
D = [];
for i = 1:length(chemins_notes_piano)
chemin = chemins_notes_piano{i};
[y, f_ech] = audioread(chemin);
Y = TFCT(y, f_ech, n_fenetre, n_decalage, fenetre);
S = abs(Y);
D = [ D mean(S, 2) ];
end
end