MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / construct_processor

Method construct_processor

crates/firewheel-nodes/src/beep_test.rs:58–69  ·  view source on GitHub ↗
(
        &self,
        _config: &Self::Configuration,
        cx: ConstructProcessorContext,
    )

Source from the content-addressed store, hash-verified

56 }
57
58 fn construct_processor(
59 &self,
60 _config: &Self::Configuration,
61 cx: ConstructProcessorContext,
62 ) -> Result<impl AudioNodeProcessor, NodeError> {
63 Ok(Processor {
64 phasor: 0.0,
65 phasor_inc: self.freq_hz.clamp(20.0, 20_000.0)
66 * cx.stream_info.sample_rate_recip as f32,
67 gain: self.volume.amp_clamped(DEFAULT_MIN_AMP),
68 })
69 }
70}
71
72struct Processor {

Callers

nothing calls this directly

Calls 2

clampMethod · 0.80
amp_clampedMethod · 0.80

Tested by

no test coverage detected