Changeset 066433d for interfaces/python/aubio/__init__.py
- Timestamp:
- Jan 9, 2010, 3:51:20 PM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- d453a4a
- Parents:
- 8212692 (diff), 37eb9ce (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified interfaces/python/aubio/__init__.py ΒΆ
r8212692 r066433d 4 4 class fvec(numpy.ndarray): 5 5 6 def __init__(self, length = 1024, **kwargs):7 super(numpy.ndarray, self).__init__(**kwargs)8 9 6 def __new__(self, length = 1024, **kwargs): 10 self = numpy.zeros(length, dtype='float32', **kwargs) 11 return self 7 if type(length) == type([]): 8 return numpy.array(length, dtype='float32', **kwargs) 9 return numpy.zeros(length, dtype='float32', **kwargs)
Note: See TracChangeset
for help on using the changeset viewer.