19 lines
352 B
Matlab
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
|
|
|