Changeset 7ffb554 for python/lib


Ignore:
Timestamp:
Apr 18, 2016, 11:22:45 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
ade36e6
Parents:
4de5f35
Message:

python/lib/aubio/midiconv.py: make sure midi2note uses midi int (python3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/midiconv.py

    r4de5f35 r7ffb554  
    4949    midi = int(midi)
    5050    _valid_notenames = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B']
    51     return _valid_notenames[midi % 12] + str( midi / 12 - 1)
     51    return _valid_notenames[midi % 12] + str( int(midi / 12) - 1 )
    5252
    5353def freq2note(freq):
Note: See TracChangeset for help on using the changeset viewer.