Showing the changes to python (2 of 3 files). Show all
Unified · Split
| @@ -313,7 +313,7 @@ class process_melbands(default_process): · 312 unmodified lines | |||
| 313 | fmt_out += ' '.join(["% 9.7f" % f for f in res.tolist()]) | 313 | fmt_out += ' '.join(["% 9.7f" % f for f in res.tolist()]) |
| 314 | sys.stdout.write(fmt_out + '\n') | 314 | sys.stdout.write(fmt_out + '\n') |
| 315 | 315 | ||
| 316 | if __name__ == '__main__': | 316 | def main(): |
| 317 | parser = aubio_parser() | 317 | parser = aubio_parser() |
| 318 | args = parser.parse_args() | 318 | args = parser.parse_args() |
| 319 | if args.show_version or ('verbose' in args and args.verbose > 3): | 319 | if args.show_version or ('verbose' in args and args.verbose > 3): |
| @@ -140,7 +140,7 @@ def parse_args(): · 139 unmodified lines | |||
| 140 | sys.exit(1) | 140 | sys.exit(1) |
| 141 | return options, args | 141 | return options, args |
| 142 | 142 | ||
| 143 | if __name__ == '__main__': | 143 | def main(): |
| 144 | options, args = parse_args() | 144 | options, args = parse_args() |
| 145 | 145 | ||
| 146 | hopsize = options.hopsize | 146 | hopsize = options.hopsize |