#NEWLINE# def seq_notes( self , noteseq , track = 0 , time = 0 , channel = None ) : #NEWLINE# #INDENT# if ( ( track + 1 ) > self . number_tracks ) : #NEWLINE# #INDENT# raise MidiError ( 'You are trying to use more tracks than we have.' ) #NEWLINE# #UNINDENT# _channel = ( channel if ( channel is not None ) else track ) #NEWLINE# for note in noteseq : #NEWLINE# #INDENT# if isinstance ( note , Note ) : #NEWLINE# #INDENT# self . midi_data . addNote ( track , _channel , note . midi_number , time , note . midi_dur , note . volume ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# time += note . midi_dur #NEWLINE# #UNINDENT# return time