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

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

test_*.py: use aubio module

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