function h=plottrack(X)
	times=(X(:,1)-X(1,1))/1000;
	Kick=find(X(:,2)==1);
	Snare=find(X(:,2)==2);
	plot(flatten([times';times']),flatten(X(:,[8,7])')/log(2)-2,'Color',[1,1,1]*0.25);
	hold on;
	stem(times(Kick),X(Kick,6)/log(2),'ro');
	stem(times(Snare),X(Snare,6)/log(2),'bx');
	hold off;
	ylim([0,ceil(max(X(:,8))/log(2))-3]);
	xlim([0,X(end,1)-X(1,1)]/1000);
	legend({'entropy','info (kick)','info (snare)'});
	xlabel('time/s');
	ylabel('bits');
	h=gca;
end
