Multiple changes:

Added the altered pitches to the original list
Added add_rhythm() to isolate & simplify grooving
Simplified process_midi() to only MIDI operations!