From 3744ea62180ac1960167fdb3f0279f8faead249a Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 13 Jan 2023 15:17:23 +0100 Subject: [PATCH] fix: warnings --- website/src/pages/learn/strudel-vs-tidal.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/src/pages/learn/strudel-vs-tidal.mdx b/website/src/pages/learn/strudel-vs-tidal.mdx index daf79b9b..776ca759 100644 --- a/website/src/pages/learn/strudel-vs-tidal.mdx +++ b/website/src/pages/learn/strudel-vs-tidal.mdx @@ -18,13 +18,13 @@ Strudel is written in JavaScript, while Tidal is written in Haskell. This difference is most obvious when looking at the syntax: -```hs +```haskell iter 4 $ every 3 (||+ n "10 20") $ (n "0 1 3") # s "triangle" # crush 4 ``` One _could_ express that pattern to Strudel like so: -```txt +``` iter(4, every(3, add.squeeze("10 20"), n("0 1 3").s("triangle").crush(4))) ``` @@ -37,7 +37,7 @@ operators, or change the meaning of existing ones. Before you discard Strudel as an unwieldy paren monster, look at this alternative way to write the above: -```txt +``` n("0 1 3").every(3, add.squeeze("10 20")).iter(4).s("triangle").crush(4) ``` @@ -114,7 +114,7 @@ Also, samples are always loaded from a URL rather than from the disk, although [ The Strudel REPL does not support [block based evaluation](https://github.com/tidalcycles/strudel/issues/34) yet. You can use the following "workaround" to create multiple patterns that can be turned on and off: -```txt +``` let a = note("c a f e") let b = s("bd sd") @@ -127,7 +127,7 @@ stack( Alternatively, you could write everything as one `stack` and use `.hush()` to silence a pattern: -```txt +``` stack( note("c a f e"), s("bd sd").hush() @@ -141,6 +141,6 @@ Note that strudel will always use the last statement in your code as the pattern Strudels tempo is 1 cycle per second, while tidal defaults to `0.5625`. You can get the same tempo as tidal with: -```txt +``` note("c a f e").fast(.5625); ```