Changeset b96a7b8 for python/lib
- Timestamp:
- May 11, 2016, 9:40:04 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:
- 88554b9
- Parents:
- 0df6e9e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/aubio/__init__.py
r0df6e9e rb96a7b8 3 3 import numpy 4 4 from ._aubio import * 5 from ._aubio import float_type 5 6 from .midiconv import * 6 7 from .slicing import * … … 11 12 def __new__(cls, input_arg=1024, **kwargs): 12 13 if isinstance(input_arg, int): 14 if input_arg == 0: 15 raise ValueError("vector length of 1 or more expected") 13 16 return numpy.zeros(input_arg, dtype=float_type, **kwargs) 14 17 else:
Note: See TracChangeset
for help on using the changeset viewer.