feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 4fe62ba was
229d050,
checked in by Paul Brossier <piem@piem.org>, 12 years ago
|
lib/aubio/init.py: add header and docstring
|
-
Property mode set to
100644
|
File size:
408 bytes
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | |
---|
3 | import numpy |
---|
4 | from _aubio import * |
---|
5 | from midiconv import * |
---|
6 | |
---|
7 | class fvec(numpy.ndarray): |
---|
8 | " a simple numpy array holding a vector of float32 " |
---|
9 | def __new__(self, length = 1024, **kwargs): |
---|
10 | self.length = length |
---|
11 | if type(length) == type([]): |
---|
12 | return numpy.array(length, dtype='float32', **kwargs) |
---|
13 | return numpy.zeros(length, dtype='float32', **kwargs) |
---|
Note: See
TracBrowser
for help on using the repository browser.