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 | 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 ret | 487 | return ret |
| 488 | 488 | ||
| 489 | def flush(self, frames_read, samplerate): | 489 | def flush(self, frames_read, samplerate): |
| 490 | from aubio.cut2 import _cut_slice | 490 | 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} |