librosa/beat.py
def __last_beat(cumscore):
    """Get the last beat from the cumulative score array"""

    maxes = util.localmax(cumscore)
    med_score = np.median(cumscore[np.argwhere(maxes)])

    # The last of these is the last beat (since score generally increases)
    return np.argwhere((cumscore * maxes * 2 > med_score)).max()
def __last_beat(cumscore):
    maxes = util.localmax(cumscore)
    med_score = np.median(cumscore[np.argwhere(maxes)])

    # The last of these is the last beat (since score generally increases)
    return np.argwhere((cumscore * maxes * 2 > med_score)).max()
def __last_beat ( cumscore ) : maxes = util . localmax ( cumscore ) med_score = np . median ( cumscore [ np . argwhere ( maxes ) ] ) # The last of these is the last beat (since score generally increases) return np . argwhere ( ( cumscore * maxes * 2 > med_score ) ) . max ( )
Get the last beat from the cumulative score array
Get the last beat from the cumulative score array