pub enum HoldEdge {
Beat,
Bar,
Period(f32),
}Expand description
When a held binding takes a new value (ADR-0180 rule 2). Between edges the scene keeps reading the value taken at the last one.
The two named edges are counters the analysis frame already publishes, not
conditions this type evaluates: beat is the frame’s own one-frame beat
gate and bar is a change in its bar counter. A Period
re-samples on the render clock instead, which is the only edge in the
vocabulary that exists on a silent stream.
Variants§
Beat
Every frame the analysis frame’s beat gate fires.
Bar
Every change of the analysis frame’s bar counter. That counter is the confidence-gated downbeat estimate where the tracker has locked and its own tempo-driven count everywhere else, so this steps on something musical without promising it is the downbeat.
Period(f32)
Every n seconds of render time, n > 0. Re-sampling restarts the
interval from the frame it happened on, so a long frame delays the next
edge rather than banking a debt of them.
Implementations§
Source§impl HoldEdge
impl HoldEdge
Sourcepub const NAMED: [HoldEdge; 2]
pub const NAMED: [HoldEdge; 2]
The two named edges, for the load error’s “expected one of” listing and for the reference, which renders this rather than restating it.