def note_to_chord(notes):
if not notes:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>root = notes[<NUM_LIT:0>]<EOL>root_and_positions = []<EOL>for rotated_notes in get_all_rotated_notes(notes):<EOL><INDENT>rotated_root = rotated_notes[<NUM_LIT:0>]<EOL>root_and_positions.append([rotated_root, notes_to_positions(rotated_notes, rotated_notes[<NUM_LIT:0>])])<EOL><DEDENT>chords = []<EOL>for temp_root, positions in root_and_positions:<EOL><INDENT>quality = find_quality(positions)<EOL>if quality is None:<EOL><INDENT>continue<EOL><DEDENT>if temp_root == root:<EOL><INDENT>chord = "<STR_LIT>".format(root, quality)<EOL><DEDENT>else:<EOL><INDENT>chord = "<STR_LIT>".format(temp_root, quality, root)<EOL><DEDENT>chords.append(Chord(chord))<EOL><DEDENT>return chords<EOL>
Convert note list to chord list

    :param list[str] notes: list of note arranged from lower note. ex) ["C", "Eb", "G"]
    :rtype: list[pychord.Chord]
    :return: list of chord