feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since b8aaaff was
84e0606,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
py-cvec.c: remove obsolete proxy functions
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | #include <Python.h> |
---|
2 | #include <structmember.h> |
---|
3 | #define NO_IMPORT_ARRAY |
---|
4 | #include <numpy/arrayobject.h> |
---|
5 | #define AUBIO_UNSTABLE 1 |
---|
6 | #include <aubio.h> |
---|
7 | |
---|
8 | #define Py_default_vector_length 1024 |
---|
9 | #define Py_default_vector_height 1 |
---|
10 | |
---|
11 | #define Py_aubio_default_samplerate 44100 |
---|
12 | |
---|
13 | #if HAVE_AUBIO_DOUBLE |
---|
14 | #error "Ouch! Python interface for aubio has not been much tested yet." |
---|
15 | #define AUBIO_NPY_SMPL NPY_DOUBLE |
---|
16 | #else |
---|
17 | #define AUBIO_NPY_SMPL NPY_FLOAT |
---|
18 | #endif |
---|
19 | |
---|
20 | // special python type for cvec |
---|
21 | typedef struct |
---|
22 | { |
---|
23 | PyObject_HEAD |
---|
24 | cvec_t * o; |
---|
25 | uint_t length; |
---|
26 | uint_t channels; |
---|
27 | } Py_cvec; |
---|
28 | extern PyTypeObject Py_cvecType; |
---|
29 | |
---|
30 | // defined in aubio-proxy.c |
---|
31 | extern PyObject *PyAubio_CFvecToArray (fvec_t * self); |
---|
32 | extern fvec_t *PyAubio_ArrayToCFvec (PyObject * self); |
---|
33 | |
---|
34 | extern Py_cvec *PyAubio_CCvecToPyCvec (cvec_t * self); |
---|
35 | extern cvec_t *PyAubio_ArrayToCCvec (PyObject *input); |
---|
36 | |
---|
37 | extern PyObject *PyAubio_CFmatToArray (fmat_t * self); |
---|
38 | extern fmat_t *PyAubio_ArrayToCFmat (PyObject *input); |
---|
39 | |
---|
40 | // hand written wrappers |
---|
41 | extern PyTypeObject Py_filterType; |
---|
42 | |
---|
43 | extern PyTypeObject Py_filterbankType; |
---|
44 | |
---|
45 | extern PyTypeObject Py_fftType; |
---|
46 | |
---|
47 | extern PyTypeObject Py_pvocType; |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.