No BSD License
-
projet(varargin)
PROJET M-file for projet.fig
-
[Y]=chorus(X,FS,coeff)
realisation de l'effet
-
[Y]=delay(X,FS,att,d)
-
[Y]=dist(X,FS,A)
distorsion:
-
[Y]=echoes(X,FS,att,d)
-
[Y]=flange(X,FS,puissance)
-
[Y]=reverb(X,FS,temps,attenua...
effet Reverb
-
View all files
|
|
| [Y]=chorus(X,FS,coeff) |
function [Y]=chorus(X,FS,coeff)
% realisation de l'effet
D1=FS/10;
D2=3*FS/1000;
long = length(X);
E=repmat(0,long,1);
x = rand(1,1);
for i=1:long
d = i + round(D1 + (D2 - D1)* x(1,1));
if ( d > long )
d = long;
end
E(i) = X(d);
end
% ajout de l'effet au signal
Y=X+coeff*E;
%Normalistion du signal de sortie
sx=sum(abs(X));
sy=sum(abs(Y));
sr=repmat(sx/sy,length(x),1);
Y=sr.*Y;
|
|
Contact us at files@mathworks.com