def midi_notes_to_tuples(notes):
    """
    converts a sequence of pretty_midi notes into a list of (onset,pitch) elements
    """
    seq = list()
    for n in notes:
        seq.append((n.start,n.pitch))
    return seq