function y=set_tempo(t)
DT=60000000/t;
y(1,3)=rem(DT,256);
y(1,2)=rem((floor(DT/256)),256);
y(1,1)=floor((floor(DT/256))/256);