Basic rhythm pattern generator with MIDI output