% Matlab script ex4.m % Create sound files with varying phase shifts. % % Sample solutions to article "Musical Analysis and Synthesis in % Matlab", MAA College Mathematics Journal % % Mark R. Petersen, U. of Colorado Boulder Applied Math Dept, Feb 2004 synthesize_fp('ex4-0shift.wav',[220 440],2,[1 1],[0 0]) synthesize_fp('ex4-1shift.wav',[220 440],2,[1 1],[0 .1]) synthesize_fp('ex4-2shift.wav',[220 440],2,[1 1],[0 .2]) synthesize_fp('ex4-5shift.wav',[220 440],2,[1 1],[0 .5]) analyze('ex4-0shift.wav') analyze('ex4-1shift.wav') analyze('ex4-2shift.wav') analyze('ex4-5shift.wav')