Homework 4

Home Lecture Homework Exams Demos

Due March 10, 2002

10.4-1
10.5-1
10.5-3use f[k]=(.5)ku[k]+0.8ku[k] for the input.
10.6.2
10.6-4
10.6-7 DELETE
There are issues with some versions of Matlab (particularly the student version) and Windows XP. See http://www.mathworks.com/support/solutions/data/29388.shtml for further information. This problem is manifested by problems with figure windows.
I have updated the woodenv.m function to remove annoying warnings.
Also, under some envelope conditions a short envelope is produced, please add the following code into the top of the clarinet function to prevent this problem:

% generate time vector
tt = [1/fs:1/fs:duration];
% check to make time and envelope sizes the same
if (length(tt)<length(ienvelope))%fix if time vector too short
for i=length(tt)+1:length(ienvelope)
tt(i) = tt(i-1)+1/fs;
end;
elseif (length(tt)>length(ienvelope))%fix if time vector too long
tt=tt(1:length(ienvelope));
end;
 

 

Matlab Problems: FM Synthesis of Musical Instruments

In this assignment, you will use FM synthesis to create sounds like a clarinet.

Reference Website:

Computers and Music an interactive web-text at Dartmouth Chapter 4, FM Synthesis.

Developed by Phil Burk Larry Polansky, douglas repetto, Mary Roberts, Dan Rockmore
 

Date Last Updated: 03/10/2003