annotate matlab/shift_beat.m @ 74:90901fd611d1

Final version of talk.
author samer
date Fri, 01 Jun 2012 16:17:32 +0100
parents 69b54aa5a9bb
children
rev   line source
samer@20 1 function X=shift_beat(delta,X)
samer@56 2 beatpos=X(:,4);
samer@56 3 if any(diff(beatpos)<0)
samer@56 4 disp('WARNING: metrical position not monotonic');
samer@56 5 end
samer@56 6 X(:,4)=beatpos+delta;
samer@20 7 end
samer@20 8