feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since a5bf9a5 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
|
Rev | Line | |
---|
[ae6e15c] | 1 | #include <Python.h> |
---|
| 2 | #include <structmember.h> |
---|
| 3 | #define NO_IMPORT_ARRAY |
---|
| 4 | #include <numpy/arrayobject.h> |
---|
[7db3477] | 5 | #define AUBIO_UNSTABLE 1 |
---|
[ae6e15c] | 6 | #include <aubio.h> |
---|
| 7 | |
---|
[96fe713] | 8 | #define Py_default_vector_length 1024 |
---|
| 9 | #define Py_default_vector_height 1 |
---|
[9b23eb31] | 10 | |
---|
| 11 | #define Py_aubio_default_samplerate 44100 |
---|
[352fd5f] | 12 | |
---|
[615ac7d] | 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 |
---|
[352fd5f] | 16 | #else |
---|
[615ac7d] | 17 | #define AUBIO_NPY_SMPL NPY_FLOAT |
---|
[352fd5f] | 18 | #endif |
---|
| 19 | |
---|
[03c3450] | 20 | // special python type for cvec |
---|
[96fe713] | 21 | typedef struct |
---|
| 22 | { |
---|
| 23 | PyObject_HEAD |
---|
[615ac7d] | 24 | cvec_t * o; |
---|
| 25 | uint_t length; |
---|
| 26 | uint_t channels; |
---|
| 27 | } Py_cvec; |
---|
[9b23eb31] | 28 | extern PyTypeObject Py_cvecType; |
---|
| 29 | |
---|
[03c3450] | 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 |
---|
[9b23eb31] | 41 | extern PyTypeObject Py_filterType; |
---|
| 42 | |
---|
[615ac7d] | 43 | extern PyTypeObject Py_filterbankType; |
---|
[352fd5f] | 44 | |
---|
[615ac7d] | 45 | extern PyTypeObject Py_fftType; |
---|
| 46 | |
---|
| 47 | extern PyTypeObject Py_pvocType; |
---|
[03c3450] | 48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.