4d78e7c936be168db70c65276915688a131ef193,librosa/display.py,,__axis_chroma,#,489

Before Change


    positions = np.arange(0, n, max(1, float(n) / bins_per_octave))

    // Labels start at 9 here because chroma starts at A.
    values = core.midi_to_note(np.arange(9, 9+12), octave=False)
    ticker(positions, values)
    labeler("Pitch class")

After Change


    // Generate the template positions
    pos = np.asarray([0, 2, 3, 5, 7, 8, 10]) * bins_per_octave // 12

    n_octaves = np.ceil(n / float(bins_per_octave))

    positions = pos.copy()
    for i in range(1, int(n_octaves)):
        positions = np.append(positions, pos + i * bins_per_octave, axis=0)

    // Labels start at 9 here because chroma starts at A.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: librosa/librosa
Commit Name: 4d78e7c936be168db70c65276915688a131ef193
Time: 2015-02-17
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __axis_chroma


Project Name: librosa/librosa
Commit Name: 79bcae0e2d29bd2d41cbc49b135feb6dec25ca85
Time: 2012-11-27
Author: brm2132@columbia.edu
File Name: librosa/__init__.py
Class Name:
Method Name: melfb


Project Name: librosa/librosa
Commit Name: b9a5f7d2bf056e397ee527425c41d214265ca59c
Time: 2013-11-14
Author: brm2132@columbia.edu
File Name: librosa/display.py
Class Name:
Method Name: specshow