function seq = onefiltrate(inseq, rate)
% insert ones into 'inseq' every 'rate' elements
% there's probably a less loopy, more matlab way to express this
seq = [];
j=0;
for i=1:length(inseq),
	j = j+1;
	seq = [seq; inseq(j)];
	if (mod(j,rate)==0),
		seq = [seq; 1];
	end
end
