Module dsp
Expand description
A monophonic retriggered click with short-MIDI echo and optional 32-sample delay.
Structs§
- Evidence
Synth - Every positive note-on retriggers a 64-sample alternating ±velocity/4 click. CC 1 scales the current click by value/127 when CC response is enabled; its initial/reset value is 127. Note-off does not truncate the one-shot. Short MIDI and portable note events are echoed at their input offsets. Overlapping notes retrigger one voice; this is an evidence fixture, not a polyphonic synthesizer. Lookahead changes clear delayed audio; hosts must renegotiate PDC after a live latency change. Reset retains controls, clears voice/delay and restores CC 1 to 127. Process/reset allocate nothing.
Constants§
- CC_
RESPONSE - Respond to MIDI CC 1 on every channel (0/1, default 1).
- CLICK_
SAMPLES - Length of each one-shot, independent of rate and note-off.
- LATENCY
- Audio delay when lookahead is enabled; MIDI echo is undelayed.
- LOOKAHEAD
- Add 32 audio samples and report that latency (0/1, default 1).