Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -153,9 +153,9 @@ def main(): · 152 unmodified lines | |||
| 153 | if samplerate == 0: samplerate = s.get_samplerate() | 153 | if samplerate == 0: samplerate = s.get_samplerate() |
| 154 | 154 | ||
| 155 | if options.beat: | 155 | if options.beat: |
| 156 | o = tempo(options.onset_method, bufsize, hopsize) | 156 | o = tempo(options.onset_method, bufsize, hopsize, samplerate=samplerate) |
| 157 | else: | 157 | else: |
| 158 | o = onset(options.onset_method, bufsize, hopsize) | 158 | o = onset(options.onset_method, bufsize, hopsize, samplerate=samplerate) |
| 159 | if options.minioi: | 159 | if options.minioi: |
| 160 | if options.minioi.endswith('ms'): | 160 | if options.minioi.endswith('ms'): |
| 161 | o.set_minioi_ms(int(options.minioi[:-2])) | 161 | o.set_minioi_ms(int(options.minioi[:-2])) |