Showing the changes to python (1 of 2 files). Show all
Unified · Split
| @@ -16,11 +16,13 @@ def get_onset_mode(nvalue): · 15 unmodified lines | ||
| 16 | 16 | return aubio_onset_kl |
| 17 | 17 | elif nvalue == 'mkl' : |
| 18 | 18 | return aubio_onset_mkl |
| 19 | + elif nvalue == 'specflux' : | |
| 20 | + return aubio_onset_specflux | |
| 19 | 21 | elif nvalue == 'dual' : |
| 20 | 22 | return 'dual' |
| 21 | 23 | else: |
| 22 | 24 | import sys |
| 23 | − print "unknown onset detection function selected" | |
| 25 | + print "unknown onset detection function selected: %s" % nvalue | |
| 24 | 26 | sys.exit(1) |
| 25 | 27 | |
| 26 | 28 | def get_pitch_mode(nvalue): |