From 13340a68093f6c0fb0b3887be9a0085b74874e71 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 3 Jun 2005 01:00:12 +0000 Subject: [PATCH] added silence detection option to aubiocut --- python/aubiocut | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/aubiocut b/python/aubiocut index 205cc717..5f2f4e59 100755 --- a/python/aubiocut +++ b/python/aubiocut @@ -64,7 +64,11 @@ def parse_args(): parser.add_option("-d","--derivate", action="store_true", dest="derivate", default=False, help="derivate onset detection function") + parser.add_option("-S","--silencecut", + action="store_true", dest="silencecut", default=False, + help="outputs silence locations") # to be implemented + parser.add_option("-z","--zerocross", action="store_true", dest="zerocross", default=False, help="NOT IMPLEMENTED zero crossing matching") @@ -107,6 +111,8 @@ else: delay = 2./step if options.beat: #onsets = getbeats(filename,threshold,silence,mode=options.mode) exit("not implemented yet") +elif options.silencecut: + onsets = getsilences(filename,hopsize=hopsize,silence=silence) elif options.plot: onsets, ofunc = getonsets(filename,threshold,silence, mode=options.mode,localmin=options.localmin, -- 2.26.2