/usr/lib/python2.7/dist-packages/aubio/__init__.py is in python-aubio 0.4.3-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #! /usr/bin/env python
import numpy
from ._aubio import *
from ._aubio import float_type
from .midiconv import *
from .slicing import *
class fvec(numpy.ndarray):
"""a numpy vector holding audio samples"""
def __new__(cls, input_arg=1024, **kwargs):
if isinstance(input_arg, int):
if input_arg == 0:
raise ValueError("vector length of 1 or more expected")
return numpy.zeros(input_arg, dtype=float_type, **kwargs)
else:
return numpy.array(input_arg, dtype=float_type, **kwargs)
|