mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-24 03:58:53 +00:00
fix: warnings
This commit is contained in:
parent
b2c6d87633
commit
3744ea6218
@ -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:
|
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
|
iter 4 $ every 3 (||+ n "10 20") $ (n "0 1 3") # s "triangle" # crush 4
|
||||||
```
|
```
|
||||||
|
|
||||||
One _could_ express that pattern to Strudel like so:
|
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)))
|
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:
|
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)
|
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.
|
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:
|
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 a = note("c a f e")
|
||||||
|
|
||||||
let b = s("bd sd")
|
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:
|
Alternatively, you could write everything as one `stack` and use `.hush()` to silence a pattern:
|
||||||
|
|
||||||
```txt
|
```
|
||||||
stack(
|
stack(
|
||||||
note("c a f e"),
|
note("c a f e"),
|
||||||
s("bd sd").hush()
|
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`.
|
Strudels tempo is 1 cycle per second, while tidal defaults to `0.5625`.
|
||||||
You can get the same tempo as tidal with:
|
You can get the same tempo as tidal with:
|
||||||
|
|
||||||
```txt
|
```
|
||||||
note("c a f e").fast(.5625);
|
note("c a f e").fast(.5625);
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user