Skip to main content

Module elementwise

Module elementwise 

Source
Expand description

One function of each sample: rectify (|x|), square, square root, base-10 logarithm. With filters they make the usual envelopes: rectify then low-pass (EMG envelope); square, moving average, square root (moving RMS); log of an energy (dB-like scales).

Enums§

Elementwise
The function execute_elementwise applies to each sample.

Constants§

LOG10_FLOOR
Smallest magnitude Elementwise::Log10 takes the logarithm of (log₁₀ of it: −12): zeros and silence give a finite floor instead of −∞.

Functions§

execute_elementwise
output = f(input) over len values (any shape: element-wise).