shithub: aubio

ref: 3acde239f04fcd12e6aa433347c0f243b8b09e3e
dir: /python/lib/aubio/__init__.py/

View raw version
import numpy
from _aubio import *

class fvec(numpy.ndarray):

    def __new__(self, length = 1024, **kwargs):
        if type(length) == type([]):
            return numpy.array(length, dtype='float32', **kwargs)
        return numpy.zeros(length, dtype='float32', **kwargs)