Struct Evidence Synth
pub struct EvidenceSynth { /* private fields */ }Expand description
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.
Trait Implementations§
§impl Default for EvidenceSynth
impl Default for EvidenceSynth
§impl Processor for EvidenceSynth
impl Processor for EvidenceSynth
fn prepare(&mut self, config: ProcessConfig) -> Result<(), PrepareError>
fn process(&mut self, block: &mut ProcessBlock<'_, '_, '_>) -> ProcessStatus
fn reset(&mut self)
fn deactivate(&mut self)
§fn latency_samples(&self) -> u32
fn latency_samples(&self) -> u32
Prepared algorithmic latency in samples. Changes are advertised by adapters
using their format’s restart/latency protocol outside the audio callback.
§fn tail(&self) -> Tail
fn tail(&self) -> Tail
Decay policy after input stops. Adapters must map this to the host protocol.
§fn start_audio(&mut self) -> Result<(), ProcessError>
fn start_audio(&mut self) -> Result<(), ProcessError>
Optional explicit audio-owner session start, after prepare and before
rendering. Default is a no-op. Consumers using these hooks call once on
the audio owner and stop there before transfer/deactivation. Failure must
leave this processor stopped; earlier successful nodes may be stopped.
Hooks follow prepared callback allocation/locking/I/O obligations. Existing
adapters do not implicitly opt in; explicit graph sessions supply them.
§fn stop_audio(&mut self)
fn stop_audio(&mut self)
End an explicitly started session on its audio owner, without deactivation
or storage destruction. Default no-op; preparation/history may be retained.