bc1c204015ee40fd536f68c73854b9c131ff4524,librosa/beat.py,,_beat_strength,#,163

Before Change


    if rising:
        D   = numpy.maximum(0.0, D)
    else:
        D   = numpy.abs(D)
        pass

    ////// Average over mel bands
    D   = numpy.mean(D, 0)

    ////// Filter with a difference operator
    D   = scipy.signal.lfilter([1.0, -1.0], [1.0, -0.99], D)

    ////// Normalize by the maximum onset strength
    return D / numpy.max(D)

def _recursive_beat_decomposition(onset, t_min=16, sigma=16):

    n           = len(onset)

After Change


    if Znorm == 0:
        Znorm = 1.0
        pass
    return (Z / Znorm, D)

def _recursive_beat_decomposition(onset, t_min=16, sigma=16):

    n           = len(onset)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: librosa/librosa
Commit Name: bc1c204015ee40fd536f68c73854b9c131ff4524
Time: 2012-11-26
Author: brm2132@columbia.edu
File Name: librosa/beat.py
Class Name:
Method Name: _beat_strength


Project Name: donlnz/nonconformist
Commit Name: 4de3a41cd1286ee4ea31c9f804a8403a141b11fe
Time: 2015-04-24
Author: henrik.linusson@gmail.com
File Name: nonconformist/evaluation.py
Class Name:
Method Name: reg_mean_size


Project Name: librosa/librosa
Commit Name: c294614bdac17b19088d142889fc996162dbf977
Time: 2013-12-23
Author: brm2132@columbia.edu
File Name: librosa/feature.py
Class Name:
Method Name: chromagram