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
145 helpstr += " <default|energy|hfc|complex|phase|specdiff|kl|mkl|specflux>"145 helpstr += " <default|energy|hfc|complex|phase|specdiff|kl|mkl|specflux>"
146 subparser.add_method(helpstr=helpstr)146 subparser.add_method(helpstr=helpstr)
147 subparser.add_buf_hop_size()147 subparser.add_buf_hop_size()
148 #subparser.add_silence()148 subparser.add_silence()
149 subparser.add_threshold(default=0.3)149 subparser.add_threshold(default=0.3)
150 subparser.add_minioi()150 subparser.add_minioi()
151 subparser.add_slicer_options()151 subparser.add_slicer_options()
152 #subparser.add_time_format()152 subparser.add_time_format()
153 subparser.add_verbose_help()153 subparser.add_verbose_help()
154 subparser.set_defaults(process=process_cut)154 subparser.set_defaults(process=process_cut)
155 155
@@ -487,7 +487,7 @@ class process_cut(process_onset): · 331 unmodified lines
487 return ret487 return ret
488 488
489 def flush(self, frames_read, samplerate):489 def flush(self, frames_read, samplerate):
490 from aubio.cut2 import _cut_slice490 from aubio.cut import _cut_slice
491 _cut_slice(self.options, self.slices)491 _cut_slice(self.options, self.slices)
492 duration = float (frames_read) / float(samplerate)492 duration = float (frames_read) / float(samplerate)
493 base_info = '%(source_file)s' % {'source_file': self.options.source_uri}493 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