home/ atoms/ pbjorklund2-euclidean-durations

Pbjorklund2(k,n) emits Euclidean duration patterns that can be modulated by nesting other pattern classes

Pbjorklund2, from the Bjorklund quark, generates Euclidean rhythms inside a Pbind. It takes k (number of hits), n (number of possible onsets), plus length (repeats) and offset (starting onset), and outputs a duration pattern spacing k onsets across n steps as evenly as possible. Because Pbjorklund2 is itself a pattern class, it can be nested and have its arguments modulated by other pattern classes — for instance feeding Pwhite into k and n so the rhythm re-randomises each cycle while staying musically coherent. A convergence/divergence move stores one pattern in a variable, assigns it to several proxies so they lock together, then re-evaluates individual proxies to let them diverge again during the set.

Examples

\dur, Pbjorklund2(Pwhite(1,8), 16)/4 — a shifting Euclidean kick. Convergence: l = Pbjorklund2(3,8); ~k = Pbind(\dur, l); ~sn = Pbind(\dur, l); then diverge each proxy.

Assessment

Write a Pbind hi-hat on Pbjorklund2(5,16), then describe the convergence/divergence technique and the musical effect of letting locked patterns split apart.

“Because `Pbjorklund2` is a pattern class, it can be nested and have its arguments modulated by other pattern classes”