Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -132,7 +132,6 @@ def parse_args(): · 131 unmodified lines | |||
| 132 | help="be quiet") | 132 | help="be quiet") |
| 133 | (options, args) = parser.parse_args() | 133 | (options, args) = parser.parse_args() |
| 134 | if not options.source_file: | 134 | if not options.source_file: |
| 135 | import os.path | ||
| 136 | if len(args) == 1: | 135 | if len(args) == 1: |
| 137 | options.source_file = args[0] | 136 | options.source_file = args[0] |
| 138 | else: | 137 | else: |
| @@ -148,7 +147,7 @@ def main(): · 9 unmodified lines | |||
| 148 | samplerate = options.samplerate | 147 | samplerate = options.samplerate |
| 149 | source_file = options.source_file | 148 | source_file = options.source_file |
| 150 | 149 | ||
| 151 | from aubio import onset, tempo, source, sink | 150 | from aubio import onset, tempo, source |
| 152 | 151 | ||
| 153 | s = source(source_file, samplerate, hopsize) | 152 | s = source(source_file, samplerate, hopsize) |
| 154 | if samplerate == 0: samplerate = s.get_samplerate() | 153 | if samplerate == 0: samplerate = s.get_samplerate() |