feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 33102ab was
33102ab,
checked in by Paul Brossier <piem@piem.org>, 12 years ago
|
lib/aubio/midiconv.py: add note2midi
|
-
Property mode set to
100644
|
File size:
299 bytes
|
Rev | Line | |
---|
[ccca7cb] | 1 | import numpy |
---|
[4c01c0f] | 2 | from _aubio import * |
---|
[33102ab] | 3 | from midiconv import * |
---|
[ccca7cb] | 4 | |
---|
| 5 | class fvec(numpy.ndarray): |
---|
| 6 | |
---|
| 7 | def __new__(self, length = 1024, **kwargs): |
---|
[d836c21] | 8 | if type(length) == type([]): |
---|
| 9 | return numpy.array(length, dtype='float32', **kwargs) |
---|
| 10 | return numpy.zeros(length, dtype='float32', **kwargs) |
---|
Note: See
TracBrowser
for help on using the repository browser.