Changeset 494df02
- Timestamp:
- May 10, 2016, 7:40:24 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:
- c9a9f86
- Parents:
- 67e16c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_bpm_extract.py
r67e16c2 r494df02 4 4 from numpy import median, diff 5 5 6 def get_file_bpm(path, params = {}):6 def get_file_bpm(path, params = None): 7 7 """ Calculate the beats per minute (bpm) of a given file. 8 8 path: path to the file 9 9 param: dictionary of parameters 10 10 """ 11 if params == None: 12 params = {} 11 13 try: 12 14 win_s = params['win_s'] 13 15 samplerate = params['samplerate'] 14 16 hop_s = params['hop_s'] 15 except :17 except KeyError: 16 18 """ 17 19 # super fast
Note: See TracChangeset
for help on using the changeset viewer.