864e5a68de205bca41a2f4b706c5542e9a5b45e5,librosa/core/time_frequency.py,,midi_to_hz,#,452

Before Change


    note_to_hz
    

    notes = np.asarray([notes]).flatten()
    return 440.0 * (2.0 ** ((notes - 69.0)/12.0))


def hz_to_midi(frequencies):

After Change


    note_to_hz
    

    return 440.0 * (2.0 ** ((np.atleast_1d(notes) - 69.0)/12.0))


def hz_to_midi(frequencies):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: librosa/librosa
Commit Name: 864e5a68de205bca41a2f4b706c5542e9a5b45e5
Time: 2015-02-14
Author: brian.mcfee@nyu.edu
File Name: librosa/core/time_frequency.py
Class Name:
Method Name: midi_to_hz


Project Name: librosa/librosa
Commit Name: 864e5a68de205bca41a2f4b706c5542e9a5b45e5
Time: 2015-02-14
Author: brian.mcfee@nyu.edu
File Name: librosa/core/time_frequency.py
Class Name:
Method Name: hz_to_midi


Project Name: librosa/librosa
Commit Name: 864e5a68de205bca41a2f4b706c5542e9a5b45e5
Time: 2015-02-14
Author: brian.mcfee@nyu.edu
File Name: librosa/core/time_frequency.py
Class Name:
Method Name: octs_to_hz


Project Name: librosa/librosa
Commit Name: 864e5a68de205bca41a2f4b706c5542e9a5b45e5
Time: 2015-02-14
Author: brian.mcfee@nyu.edu
File Name: librosa/core/time_frequency.py
Class Name:
Method Name: hz_to_octs