Changeset 34dca87 for python/demos
- Timestamp:
- Sep 4, 2017, 3:52:14 PM (7 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
- Children:
- 60583a3, e1d9cc3
- Parents:
- 3c6a3c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_wav2midi.py
r3c6a3c4 r34dca87 49 49 def frames2tick(frames, samplerate=samplerate): 50 50 sec = frames / float(samplerate) 51 tick = int(second2tick(sec, ticks_per_beat, tempo)) 52 return tick 53 54 sec = 7 55 previous_note = None 51 return int(second2tick(sec, ticks_per_beat, tempo)) 56 52 57 53 last_time = 0
Note: See TracChangeset
for help on using the changeset viewer.