Ignore:
Timestamp:
Sep 16, 2017, 11:55:51 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
bfbfafa
Parents:
b99e2a5 (diff), cfb7fb7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into dct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-phasevoc.c

    rb99e2a5 r7b7a58e  
    156156}
    157157
     158static PyObject *
     159Pyaubio_pvoc_set_window (Py_pvoc *self, PyObject *args)
     160{
     161  uint_t err = 0;
     162  char_t *window = NULL;
     163
     164  if (!PyArg_ParseTuple (args, "s", &window)) {
     165    return NULL;
     166  }
     167  err = aubio_pvoc_set_window (self->o, window);
     168
     169  if (err > 0) {
     170    PyErr_SetString (PyExc_ValueError, "error running aubio_pvoc_set_window");
     171    return NULL;
     172  }
     173  Py_RETURN_NONE;
     174}
     175
    158176static PyMethodDef Py_pvoc_methods[] = {
    159177  {"rdo", (PyCFunction) Py_pvoc_rdo, METH_VARARGS,
    160178    "synthesis of spectral grain"},
     179  {"set_window", (PyCFunction) Pyaubio_pvoc_set_window, METH_VARARGS, ""},
    161180  {NULL}
    162181};
Note: See TracChangeset for help on using the changeset viewer.