History

python/lib/aubio/cut.py: pass samplerate to onset or tempo

Paul Brossier committed 9 years ago

Commit 2bf530e1 parent 8f1b3541 file · +2 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/aubio/cut.py+2−2
@@ -153,9 +153,9 @@ def main(): · 152 unmodified lines
153153 if samplerate == 0: samplerate = s.get_samplerate()
154154
155155 if options.beat:
156− o = tempo(options.onset_method, bufsize, hopsize)
156+ o = tempo(options.onset_method, bufsize, hopsize, samplerate=samplerate)
157157 else:
158− o = onset(options.onset_method, bufsize, hopsize)
158+ o = onset(options.onset_method, bufsize, hopsize, samplerate=samplerate)
159159 if options.minioi:
160160 if options.minioi.endswith('ms'):
161161 o.set_minioi_ms(int(options.minioi[:-2]))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t