Changeset ad5203c for python/ext
- Timestamp:
- Mar 5, 2013, 5:46:48 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:
- 63f6c13
- Parents:
- 208336b
- Location:
- python/ext
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/aubio-types.h
r208336b rad5203c 11 11 #ifndef PY_AUBIO_MODULE_MAIN 12 12 #define NO_IMPORT_ARRAY 13 #endif 14 #include <numpy/arrayobject.h> 15 #ifndef PY_AUBIO_MODULE_UFUNC 13 16 #define NO_IMPORT_UFUNC 17 #else 18 #include <numpy/ufuncobject.h> 14 19 #endif 15 20 16 21 // import aubio 17 #include <numpy/ndarraytypes.h> 18 #include <numpy/ufuncobject.h> 19 #include <numpy/npy_3kcompat.h> 22 //#include <numpy/npy_3kcompat.h> 20 23 21 24 #define AUBIO_UNSTABLE 1 22 #include <aubio.h>25 #include "aubio.h" 23 26 24 27 #define Py_default_vector_length 1024 -
python/ext/aubiomodule.c
r208336b rad5203c 1 1 #define PY_AUBIO_MODULE_MAIN 2 2 #include "aubio-types.h" 3 #include "generated/aubio-generated.h" 3 #include "aubio-generated.h" 4 5 extern void add_generated_objects ( PyObject *m ); 6 extern void add_ufuncs ( PyObject *m ); 4 7 5 8 static char Py_alpha_norm_doc[] = "compute alpha normalisation factor"; … … 262 265 263 266 err = _import_array (); 264 265 267 if (err != 0) { 266 268 fprintf (stderr, 267 "Unable to import Numpy C APIfrom aubio module (error %d)\n", err);269 "Unable to import Numpy array from aubio module (error %d)\n", err); 268 270 } 269 271 -
python/ext/ufuncs.c
r208336b rad5203c 1 #define PY_AUBIO_MODULE_UFUNC 1 2 #include "aubio-types.h" 2 3 … … 61 62 void add_ufuncs ( PyObject *m ) 62 63 { 63 int err = _import_umath();64 int err = 0; 64 65 66 err = _import_umath (); 65 67 if (err != 0) { 66 68 fprintf (stderr, 67 "Unable to import Numpy C API Ufuncfrom aubio module (error %d)\n", err);69 "Unable to import Numpy umath from aubio module (error %d)\n", err); 68 70 } 69 71
Note: See TracChangeset
for help on using the changeset viewer.