source: python/aubio/__init__.py @ 25c9f9a

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 25c9f9a was 25c9f9a, checked in by Paul Brossier <piem@piem.org>, 11 years ago

move new python module to the top

  • Property mode set to 100644
File size: 276 bytes
Line 
1import numpy
2from _aubio import *
3
4class fvec(numpy.ndarray):
5
6    def __new__(self, length = 1024, **kwargs):
7        if type(length) == type([]):
8            return numpy.array(length, dtype='float32', **kwargs)
9        return numpy.zeros(length, dtype='float32', **kwargs)
Note: See TracBrowser for help on using the repository browser.