Changeset 8d29cfe for python/aubio


Ignore:
Timestamp:
Feb 20, 2006, 12:33:18 PM (19 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
79c04d8
Parents:
f72a10d
Message:

add support for delay to task onset, invert silence output, remove unused import
add support for delay to task onset, invert silence output, remove unused import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/tasks.py

    rf72a10d r8d29cfe  
    11from aubioclass import *
    2 from bench.node import bench
    32
    43def get_onset_mode(nvalue):
     
    202201                self.derivate = False
    203202                self.localmin = False
     203                self.delay = 0.
    204204                self.storefunc = False
    205205                self.bufsize = 512
     
    272272                        self.wassilence = 0
    273273                if self.issilence == -1:
    274                         return -1, self.frameread
     274                        return self.frameread, -1
    275275                elif self.issilence == 2:
    276                         return 2, self.frameread
     276                        return self.frameread, 2
    277277
    278278class taskpitch(task):
     
    374374                        else:
    375375                                now = self.frameread
     376                        if self.params.delay != 0.: now -= self.params.delay
    376377                        if now < 0 :
    377378                                now = 0
Note: See TracChangeset for help on using the changeset viewer.