workaround to avoid crashing on silence cut
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,
onsets = newonsets
lonsets.append(onsets)
- lofunc.append(ofunc)
+ if not options.silencecut:
+ lofunc.append(ofunc)
# print times in second
if options.verbose: