function [y,phi]=block(o,phi,n,f)
% block - generate sawtooth wave
	
t=round(1/f);
y=mod(phi+(0:n-1)/t,1);
phi=mod(phi+n/t,1);
	
