generate ascending melodies

magic numbers everywhere!