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

Before Change



    n, ticker, labeler = __get_shape_artists(data, horiz)

    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)

After Change


    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.
    values = core.midi_to_note(positions * 12 // bins_per_octave + 9, octave=False)
//     values = core.midi_to_note(np.arange(9, 9+n), octave=False)
    ticker(positions[:n], values[:n])
//     ticker(positions, [values[t] for t in positions])
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: b9a5f7d2bf056e397ee527425c41d214265ca59c
Time: 2013-11-14
Author: brm2132@columbia.edu
File Name: librosa/display.py
Class Name:
Method Name: specshow


Project Name: librosa/librosa
Commit Name: 5b7d84ebfe84bf6ed8a3ee0b3333683a30ec2e33
Time: 2015-01-27
Author: brian.mcfee@nyu.edu
File Name: librosa/filters.py
Class Name:
Method Name: constant_q