counter

Function counter 

Source
pub fn counter(g: impl Into<ElemNode>) -> Node
Expand description

el.counter(g)

Outputs a continuous count of elapsed samples. Expects one child, g, a pulse train alternating between 0 and 1. When g is high, the counter will run. When g is low, the counter will reset and output 0 until g is high again.