From 6b919132aad0a220fec4c3ec57a2adc40e216207 Mon Sep 17 00:00:00 2001 From: Bernard Gray Date: Sat, 27 Apr 2024 11:18:51 +1000 Subject: [PATCH 1/3] 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. From bf5e66d69a921293cca5423866b1ac362abc5f7f Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 28 May 2024 22:39:49 +0200 Subject: [PATCH 2/3] fix: lint --- website/src/pages/workshop/pattern-effects.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/website/src/pages/workshop/pattern-effects.mdx b/website/src/pages/workshop/pattern-effects.mdx index d9b65c4f..9c632630 100644 --- a/website/src/pages/workshop/pattern-effects.mdx +++ b/website/src/pages/workshop/pattern-effects.mdx @@ -152,9 +152,10 @@ Try patterning the `ply` function, for example using `"<1 2 1 3>"` 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. + +- 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. From 35e9385f598ccc6db1d71a3efe0ee68945798833 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 28 May 2024 22:41:37 +0200 Subject: [PATCH 3/3] use dec instead of ds --- website/src/pages/de/workshop/pattern-effects.mdx | 2 +- website/src/pages/workshop/pattern-effects.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/pages/de/workshop/pattern-effects.mdx b/website/src/pages/de/workshop/pattern-effects.mdx index c76c831d..3cf8fee6 100644 --- a/website/src/pages/de/workshop/pattern-effects.mdx +++ b/website/src/pages/de/workshop/pattern-effects.mdx @@ -147,7 +147,7 @@ Probier `ply` mit einem pattern zu automatisieren, z.b. `"<1 2 1 3>"` .off(1/8, x=>x.add(4)) //.off(1/4, x=>x.add(7)) ).scale("/4") -.s("triangle").room(.5).ds(".1:0").delay(.5)`} +.s("triangle").room(.5).dec(.1).delay(.5)`} punchcard /> diff --git a/website/src/pages/workshop/pattern-effects.mdx b/website/src/pages/workshop/pattern-effects.mdx index 9c632630..f3d1d003 100644 --- a/website/src/pages/workshop/pattern-effects.mdx +++ b/website/src/pages/workshop/pattern-effects.mdx @@ -145,7 +145,7 @@ 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("0.1:0")`} +.s("triangle").room(.5).dec(.1)`} punchcard />