step-pattern fix and melodic generation experiment