From 79c04d8c06f019edd26ca29814555a4d8b83a5f5 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 20 Feb 2006 11:34:25 +0000 Subject: [PATCH] workaround to avoid crashing on silence cut workaround to avoid crashing on silence cut --- python/aubiocut | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/aubiocut b/python/aubiocut index d3bbe64a..b9533b59 100755 --- a/python/aubiocut +++ b/python/aubiocut @@ -108,7 +108,8 @@ for i in range(len(modes)): params.storefunc=False filetask = dotask(filename,params=params) onsets = filetask.compute_all() - ofunc = filetask.ofunc + if not options.silencecut: + ofunc = filetask.ofunc #onsets, ofunc = getonsets(filename,threshold,silence, # mode=mode[i],localmin=options.localmin, # derivate=options.derivate, @@ -131,7 +132,8 @@ for i in range(len(modes)): onsets = newonsets lonsets.append(onsets) - lofunc.append(ofunc) + if not options.silencecut: + lofunc.append(ofunc) # print times in second if options.verbose: -- 2.26.2