source: python/lib/aubio/__init__.py @ 01e7be0

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 01e7be0 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
Line 
1import numpy
2from _aubio import *
3from midiconv import *
4
5class fvec(numpy.ndarray):
6
7    def __new__(self, length = 1024, **kwargs):
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.