<< Chapter < Page Chapter >> Page >
You will implement a feedback-echo effect and adjust its parameters in real time with a MATLAB graphical user interface.

Implementation

For this exercise, you will extend the system from Audio Effects: Using External Memory to generate a feedback-echo effect. You will then extend this echo effect to use the serial port on the DSP EVM. The serialinterface will receive data from a MATLAB GUI that allows the two system gains and the echo delay to be changed usingon-screen sliders.

Feedback system implementation

Feedback System with Test Points

First, modify code from Audio Effects: Using External Memory to create the feedback-echo system shown in [link] . A one-tap feedback-echo is a simple audio effect that soundsremarkably good. You will use both channels of input by summing the two inputs so that either or both may be used asan input to the system. Also, send several test signals to the six-channel board's D/A converters:

  • The summed input signal
  • The input signal after gain stage G 1
  • The data going into the long delay
  • The data coming out of the delay

You will also need to set both the input gain G 0 and the feedback gain G 1 to prevent overflow.

As you implement this code, ensure that the delay n and the gain values G 1 and G 2 are stored in memory and can be easily changed using the debugger. If you do this, it will be easier toextend your code to accept its parameters from MATLAB in MATLAB Interface Implementation .

To test your echo, connect a CD player or microphone to the input of the DSP EVM, and connect the output of the DSP EVMto a loudspeaker. Verify that an input signal echoes multiple times in the output and that the spacing betweenechoes matches the delay length you have chosen.

Matlab interface implementation

After studying the MATLAB interface outlined at the end of Using the Serial Port with a MATLAB GUI , write MATLAB code to send commands to the serial interface based on threesliders: two gain sliders (for G 1 and G 2 ) and one delay slider (for n ). Then modify your code to accept those commands and change thevalues for G 1 , G 2 and n . Make sure that n can be set to values spanning the full range of 0 to 131,072, although it is not necessary that every number inthat range be represented.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Ece 320 spring 2004. OpenStax CNX. Aug 24, 2004 Download for free at http://cnx.org/content/col10225/1.12
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Ece 320 spring 2004' conversation and receive update notifications?

Ask