

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Sound Processing In this laboratory you will implement a program to generate special audio effects using the DSK board. See Section 15.5 of Mitra for musical sound processing techniques. Introduction Music generated in a studio does not sound natural compared to the music performed inside a concert hall. In the concert hall, the sound waves propagate in all direction and reach the listener from various directions and at various times. The listener hears the early reflections first, followed by densely packed echoes referred to as reverberation. The amplitude of the echoes decays exponentially every time the sound waves bounce off a wall (or anything that is not soundproof). Since the reflection properties of different materials are not the same at different frequencies, the reverberation time varies. Delay systems with adjustable delay factors are employed to artificially create the early reflections. Electronically generated reverberation combined with artificial echo reflections are usually added to the recordings made in a studio. Echoes are generated by delay units. An infinite number of echoes spaced D sampling periods apart with exponentially decaying amplitudes can be created by a transfer function of the form , 1 1
= = − α α D X z z Y z H z ( The impulse response of such a transfer function for α = 0.8 and D = 4 is depicted in Figure 1. The parameter D should be large enough to produce delays of, say, 50 ms to 500 ms. Figure 1. Impulse response of an echo generator transfer function. The sound reaching a listener in a closed space consists of several components: direct sound, early reflections, and reverberations. The reverberation is composed of densely packed echoes. A realistic reverberation has a transfer function give by
D D z z X z Y z H z − −
α α ( ) 1
Another interesting effect is a chorus effect, which would be generated by several instruments playing the same notes at about the same times, but with small changes in amplitude and timing. A simple chorus effect can be generated with the equation: y ( n )= x ( n )+ α 1 x ( n − D 1 )+ α 2 x ( n − D 2 )+ α 3 x ( n − D 3 ) ( where αi and Di are constant and different. The delays Di could be randomly varied with very slow variations; in such case these would be Di(n) to account for variation in time. The Prelab