stride_delay

Function stride_delay 

Source
pub fn stride_delay(
    props: Value,
    delay_ms: impl Into<ElemNode>,
    fb: impl Into<ElemNode>,
    x: impl Into<ElemNode>,
) -> Node
Expand description

Stride-interpolated delay helper (mono).

delay_ms and fb are signal children read at sample rate by the native node. Use el::const_with_key(...) for fast-path parameter updates, or any signal expression for modulation.

§Props (structural, not modulation targets)

KeyTypeDefaultNotes
keystringOptional stable node identity
maxDelayMsnumber1000Maximum delay buffer length
transitionMsnumber100Crossfade length in ms
bigLeapModestring“linear”“linear” or “step”

§Children layout

[delay_ms, fb, audio_input]

§Example

use elemaudio_rs::{Graph, el, extra};
use serde_json::json;

let delayed = extra::stride_delay(
    json!({ "maxDelayMs": 1500, "transitionMs": 60 }),
    el::const_with_key("delay", 250.0),   // delay_ms signal
    el::const_with_key("fb", 0.3),         // fb signal
    el::r#in(json!({"channel": 0}), None), // audio input
);