JohnCU
Banned
I'm supposed to write a Matlab program to produce a tremolo (for ECE homework). This is what I got so far...
freq=input('Specify frequency (Hz): ');
rfreq = 2*pi*freq;
tSpeed=input('Specify tremolo speed (s): ');
tDepth=input('Specify tremolo depth (0 < depth < 1): ');
Ts=[linspace(0,4,8192*4)];
signal = cos(rfreq*Ts);
I know I gotta somehow have another signal that envelopes that first signal, so that it the loudness fades in and out but I'm not sure how...?
freq=input('Specify frequency (Hz): ');
rfreq = 2*pi*freq;
tSpeed=input('Specify tremolo speed (s): ');
tDepth=input('Specify tremolo depth (0 < depth < 1): ');
Ts=[linspace(0,4,8192*4)];
signal = cos(rfreq*Ts);
I know I gotta somehow have another signal that envelopes that first signal, so that it the loudness fades in and out but I'm not sure how...?