Changeset 79c04d8


Ignore:
Timestamp:
Feb 20, 2006, 12:34:25 PM (19 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
83c6734
Parents:
8d29cfe
Message:

workaround to avoid crashing on silence cut
workaround to avoid crashing on silence cut

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubiocut

    r8d29cfe r79c04d8  
    109109        filetask = dotask(filename,params=params)
    110110        onsets = filetask.compute_all()
    111         ofunc = filetask.ofunc
     111        if not options.silencecut:
     112                ofunc = filetask.ofunc
    112113        #onsets, ofunc = getonsets(filename,threshold,silence,
    113114        #        mode=mode[i],localmin=options.localmin,
     
    132133
    133134        lonsets.append(onsets)
    134         lofunc.append(ofunc)
     135        if not options.silencecut:
     136                lofunc.append(ofunc)
    135137
    136138        # print times in second
Note: See TracChangeset for help on using the changeset viewer.