|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Samples read as fixed width binary words. More...
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | MayaFlux |
| Main namespace for the Maya Flux audio engine. | |
| namespace | MayaFlux::Kinesis |
| namespace | MayaFlux::Kinesis::Discrete |
Functions | |
| double | MayaFlux::Kinesis::Discrete::from_word (uint32_t word, uint32_t bits) noexcept |
| The value of an offset binary word; bits above the width are ignored. | |
| uint32_t | MayaFlux::Kinesis::Discrete::to_word (double value, uint32_t bits) noexcept |
| The offset binary word of a value, clamped to [-1, 1]. | |
Samples read as fixed width binary words.
A value in [-1, 1] maps to the offset binary word round((x + 1) / 2 * (2^bits - 1)): -1 is all zeros, +1 is all ones, 0 is half scale. Complementing every bit negates the value, and bit width is limited to 24 so a word fits an element of a coefficient array exactly.
Definition in file Word.hpp.