Add midi input clock support. Add init/reset function to sequencer.