Changeset 229d050 for python/lib/aubio


Ignore:
Timestamp:
Mar 22, 2013, 6:37:18 PM (12 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:
bea5389
Parents:
ff74460
Message:

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

File:
1 edited

Legend:

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

    rff74460 r229d050  
     1#! /usr/bin/env python
     2
    13import numpy
    24from _aubio import *
     
    46
    57class fvec(numpy.ndarray):
    6 
     8    " a simple numpy array holding a vector of float32 "
    79    def __new__(self, length = 1024, **kwargs):
     10        self.length = length
    811        if type(length) == type([]):
    912            return numpy.array(length, dtype='float32', **kwargs)
Note: See TracChangeset for help on using the changeset viewer.