- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/aubio/__init__.py
rd836c21 r4c01c0f 4 4 class fvec(numpy.ndarray): 5 5 6 def __init__(self, length = 1024, **kwargs): 7 super(numpy.ndarray, self).__init__(**kwargs) 8 6 9 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) 10 self = numpy.zeros(length, dtype='float32', **kwargs) 11 return self
Note: See TracChangeset
for help on using the changeset viewer.