source: interfaces/python/aubio/__init__.py @ 6500367

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

aubio/init.py: simplify, add support for list input

  • 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.