Changeset 7ffb554 for python/lib/aubio/midiconv.py
- Timestamp:
- Apr 18, 2016, 11:22:45 PM (9 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/aubio/midiconv.py
r4de5f35 r7ffb554 49 49 midi = int(midi) 50 50 _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 ) 52 52 53 53 def freq2note(freq):
Note: See TracChangeset
for help on using the changeset viewer.