Assignment 6: Stereo

What to do for this assignment

In a single M-file create a Matlab function to pan sound back and forth across the stereo image. Also write a cover function that gets the name of the file to be panned and the panning frequency from keyboard input, then calls the panning function, and finally plays the resulting sound.

The panning function will take three arguments: a vector containing music or other interesting sound(s), a number representing the frequency of the lateral movement of the sound, the depth of modulation, and the sample rate of the input vector. Panning methods will be discussed in class.

The panning function header should look like this:

function y = <name>( x , lfo , sr ) % <put your function name here, without the angle brackets> % % Moves sound back and forth across the stereo image. % % Inputs: % x = vector of input sound samples % lfo = frequency of the back and forth movement (Hz.) % depth = depth of modulation, [0,1] % sr = sample rate of x in samples per second % % Output: % y = stereo matrix of samples of moving sound

Experiment with different LFO frequencies and modulation depths, and tell me which one or ones give the most satisfactory musical results. Test your function with several different .wav files to make sure it works correctly. Some music files in the Toolkit are: artoffugue, guitar_riff, moore_guitar, claire_oubli_flute, moz1_11kHz, slide, snake, Toms_diner.

E-mail me the M-file, including your comments on the best frequency or frequencies and depths to use. Use the same header and file-naming conventions as in earlier assignments.

Last updated 14 February 2012

stu@cs.uml.edu

To CS Home Page

To UML Home Page