def music_to_track(music, start=None, end=None): tracklist = score_to_tracks(parse_to_score_object(music), start, end) track = tracklist[0] for x in range(1, len(tracklist)): track.merge_with(tracklist[x]) return track
def music_to_tracklist(music, start=None, end=None): """ return a list of tracks, where track[0] use only channel 0, track[1] only use channel 1 etc. """ return score_to_tracks(parse_to_score_object(music), start, end)