Working Version of MelodyGen in major