Changeset 8bffcff
- Timestamp:
- Apr 25, 2016, 1:04:47 AM (9 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:
- a41b1ef
- Parents:
- c4b2183
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/aubio/__init__.py
rc4b2183 r8bffcff 7 7 8 8 class fvec(numpy.ndarray): 9 " a simple numpy array holding a vector of float32 " 9 """a simple numpy array holding a vector of %s""" % float_type 10 10 11 def __new__(self, length = 1024, **kwargs): 11 12 self.length = length 12 13 if type(length) == type([]): 13 return numpy.array(length, dtype ='float32', **kwargs)14 return numpy.zeros(length, dtype ='float32', **kwargs)14 return numpy.array(length, dtype = float_type, **kwargs) 15 return numpy.zeros(length, dtype = float_type, **kwargs)
Note: See TracChangeset
for help on using the changeset viewer.