From e6eb6c19a867e3a12a2536922977185856b0a795 Mon Sep 17 00:00:00 2001 From: Alexandre Gravel-Raymond Date: Sun, 24 Mar 2024 14:15:01 +0100 Subject: [PATCH] Add random modifiers docs to its own page --- website/src/config.ts | 1 + website/src/pages/learn/random-modifiers.mdx | 85 ++++++++++++++++++++ website/src/pages/learn/signals.mdx | 78 +----------------- 3 files changed, 87 insertions(+), 77 deletions(-) create mode 100644 website/src/pages/learn/random-modifiers.mdx diff --git a/website/src/config.ts b/website/src/config.ts index 012a6542..9dee2aac 100644 --- a/website/src/config.ts +++ b/website/src/config.ts @@ -90,6 +90,7 @@ export const SIDEBAR: Sidebar = { { text: 'Time Modifiers', link: 'learn/time-modifiers' }, { text: 'Control Parameters', link: 'functions/value-modifiers' }, { text: 'Signals', link: 'learn/signals' }, + { text: 'Random Modifiers', link: 'learn/random-modifiers' }, { text: 'Conditional Modifiers', link: 'learn/conditional-modifiers' }, { text: 'Accumulation', link: 'learn/accumulation' }, { text: 'Tonal Functions', link: 'learn/tonal' }, diff --git a/website/src/pages/learn/random-modifiers.mdx b/website/src/pages/learn/random-modifiers.mdx new file mode 100644 index 00000000..7633ec69 --- /dev/null +++ b/website/src/pages/learn/random-modifiers.mdx @@ -0,0 +1,85 @@ +--- +title: Random Modifiers +layout: ../../layouts/MainLayout.astro +--- + +import { MiniRepl } from '../../docs/MiniRepl'; +import { JsDoc } from '../../docs/JsDoc'; + +# Random Modifiers + +These methods add random behavior to your Patterns. + +## choose + + + +## wchoose + + + +## chooseCycles + + + +## wchooseCycles + + + +## degradeBy + + + +## degrade + + + +## undegradeBy + + + +## undegrade + + + +## sometimesBy + + + +## sometimes + + + +## someCyclesBy + + + +## someCycles + + + +## often + + + +## rarely + + + +## almostNever + + + +## almostAlways + + + +## never + + + +## always + + + +Next up: [Conditional Modifiers](/learn/conditional-modifiers) diff --git a/website/src/pages/learn/signals.mdx b/website/src/pages/learn/signals.mdx index 39991c92..7c9d69df 100644 --- a/website/src/pages/learn/signals.mdx +++ b/website/src/pages/learn/signals.mdx @@ -55,80 +55,4 @@ There is also `saw2`, `sine2`, `cosine2`, `tri2`, `square2` and `rand2` which ha -# Random Modifiers - -These methods add random behavior to your Patterns. - -## choose - - - -## wchoose - - - -## chooseCycles - - - -## wchooseCycles - - - -## degradeBy - - - -## degrade - - - -## undegradeBy - - - -## undegrade - - - -## sometimesBy - - - -## sometimes - - - -## someCyclesBy - - - -## someCycles - - - -## often - - - -## rarely - - - -## almostNever - - - -## almostAlways - - - -## never - - - -## always - - - -Next up: [Conditional Modifiers](/learn/conditional-modifiers) +Next up: [Random Modifiers](/learn/random-modifiers)