projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c3450
)
aubio/: cvec is still on the C side
author
Paul Brossier
<piem@piem.org>
Fri, 25 Dec 2009 03:37:23 +0000
(
04:37
+0100)
committer
Paul Brossier
<piem@piem.org>
Fri, 25 Dec 2009 03:37:23 +0000
(
04:37
+0100)
interfaces/python/aubio/__init__.py
patch
|
blob
|
history
diff --git
a/interfaces/python/aubio/__init__.py
b/interfaces/python/aubio/__init__.py
index cc324ef9be26de4a3a59c7c4f991b7ae4e119dac..e13766a7d125c25410cde5f2f0efdbbd7f333229 100644
(file)
--- a/
interfaces/python/aubio/__init__.py
+++ b/
interfaces/python/aubio/__init__.py
@@
-8,13
+8,3
@@
class fvec(numpy.ndarray):
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)