General Functions¶
- pyvoimooo.eps¶
Return the machine epsilon, that is, the difference between 1.0 and the next value representable by the default floating-point type used in the underlying C++ implementation.
- pyvoimooo.sizeoffloat¶
The size of the default float type of Voimooo [number of bytes]
- pyvoimooo.pi¶
The value of \pi.
This attribute is provided to reflect the actual value used in the underlying C++ implementation.
- pyvoimooo.pi2¶
Twice the value of \pi.
This attribute is provided to reflect the actual value used in the underlying C++ implementation.
- pyvoimooo.lin2db(v)¶
- Parameters
v – Input value on linear scale.
- Returns
the value on a decibel [dB] scale.
lin2dbd
provides the same for 64b float values.New in version 0.8.9.
- pyvoimooo.db2lin(v)¶
- Parameters
v – Input value on decibel scale.
- Returns
the value on a linear scale.
db2lind
provides the same for 64b float values.New in version 0.8.9.
- pyvoimooo.hz2cent(v)¶
- Parameters
v – Input value on linear hertz scale.
- Returns
the value on a cent scale (relative to 440Hz).
New in version 0.8.9.
- pyvoimooo.cent2hz(v)¶
- Parameters
v – Input value on cent scale (relative to 440Hz).
- Returns
the value on a linear hertz scale.
New in version 0.8.9.
- pyvoimooo.cent2freqratio(v)¶
- Parameters
v – Input value on cent scale.
- Returns
the value as a linear coefficient.
New in version 0.10.1.
- pyvoimooo.freqratio2cent(v)¶
- Parameters
v – A linear coefficient.
- Returns
the value on cent scale.
New in version 0.10.1.
- pyvoimooo.dftlen_from_over_sampling_factor(winlen, osf)¶
- Parameters
winlen (int) – A window length.
osf (int) – An over-sampling factor.
- Returns
The power-2 dftlen, based on a given
winlen
and an over-sampling factorosf
.
New in version 0.8.9.
- pyvoimooo.libversion¶
Return the version of the Voimooo library that is wrapped by this Python wrapper. Identical to __version__.
New in version 0.8.9.
- pyvoimooo.compile_info¶
Report some compile-time information in a string.
New in version 0.8.9.
- pyvoimooo.user_name¶
The user name, as obtained by Voimooo through the operating system.
New in version 0.10.1.
- pyvoimooo.user_id¶
The user id, which is the MD5 of the user_name.
New in version 0.10.1.