Changeset 0178c65
- Timestamp:
- Dec 25, 2009, 4:37:23 AM (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:
- 965b302
- Parents:
- 03c3450
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/aubio/__init__.py
r03c3450 r0178c65 9 9 self = numpy.zeros(length, dtype='float32', **kwargs) 10 10 return self 11 12 class cvec:13 14 def __init__ (self, length = 1024, **kwargs):15 self.norm = numpy.zeros(length / 2 + 1, dtype='float32', **kwargs)16 self.phas = numpy.zeros(length / 2 + 1, dtype='float32', **kwargs)17 18 def __len__ (self):19 assert len(self.norm) == len(self.phas)20 return len(self.norm)
Note: See TracChangeset
for help on using the changeset viewer.