5 from .midiconv import *
8 class fvec(numpy.ndarray):
9 """a simple numpy array holding a vector of %s""" % float_type
11 def __new__(self, length = 1024, **kwargs):
13 if type(length) == type([]):
14 return numpy.array(length, dtype = float_type, **kwargs)
15 return numpy.zeros(length, dtype = float_type, **kwargs)