% makeCsharp.m   Make a wav file with 3 second of Csharp above A220
% P.Conrad for CISC106 

sampleRate = 44100;
bitsPerSample = 16;
volume = 0.9;  % volume should be a number between [0,1) (< 1)

frequencyOfA = 220;
numHalfSteps = 4;
frequencyOfCSharp = frequencyOfA * 2^(numHalfSteps/12);

samples = volume * sineWavVector(sampleRate,frequencyOfCSharp,3);

makeWavFileOnWeb(samples,44100,16,'cisc106/10.31','Csharp.wav') 

