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
Post a Comment