Added abstraction for square wave metronome

used for main pulse… should have included it earlier… sorry nick