#NEWLINE# def get_tempo_changes( self ) : #NEWLINE# #INDENT# 'Return arrays of tempo changes and their times.\n\n        This is direct from the MIDI file.\n\n        Returns\n        -------\n        tempo_change_times : np.ndarray\n            Times, in seconds, where the tempo changes.\n        tempi : np.ndarray\n            What the tempo is at each point in time in tempo_change_times\n\n        ' #NEWLINE# tempo_change_times = np . zeros ( len ( self . __tick_scales ) ) #NEWLINE# tempi = np . zeros ( len ( self . __tick_scales ) ) #NEWLINE# for ( n , ( tick , tick_scale ) ) in enumerate ( self . __tick_scales ) : #NEWLINE# #INDENT# tempo_change_times [ n ] = self . __tick_to_time [ tick ] #NEWLINE# tempi [ n ] = ( 60.0 / ( tick_scale * self . resolution ) ) #NEWLINE# #UNINDENT# return ( tempo_change_times , tempi )