7ca0da3854c49f73bd2aae5592f1cf5a9f7177d4,librosa/core.py,,note_to_midi,#,822

Before Change


    """

    if not isinstance(note, str):
        return np.array(map(note_to_midi, note))

    pitch_map = {"C": 0, "D": 2, "E": 4, "F": 5, "G": 7, "A": 9, "B": 11}
    acc_map = {"//": 1, "": 0, "b": -1, "!": -1}

After Change


        else:
            octave = int(octave)
    except:
        raise ValueError("Improper note format: {:s}".format(note))

    return 12 * octave + pitch_map[pitch] + offset

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: librosa/librosa
Commit Name: 7ca0da3854c49f73bd2aae5592f1cf5a9f7177d4
Time: 2014-11-06
Author: brian.mcfee@nyu.edu
File Name: librosa/core.py
Class Name:
Method Name: note_to_midi


Project Name: luispedro/mahotas
Commit Name: ee05a458afb49cdc775d4a4498a67cbf78d9ead7
Time: 2014-03-27
Author: luis@luispedro.org
File Name: mahotas/convolve.py
Class Name:
Method Name: find


Project Name: utiasSTARS/liegroups
Commit Name: 784586f02d063d39360a287422a6384f30f10d12
Time: 2017-01-30
Author: clement.leopold@gmail.com
File Name: liegroups/so3.py
Class Name: SO3
Method Name: vee