Changeset 0178c65


Ignore:
Timestamp:
Dec 25, 2009, 4:37:23 AM (14 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

aubio/: cvec is still on the C side

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/aubio/__init__.py

    r03c3450 r0178c65  
    99        self = numpy.zeros(length, dtype='float32', **kwargs)
    1010        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.