Changeset 8bffcff


Ignore:
Timestamp:
Apr 25, 2016, 1:04:47 AM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
a41b1ef
Parents:
c4b2183
Message:

python/lib/aubioinit.py: use aubio.float_type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/__init__.py

    rc4b2183 r8bffcff  
    77
    88class fvec(numpy.ndarray):
    9     " a simple numpy array holding a vector of float32 "
     9    """a simple numpy array holding a vector of %s""" % float_type
     10
    1011    def __new__(self, length = 1024, **kwargs):
    1112        self.length = length
    1213        if type(length) == type([]):
    13             return numpy.array(length, dtype='float32', **kwargs)
    14         return numpy.zeros(length, dtype='float32', **kwargs)
     14            return numpy.array(length, dtype = float_type, **kwargs)
     15        return numpy.zeros(length, dtype = float_type, **kwargs)
Note: See TracChangeset for help on using the changeset viewer.