From: Paul Brossier Date: Fri, 22 Mar 2013 17:37:18 +0000 (-0500) Subject: lib/aubio/__init__.py: add header and docstring X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=229d0505f25181186db1431e072655e6cf1da2ab;p=aubio.git lib/aubio/__init__.py: add header and docstring --- diff --git a/python/lib/aubio/__init__.py b/python/lib/aubio/__init__.py index 5fdc0ae0..62933c2b 100644 --- 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)