In the computer generation of musical sounds, pure tones need to be windowed to make them more

Question:

In the computer generation of musical sounds, pure tones need to be windowed to make them more interesting. Windowing mimics the way a musician would approach the generation of a certain sound. Increasing the richness of the harmonic frequencies is the result of the windowing as we will see in this problem. Consider the generation of a musical note with frequencies around fA = 880Hz. Assume our “musician” while playing this note uses three strokes corresponding to a window w1(t) = r(t) − r(t − T1) − r(t − T2) + r(t − T0), so that the resulting sound would be the multiplication, or windowing, of a pure sinusoid cos(2π fAt) by a periodic signal w(t) with w1(t) a period that repeats every T0 = 5T where T is the period of the sinusoid. Let T1 = T0/4, and T2 = 3T0/4.

(a) Analytically determine the Fourier series of the window w(t) and plot its line spectrum using MATLAB. Indicate how you would choose the number of harmonics needed to obtain a good approximation to w(t).

(b) Use the modulation or the convolution properties of the Fourier series to obtain the coefficients of the product s(t) = cos(2π fAt) w(t). Use MATLAB to plot the line spectrum of this periodic signal and again determine how many harmonic frequencies you would need to obtain a good approximation to s(t).

(c) The line spectrum of the pure tone p(t) = cos(2π fAt) only displays one harmonic, the one corresponding to the fA = 880Hz frequency, how many more harmonics does s(t) have? To listen to the richness in harmonics use the function sound to play the sinusoid p(t) and s(t) (use Fs =2 × 880Hz to play both).

(d) Consider a combination of notes in a certain scale, for instance let

p(t) = sin(2π × 440 t) + sin(2π × 550 t) + sin(2π × 660 t).

Use the same windowing w(t), and let s(t) = p(t) w(t). Use to plot p(t) and s(t) and to compute and plot their corresponding line spectra. Use sound to play p(nTs) and s(nTs) using Fs = 1000.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: