Changes in / [d1d4ad4:c03d191]
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.appveyor.yml
rd1d4ad4 rc03d191 3 3 4 4 environment: 5 6 global: 7 CUSTOM64PATH: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin 5 8 6 9 matrix: … … 41 44 42 45 install: 46 43 47 - ECHO "Installed SDKs:" 44 48 - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" 45 49 46 50 - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%" 51 52 - if [%PYTHON_ARCH%]==[64] SET PATH=%CUSTOM64PATH%;%PATH% 47 53 48 54 # Check that we have the expected version and architecture for Python … … 66 72 # clean before building python package 67 73 - python waf distclean 74 # build python module without using libaubio 75 - pip wheel -v -v -v --wheel-dir=dist . 68 76 # build, upload and install wheel (inspired by numpy's appveyor) 69 77 - ps: | -
python/ext/py-filterbank.c
rd1d4ad4 rc03d191 123 123 124 124 PyObject *input; 125 smpl_t samplerate;126 if (!PyArg_ParseTuple (args, "O " AUBIO_NPY_SMPL_CHR, &input, &samplerate)) {125 uint_t samplerate; 126 if (!PyArg_ParseTuple (args, "OI", &input, &samplerate)) { 127 127 return NULL; 128 128 } … … 269 269 Py_filterbank_set_power(Py_filterbank *self, PyObject *args) 270 270 { 271 smpl_t power;272 273 if (!PyArg_ParseTuple (args, AUBIO_NPY_SMPL_CHR, &power)) {271 uint_t power; 272 273 if (!PyArg_ParseTuple (args, "I", &power)) { 274 274 return NULL; 275 275 } … … 292 292 Py_filterbank_set_norm(Py_filterbank *self, PyObject *args) 293 293 { 294 smpl_t norm;295 296 if (!PyArg_ParseTuple (args, AUBIO_NPY_SMPL_CHR, &norm)) {297 return NULL; 298 } 299 if(aubio_filterbank_set_norm (self->o, norm)) {294 uint_t playing; 295 296 if (!PyArg_ParseTuple (args, "I", &playing)) { 297 return NULL; 298 } 299 if(aubio_filterbank_set_norm (self->o, playing)) { 300 300 if (PyErr_Occurred() == NULL) { 301 301 PyErr_SetString (PyExc_ValueError, -
python/ext/py-source.c
rd1d4ad4 rc03d191 156 156 "... n_frames += len(samples)\n" 157 157 "... print('read', n_frames, 'samples in', samples.shape[0], 'channels',\n" 158 "... 'from file \" %%s\"' %% source.uri)\n"158 "... 'from file \"\%s\"' \% source.uri)\n" 159 159 "...\n" 160 160 "read 239334 samples in 2 channels from file \"audiotrack.wav\"\n" -
python/lib/gen_external.py
rd1d4ad4 rc03d191 75 75 cpp_cmd += ['-E'] 76 76 77 # On win-amd64 (py3.x), the default compiler is cross-compiling, from x8678 # to amd64 with %WIN_SDK_ROOT%\x86_amd64\cl.exe, but using this binary as a79 # pre-processor generates no output, so we use %WIN_SDK_ROOT%\cl.exe80 # instead.81 if len(cpp_cmd) > 1 and 'cl.exe' in cpp_cmd[-2]:82 plat = os.path.basename(os.path.dirname(cpp_cmd[-2]))83 if plat == 'x86_amd64':84 print('workaround on win64 to avoid empty pre-processor output')85 cpp_cmd[-2] = cpp_cmd[-2].replace('x86_amd64', '')86 elif True in ['amd64' in f for f in cpp_cmd]:87 print('warning: not using workaround for', cpp_cmd[0], plat)88 89 77 if not cpp_cmd: 90 78 print("Warning: could not guess preprocessor, using env's CC") -
python/tests/test_mfcc.py
rd1d4ad4 rc03d191 141 141 buf_size, n_filters, n_coeffs, samplerate = 512, 40, 10, 16000 142 142 m = mfcc(buf_size, n_filters, n_coeffs, samplerate) 143 m.set_mel_coeffs_slaney( )143 m.set_mel_coeffs_slaney(samplerate) 144 144 m(cvec(buf_size)) 145 145 assert m.get_power() == 1 -
scripts/get_waf.sh
rd1d4ad4 rc03d191 4 4 #set -x 5 5 6 WAFVERSION=2.0.1 26 WAFVERSION=2.0.11 7 7 WAFTARBALL=waf-$WAFVERSION.tar.bz2 8 8 WAFURL=https://waf.io/$WAFTARBALL
Note: See TracChangeset
for help on using the changeset viewer.