doc: random functions

This commit is contained in:
Felix Roos
2022-09-14 23:16:24 +02:00
parent a022e5bb93
commit ce91d36b7a
2 changed files with 172 additions and 2 deletions
+28
View File
@@ -450,8 +450,36 @@ Stacks the given pattern to the current pattern:
<MiniRepl tune={`"c4,eb4,g4".stack("bb4,d5")`} />
## Randomness
These methods add random behavior to your Patterns.
{{ 'Pattern.degradeBy' | jsdoc }}
{{ 'Pattern.degrade' | jsdoc }}
{{ 'Pattern.undegradeBy' | jsdoc }}
{{ 'Pattern.sometimesBy' | jsdoc }}
{{ 'Pattern.sometimes' | jsdoc }}
{{ 'Pattern.someCyclesBy' | jsdoc }}
{{ 'Pattern.someCycles' | jsdoc }}
{{ 'Pattern.often' | jsdoc }}
{{ 'Pattern.rarely' | jsdoc }}
{{ 'Pattern.almostNever' | jsdoc }}
{{ 'Pattern.almostAlways' | jsdoc }}
{{ 'Pattern.never' | jsdoc }}
{{ 'Pattern.always' | jsdoc }}
## Tone API
To make the sounds more interesting, we can use Tone.js instruments ands effects.