home/ atoms/ strudel-pure-primitive

pure() lifts a value into a pattern that emits it once per cycle

pure(value) is the fundamental pattern constructor: it makes a pattern that returns exactly one Hap per full cycle, whose value is the given value and whose whole spans the entire cycle. In functional terms this is the return/unit of the pattern context — it lifts a plain value into a pattern. All discrete note patterns ultimately build on pure, which is why the mini-notation atom "c3" produces a Hap whose whole runs from 0 to 1 (a full cycle).

Examples

const p = pure({note: 60}) // one note per cycle, filling the whole cycle // equivalent mini-notation atom: “c3”

Assessment

State how many Haps pure(60).queryArc(0, 2) returns and what their whole timespans are, tracing the function-of-time model to justify it.

“A discrete value that repeats once per cycle.”
corpus · strudel-internals-pattern-as-function-of-time-functor-applic · chunk 1