TP-traitement-audio-visuel/TP12/initialisation_notes.m

19 lines
352 B
Mathematica
Raw Normal View History

2023-06-22 18:47:16 +00:00
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