#NEWLINE# def parse_notes( notes , volume = 120 ) : #NEWLINE# #INDENT# prev_oct = 5 #NEWLINE# prev_dur = 0.25 #NEWLINE# result = [ ] #NEWLINE# for item in notes : #NEWLINE# #INDENT# ( number , octave , dur , vol ) = parse_note ( item , volume , prev_oct , prev_dur ) #NEWLINE# result . append ( ( number , octave , dur , vol ) ) #NEWLINE# prev_oct = octave #NEWLINE# prev_dur = dur #NEWLINE# #UNINDENT# return result