From 6b919132aad0a220fec4c3ec57a2adc40e216207 Mon Sep 17 00:00:00 2001 From: Bernard Gray Date: Sat, 27 Apr 2024 11:18:51 +1000 Subject: [PATCH] clarify `off` in pattern-effects.mdx I had a bit of difficulty understanding `off` as it was presented, so I've attempted to simplify it: 1. take out the `delay` effect which is obscuring things (since we're using a delayed `off` pattern) 2. add a more complete explanation of the syntax --- website/src/pages/workshop/pattern-effects.mdx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/website/src/pages/workshop/pattern-effects.mdx b/website/src/pages/workshop/pattern-effects.mdx index f4ced454..d9b65c4f 100644 --- a/website/src/pages/workshop/pattern-effects.mdx +++ b/website/src/pages/workshop/pattern-effects.mdx @@ -145,13 +145,16 @@ Try patterning the `ply` function, for example using `"<1 2 1 3>"` .off(1/16, x=>x.add(4)) //.off(1/8, x=>x.add(7)) ).scale("/2") -.s("triangle").room(.5).ds(".1:0").delay(.5)`} +.s("triangle").room(.5).ds("0.1:0")`} punchcard /> -In the notation `x=>x.`, the `x` is the shifted pattern, which where modifying. +In the notation `.off(1/16, x=>x.add(4))`, says: + - take the original pattern named as `x` + - modify `x` with `.add(4)`, and + - play it offset to the original pattern by `1/16` of a cycle.