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

Method patch_event

crates/firewheel-core/src/diff/mod.rs:605–610  ·  view source on GitHub ↗

Construct a patch from a node event. This is a convenience wrapper around [`patch`][Patch::patch], discarding errors and node events besides [`NodeEventType::Param`].

(event: &NodeEventType)

Source from the content-addressed store, hash-verified

603 ///
604 /// This will generally be called from within
605 /// the audio thread, so real-time constraints should be respected.
606 ///
607 /// Typically, you'll call this within [`drain_patches`].
608 ///
609 /// ```
610 /// # use firewheel_core::{diff::Patch, event::{ProcEvents, NodeEventType}};
611 /// # fn patching(mut event_list: ProcEvents) {
612 /// #[derive(Patch, Default)]
613 /// struct FilterParams {

Callers

nothing calls this directly

Implementers 8

triple_buffer.rscrates/firewheel-nodes/src/triple_buff
sampler.rscrates/firewheel-nodes/src/sampler.rs
clock.rscrates/firewheel-core/src/clock.rs
notify.rscrates/firewheel-core/src/diff/notify.
collections.rscrates/firewheel-core/src/diff/collect
leaf.rscrates/firewheel-core/src/diff/leaf.rs
mix.rscrates/firewheel-core/src/dsp/mix.rs
coeff_update.rscrates/firewheel-core/src/dsp/coeff_up

Calls

no outgoing calls

Tested by

no test coverage detected