#NEWLINE# def get_end_time( self ) : #NEWLINE# #INDENT# 'Returns the time of the end of this MIDI file (latest note-off event).\n\n        Returns\n        -------\n        end_time : float\n            Time, in seconds, where this MIDI file ends\n\n        ' #NEWLINE# events = ( [ n . end for i in self . instruments for n in i . notes ] + [ b . time for i in self . instruments for b in i . pitch_bends ] ) #NEWLINE# if ( len ( events ) == 0 ) : #NEWLINE# #INDENT# return 0.0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return max ( events )