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 | return aubio_onset_kl | 16 | return aubio_onset_kl |
| 17 | elif nvalue == 'mkl' : | 17 | elif nvalue == 'mkl' : |
| 18 | return aubio_onset_mkl | 18 | return aubio_onset_mkl |
| 19 | elif nvalue == 'specflux' : | ||
| 20 | return aubio_onset_specflux | ||
| 19 | elif nvalue == 'dual' : | 21 | elif nvalue == 'dual' : |
| 20 | return 'dual' | 22 | return 'dual' |
| 21 | else: | 23 | else: |
| 22 | import sys | 24 | import sys |
| 23 | print "unknown onset detection function selected" | 25 | print "unknown onset detection function selected: %s" % nvalue |
| 24 | sys.exit(1) | 26 | sys.exit(1) |
| 25 | 27 | ||
| 26 | def get_pitch_mode(nvalue): | 28 | def get_pitch_mode(nvalue): |