projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff74460
)
lib/aubio/__init__.py: add header and docstring
author
Paul Brossier
<piem@piem.org>
Fri, 22 Mar 2013 17:37:18 +0000
(12:37 -0500)
committer
Paul Brossier
<piem@piem.org>
Fri, 22 Mar 2013 17:37:18 +0000
(12:37 -0500)
python/lib/aubio/__init__.py
patch
|
blob
|
history
diff --git
a/python/lib/aubio/__init__.py
b/python/lib/aubio/__init__.py
index 5fdc0ae090f117394c80e74f65f0d051cc89b34c..62933c2bc99005e745ff3109288001dad531fbb5 100644
(file)
--- a/
python/lib/aubio/__init__.py
+++ b/
python/lib/aubio/__init__.py
@@
-1,10
+1,13
@@
+#! /usr/bin/env python
+
import numpy
from _aubio import *
from midiconv import *
class fvec(numpy.ndarray):
-
+ " a simple numpy array holding a vector of float32 "
def __new__(self, length = 1024, **kwargs):
+ self.length = length
if type(length) == type([]):
return numpy.array(length, dtype='float32', **kwargs)
return numpy.zeros(length, dtype='float32', **kwargs)