function [xx,tt] = makeSinusoid(A, f, phi, dur, fs)

tt = 0:1/fs:dur;
xx = A*cos(2*pi*f*tt+phi);
