type_onset = aubio_onset_mkl;
else if (strcmp(optarg,"kl") == 0)
type_onset = aubio_onset_kl;
+ else if (strcmp(optarg,"specflux") == 0)
+ type_onset = aubio_onset_specflux;
else {
errmsg("unknown onset type.\n");
abort();
return aubio_onset_kl
elif nvalue == 'mkl' :
return aubio_onset_mkl
+ elif nvalue == 'specflux' :
+ return aubio_onset_specflux
elif nvalue == 'dual' :
return 'dual'
else:
import sys
- print "unknown onset detection function selected"
+ print "unknown onset detection function selected: %s" % nvalue
sys.exit(1)
def get_pitch_mode(nvalue):