audio - Applying LFO on a signal in Matlab -


i want lfo 6hz sine wave modify amplitude of original signal +/- 2db.

[y, fs] = wavread('input.wav'); t = 0:1/fs:(length(y)-1)/fs; y1 = y .* 1.584893.*sin(2*pi*6*t); wavwrite(y1,fs,'output.wav'); 

is going required? cuz after listened output signal sounds deformed.

in order apply sine wave amplitude modulation signal need multiply signal by

1 + * sin(2 * pi * fm * t) 

where am amplitude of modulation (0.258925 in case, +/- 2 db) , fm modulating frequency (6 hz in case).

so expression should be:

y1 = y .* (1 + 0.258925 .* sin(2 * pi * 6 * t)); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -