Changeset 7a6521d
- Timestamp:
- Mar 4, 2013, 8:28:17 PM (12 years ago)
- 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:
- 164980f
- Parents:
- 6514bb6
- Location:
- python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio-types.h
r6514bb6 r7a6521d 1 #include <Python.h>1 #include "Python.h" 2 2 #include <structmember.h> 3 4 //#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 5 6 // define numpy unique symbols for aubio 7 #define PY_ARRAY_UNIQUE_SYMBOL PYAUBIO_ARRAY_API 8 #define PY_UFUNC_UNIQUE_SYMBOL PYAUBIO_UFUNC_API 9 10 // only import array and ufunc from main module 11 #ifndef PY_AUBIO_MODULE_MAIN 3 12 #define NO_IMPORT_ARRAY 4 //#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 5 #include <numpy/arrayobject.h> 13 #define NO_IMPORT_UFUNC 14 #endif 15 16 // import aubio 17 #include <numpy/ndarraytypes.h> 18 #include <numpy/ufuncobject.h> 19 #include <numpy/npy_3kcompat.h> 20 6 21 #define AUBIO_UNSTABLE 1 7 22 #include <aubio.h> 8 23 9 24 #define Py_default_vector_length 1024 10 #define Py_default_vector_height 111 25 12 26 #define Py_aubio_default_samplerate 44100 -
python/aubiomodule.c
r6514bb6 r7a6521d 1 #include <Python.h> 2 #define PY_ARRAY_UNIQUE_SYMBOL PyArray_API 3 //#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 4 #include <numpy/arrayobject.h> 5 1 #define PY_AUBIO_MODULE_MAIN 6 2 #include "aubio-types.h" 7 3 #include "generated/aubio-generated.h" … … 247 243 int err; 248 244 245 // fvec is defined in __init__.py 249 246 if ( (PyType_Ready (&Py_cvecType) < 0) 250 247 || (PyType_Ready (&Py_filterType) < 0) … … 282 279 PyModule_AddObject (m, "pvoc", (PyObject *) & Py_pvocType); 283 280 284 // generated objects281 // add generated objects 285 282 add_generated_objects(m); 286 283 }
Note: See TracChangeset
for help on using the changeset viewer.