Structs§
- Audio
Config - Engine and bank builder configuration.
Constants§
- DEFAULT_
PWM_ CARRIER_ HZ - Fixed PWM carrier; must exceed ~2× the highest passed audio frequency.
- DEFAULT_
PWM_ PERIOD - Default timer period counts (ARR+1). Set from your timer setup:
period ≈ timer_clk / carrier_hz. - DEFAULT_
SAMPLE_ RATE_ HZ - Recommended duty-modulation defaults for piezo / buzzer PWM audio.
Functions§
- crossfade_
step_ q8 - Crossfade step in Q8 units so a fade completes in
duration_ms.