shithub: aubio

Download patch

ref: 0178c655c9f1f49407c54de577c35dff7e1b828a
parent: 03c345091613b0328b328fe2861a497c091d8bc4
author: Paul Brossier <piem@piem.org>
date: Thu Dec 24 23:37:23 EST 2009

aubio/: cvec is still on the C side

--- a/interfaces/python/aubio/__init__.py
+++ b/interfaces/python/aubio/__init__.py
@@ -8,13 +8,3 @@
     def __new__(self, length = 1024, **kwargs):
         self = numpy.zeros(length, dtype='float32', **kwargs)
         return self
-
-class cvec:
-
-    def __init__ (self, length = 1024, **kwargs):
-        self.norm = numpy.zeros(length / 2 + 1, dtype='float32', **kwargs)
-        self.phas = numpy.zeros(length / 2 + 1, dtype='float32', **kwargs)
-
-    def __len__ (self):
-        assert len(self.norm) == len(self.phas)
-        return len(self.norm)