def get_tempo_changes(self):

        # Pre-allocate return arrays
        tempo_change_times = np.zeros(len(self.__tick_scales))
        tempi = np.zeros(len(self.__tick_scales))
        for n, (tick, tick_scale) in enumerate(self.__tick_scales):
            # Convert tick of this tempo change to time in seconds
            tempo_change_times[n] = self.__tick_to_time[tick]
            # Convert tick scale to a tempo
            tempi[n] = 60.0/(tick_scale*self.resolution)
        return tempo_change_times, tempi
Return arrays of tempo changes and their times.
dataset/ETHPy150Open craffel/pretty-midi/pretty_midi/pretty_midi.py/PrettyMIDI.get_tempo_changes