Changeset eb93592 for interfaces
- Timestamp:
- Nov 6, 2009, 12:41:39 AM (15 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:
- b8ee46c
- Parents:
- c03e777
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/py-cvec.c
rc03e777 reb93592 29 29 self = (Py_cvec *) type->tp_alloc (type, 0); 30 30 31 self->length = Py_default_vector_length ;31 self->length = Py_default_vector_length / 2 + 1; 32 32 self->channels = Py_default_vector_channels; 33 33 … … 37 37 38 38 if (length > 0) { 39 self->length = length ;39 self->length = length / 2 + 1; 40 40 } else if (length < 0) { 41 41 PyErr_SetString (PyExc_ValueError, … … 58 58 Py_cvec_init (Py_cvec * self, PyObject * args, PyObject * kwds) 59 59 { 60 self->o = new_cvec ( self->length, self->channels);60 self->o = new_cvec ((self->length - 1) * 2, self->channels); 61 61 if (self->o == NULL) { 62 62 return -1;
Note: See TracChangeset
for help on using the changeset viewer.