From f841b8165c5cecc0242e2c6e3015d8d5217ef93b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 13 Jun 2005 23:09:32 +0000 Subject: [PATCH] add Kullback Liebler onset detection function and its modified version --- python/aubiocut | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/aubiocut b/python/aubiocut index 04655961..35e38bd3 100755 --- a/python/aubiocut +++ b/python/aubiocut @@ -21,8 +21,15 @@ def check_mode(option, opt, value, parser): setattr(parser.values, option.dest, specdiff) elif nvalue == 'energy' : setattr(parser.values, option.dest, energy) + elif nvalue == 'kl' : + setattr(parser.values, option.dest, kl) + elif nvalue == 'mkl' : + setattr(parser.values, option.dest, mkl) elif nvalue == 'dual' : setattr(parser.values, option.dest, 'dual') + else: + print "unknown detection function selected\n", usage + sys.exit(1) def parse_args(): from optparse import OptionParser -- 2.26.2