shithub: aubio

Download patch

ref: 229d0505f25181186db1431e072655e6cf1da2ab
parent: ff744600d5eb74f783891e71296cc1fccc8c0df5
author: Paul Brossier <piem@piem.org>
date: Fri Mar 22 08:37:18 EDT 2013

lib/aubio/__init__.py: add header and docstring

--- 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)