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