%
%  shows the CWT (coninuous wavelet transform) of 3 notes 
%
%
	n = 4096;
	t  = (1:n) ./n;
	Note = sin (50*t);
	Note2 = sin (125*t);
	Note3 = sin (225*t);
	Note(1000:4096) = 0.7*Note(1000:4096)+0.3*Note2(1000:4096);
	Note(2000:4096) = 0.8*Note(2000:4096)+0.2*Note3(2000:4096);
	Note = Note.*exp(-3*(t-0.8).^2);
  	figure(1); plot(t,Note);
	%%print -deps /home/ade/SIGNALS/note.eps

	cwt = CCWT(Note,2,'Morlet');
	cwtm = abs(cwt); cwtp = angle(cwt);
	cwtm = cwtm-min(min(cwtm)); cwtm = 255*cwtm/max(max(cwtm));

	figure(2); ImageCWT(cwtm,'Individual','gray')
	%%print -deps /home/ade/SIGNALS/muziekCWTm.eps

	cwtp = 255-cwtp;
	cwtp = cwtp-min(min(cwtp));cwtp=255*cwtp/max(max(cwtp));
	figure(3); ImageCWT(cwtp,'Individual','gray')
	%%print -deps /home/ade/SIGNALS/muziekCWTp.eps
