view matlab/shift_beat.m @ 68:a8df4a4abe89

Minor change re noise
author peterf
date Sat, 17 Mar 2012 05:43:34 +0000
parents 69b54aa5a9bb
children
line wrap: on
line source
function X=shift_beat(delta,X)		
	beatpos=X(:,4);
	if any(diff(beatpos)<0)
		disp('WARNING: metrical position not monotonic');
	end
	X(:,4)=beatpos+delta;
end