Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/cmd.py

    r357f81e re126e65  
    102102    subparser.add_input()
    103103    subparser.add_buf_hop_size()
    104     subparser.add_silence()
    105     subparser.add_release_drop()
    106104    subparser.add_time_format()
    107105    subparser.add_verbose_help()
     
    209207                action="store", dest="silence", default=-70,
    210208                help="silence threshold")
    211 
    212     def add_release_drop(self):
    213         self.add_argument("-d", "--release-drop",
    214                 metavar = "<value>", type=float,
    215                 action="store", dest="release_drop", default=10,
    216                 help="release drop threshold")
    217209
    218210    def add_minioi(self, default="12ms"):
     
    256248                action = "store", dest = "cut_until_nslices", default = None,
    257249                help="how many extra slices should be added at the end of each slice")
     250        self.add_argument("--create-first",
     251                action = "store_true", dest = "create_first", default = False,
     252                help="always include first slice")
    258253
    259254# some utilities
     
    388383        self.parse_options(args, self.valid_opts)
    389384        self.notes = aubio.notes(**self.options)
    390         if args.silence is not None:
    391             self.notes.set_silence(args.silence)
    392         if args.release_drop is not None:
    393             self.notes.set_release_drop(args.release_drop)
    394385        super(process_notes, self).__init__(args)
    395386    def __call__(self, block):
Note: See TracChangeset for help on using the changeset viewer.