Reworking MelodyGenerator

Adding support for key and note groupings