Ignore:
Timestamp:
Oct 2, 2009, 11:19:48 AM (15 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:
6b1aafc
Parents:
eb7f743
Message:

python/py-fvec.c, python/aubio-types.g: define AUBIO_FLOAT, move default length and channels here, rename fvec to aubio.fvec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/aubio-types.h

    reb7f743 r352fd5f  
    44#include <numpy/arrayobject.h>
    55#include <aubio.h>
     6
     7#define Py_fvec_default_length   1024
     8#define Py_fvec_default_channels 1
     9
     10#ifdef HAVE_AUBIO_DOUBLE
     11#define AUBIO_FLOAT NPY_FLOAT
     12#else
     13#define AUBIO_FLOAT NPY_LONG
     14#endif
     15
     16/**
     17
     18Defining this constant to 1 will allow PyAubio_CastToFvec to convert from data
     19types different than NPY_FLOAT to and fvec, and therefore creating a copy of
     20it.
     21
     22*/
     23#define AUBIO_DO_CASTING 0
    624
    725typedef struct
     
    1230} Py_fvec;
    1331extern PyTypeObject Py_fvecType;
     32
     33extern PyObject *PyAubio_FvecToArray (Py_fvec * self);
     34
     35extern Py_fvec *PyAubio_ArrayToFvec (PyObject * self);
Note: See TracChangeset for help on using the changeset viewer.