converting midi notes to step sequenced aligned notes