History

python/lib/aubio/cmd.py: add silence and time format

Paul Brossier committed 9 years ago

Commit 930bfec1 parent c81c3d21 file · +3 −3Browse files

Showing the changes to python/lib (1 of 1 file). Show all

Unified · Split

python/lib/aubio/cmd.py+3−3
@@ -145,11 +145,11 @@ def parser_add_subcommand_cut(subparsers): · 144 unmodified lines
145145 helpstr += " <default|energy|hfc|complex|phase|specdiff|kl|mkl|specflux>"
146146 subparser.add_method(helpstr=helpstr)
147147 subparser.add_buf_hop_size()
148− #subparser.add_silence()
148+ subparser.add_silence()
149149 subparser.add_threshold(default=0.3)
150150 subparser.add_minioi()
151151 subparser.add_slicer_options()
152− #subparser.add_time_format()
152+ subparser.add_time_format()
153153 subparser.add_verbose_help()
154154 subparser.set_defaults(process=process_cut)
155155
@@ -487,7 +487,7 @@ class process_cut(process_onset): · 331 unmodified lines
487487 return ret
488488
489489 def flush(self, frames_read, samplerate):
490− from aubio.cut2 import _cut_slice
490+ from aubio.cut import _cut_slice
491491 _cut_slice(self.options, self.slices)
492492 duration = float (frames_read) / float(samplerate)
493493 base_info = '%(source_file)s' % {'source_file': self.options.source_uri}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t