|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
#include <knob_gate.hpp>
Public Member Functions | |
| KnobGate (uint16_t threshold=2000) | |
| void | arm (uint16_t entry_value) |
| Lock the gate and record current knob position. | |
| void | update (uint16_t current_value) |
| Check if knob has moved enough from entry position to unlock. | |
| bool | live () const |
| True when the gate is open (output allowed). | |
| void | force_live () |
| Force the gate open (e.g., for the initial mode that needs no gating). | |
| void | set_threshold (uint16_t t) |
| Set threshold (0-65535). | |
Definition at line 28 of file knob_gate.hpp.
|
inlineexplicit |
| threshold | Movement required to unlock (0-65535). Default ~3%. |
Definition at line 31 of file knob_gate.hpp.
|
inline |
Lock the gate and record current knob position.
Definition at line 35 of file knob_gate.hpp.
|
inline |
Force the gate open (e.g., for the initial mode that needs no gating).
Definition at line 54 of file knob_gate.hpp.
|
inline |
True when the gate is open (output allowed).
Definition at line 51 of file knob_gate.hpp.
|
inline |
Set threshold (0-65535).
Definition at line 57 of file knob_gate.hpp.
|
inline |
Check if knob has moved enough from entry position to unlock.
Definition at line 41 of file knob_gate.hpp.