lib/aubio/__init__.py: add header and docstring
authorPaul Brossier <piem@piem.org>
Fri, 22 Mar 2013 17:37:18 +0000 (12:37 -0500)
committerPaul Brossier <piem@piem.org>
Fri, 22 Mar 2013 17:37:18 +0000 (12:37 -0500)
python/lib/aubio/__init__.py

index 5fdc0ae090f117394c80e74f65f0d051cc89b34c..62933c2bc99005e745ff3109288001dad531fbb5 100644 (file)
@@ -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)