#NEWLINE# def prime_form( notes ) : #NEWLINE# #INDENT# set_zero = transposition_startswith ( normal_form ( notes ) , 0 ) #NEWLINE# set_inv = transposition_startswith ( normal_form ( inversion ( set_zero ) ) , 0 ) #NEWLINE# if ( interval_tie ( set_zero ) <= interval_tie ( set_inv ) ) : #NEWLINE# #INDENT# return set_zero #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return set_inv