Docsity

Lab 4: Sound Processing - Digital Signal Processing | EE 451, Lab Reports of Digital Signal Processing

Toggle sidebar
bg1
EE451L Fall 2008
______________________________________________________________________________
EE 451 – LAB 4
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
1
)(
)(
)(
<
−
==
−
α
α
D
z
zX
zY
zH
(1
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
pf3

Partial preview of the text

Download Lab 4: Sound Processing - Digital Signal Processing | EE 451 and more Lab Reports Digital Signal Processing in PDF only on Docsity!

______________________________________________________________________________

EE 451 – LAB 4

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

  1. Get the magnitude response of the echo generator using Equation 1 and plot the magnitude response. Assume a value of D to generate a delay of 300 ms using a sampling frequency rate of 48 kHz. What should you use for α?
  2. Get the frequency response of the echo generator using Equation 2 and plot the magnitude response. What is the difference between this response and the one from Equation 1? The Lab
  3. Create a program that implements an echo effect. We will use a HWI to implement the echo: (i) read a new input sample from the codec, (ii) read a delayed value from a buffer, (iii) output the sum of input and delayed value, and (iv) store new input and fraction of delayed value. A template for this program is shown in Figure 1. Try different values of where α and D.
  4. Create a program that implements a chorus effect. Experiment with different values of αi and Di