Showing the changes to python/lib (1 of 1 file). Show all
Unified · Split
| @@ -145,11 +145,11 @@ def parser_add_subcommand_cut(subparsers): · 144 unmodified lines | ||
| 145 | 145 | helpstr += " <default|energy|hfc|complex|phase|specdiff|kl|mkl|specflux>" |
| 146 | 146 | subparser.add_method(helpstr=helpstr) |
| 147 | 147 | subparser.add_buf_hop_size() |
| 148 | − #subparser.add_silence() | |
| 148 | + subparser.add_silence() | |
| 149 | 149 | subparser.add_threshold(default=0.3) |
| 150 | 150 | subparser.add_minioi() |
| 151 | 151 | subparser.add_slicer_options() |
| 152 | − #subparser.add_time_format() | |
| 152 | + subparser.add_time_format() | |
| 153 | 153 | subparser.add_verbose_help() |
| 154 | 154 | subparser.set_defaults(process=process_cut) |
| 155 | 155 | |
| @@ -487,7 +487,7 @@ class process_cut(process_onset): · 331 unmodified lines | ||
| 487 | 487 | return ret |
| 488 | 488 | |
| 489 | 489 | def flush(self, frames_read, samplerate): |
| 490 | − from aubio.cut2 import _cut_slice | |
| 490 | + from aubio.cut import _cut_slice | |
| 491 | 491 | _cut_slice(self.options, self.slices) |
| 492 | 492 | duration = float (frames_read) / float(samplerate) |
| 493 | 493 | base_info = '%(source_file)s' % {'source_file': self.options.source_uri} |