ulica una
ulica una

Reputation: 1

add echo described by equation to audio signal (matlab)

A simple linear system is echo. It can be described by equation y[n] = x[n]+ kx[n−d], where n represents sample, k attenuation coefficient and d lag.

How can i add echo to an input signal x in matlab with convolution?

Upvotes: 0

Views: 274

Answers (1)

ThP
ThP

Reputation: 2332

Your model is similar to FIR filtering so I think the easiest way would be to use the function filter. You need to define a filter of length d with the right coefficients:

b_echo = zeros(1,d);
b_echo(1) = 1; % original signal
b_echo(d) = k; % attenuation of the echo
y = filter(b_echo,1,x);

Upvotes: 2

Related Questions