Mercurial > hg > vampy-host
comparison vampyhost.cpp @ 28:1175e814954e
Pruning & tidying
author | Chris Cannam |
---|---|
date | Wed, 26 Nov 2014 10:54:48 +0000 |
parents | fb6519598734 |
children | 7e7f2f7d9542 |
comparison
equal
deleted
inserted
replaced
27:fb6519598734 | 28:1175e814954e |
---|---|
106 PyObject_Del(self); | 106 PyObject_Del(self); |
107 } | 107 } |
108 | 108 |
109 PyDoc_STRVAR(xx_foo_doc, "Some description"); //!!! | 109 PyDoc_STRVAR(xx_foo_doc, "Some description"); //!!! |
110 | 110 |
111 //!!! todo: conv errors | |
112 | |
111 PyPluginObject * | 113 PyPluginObject * |
112 getPluginObject(PyObject *pyPluginHandle) | 114 getPluginObject(PyObject *pyPluginHandle) |
113 { | 115 { |
114 cerr << "getPluginObject" << endl; | 116 cerr << "getPluginObject" << endl; |
115 | 117 |
501 PyDict_SetItemString | 503 PyDict_SetItemString |
502 (pyF, "label", PyString_FromString(f.label.c_str())); | 504 (pyF, "label", PyString_FromString(f.label.c_str())); |
503 | 505 |
504 if (!f.values.empty()) { | 506 if (!f.values.empty()) { |
505 PyDict_SetItemString | 507 PyDict_SetItemString |
506 (pyF, "values", conv.FloatVector_To_PyArray(f.values)); | 508 (pyF, "values", conv.PyArray_From_FloatVector(f.values)); |
507 } | 509 } |
508 | 510 |
509 PyList_SET_ITEM(pyFl, fli, pyF); | 511 PyList_SET_ITEM(pyFl, fli, pyF); |
510 } | 512 } |
511 | 513 |