source: interfaces/python/aubio/__init__.py @ 0178c65

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

aubio/: cvec is still on the C side

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