ref: 146280af45eeb994642c2caa44f710a290c0e8e6
dir: /interfaces/python/aubio-types.h/
#include <Python.h>
#include <structmember.h>
#define NO_IMPORT_ARRAY
#include <numpy/arrayobject.h>
#include <aubio.h>
#define Py_fvec_default_length 1024
#define Py_fvec_default_channels 1
#ifdef HAVE_AUBIO_DOUBLE
#define AUBIO_FLOAT NPY_FLOAT
#else
#define AUBIO_FLOAT NPY_LONG
#endif
/**
Defining this constant to 1 will allow PyAubio_CastToFvec to convert from data
types different than NPY_FLOAT to and fvec, and therefore creating a copy of
it.
*/
#define AUBIO_DO_CASTING 0
typedef struct
{
PyObject_HEAD fvec_t * o;
uint_t length;
uint_t channels;
} Py_fvec;
extern PyTypeObject Py_fvecType;
extern PyObject *PyAubio_FvecToArray (Py_fvec * self);
extern Py_fvec *PyAubio_ArrayToFvec (PyObject * self);