From a0884e2a038c654a722647237f5e760810ddcf63 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 3 Oct 2023 09:09:49 +0200 Subject: [PATCH] add noise heading + hihat example --- website/src/pages/learn/synths.mdx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/website/src/pages/learn/synths.mdx b/website/src/pages/learn/synths.mdx index 83de3ca5..432276ef 100644 --- a/website/src/pages/learn/synths.mdx +++ b/website/src/pages/learn/synths.mdx @@ -23,14 +23,19 @@ The basic waveforms are `sine`, `sawtooth`, `square` and `triangle`, which can b If you don't set a `sound` but a `note` the default value for `sound` is `triangle`! +## Noise + You can also use noise as a source by setting the waveform to: `white`, `pink` or `brown`. These are different flavours of noise, here written from hard to soft. +/2").scope()`} /> + +Here's a more musical example of how to use noise for hihats: + >") -.sound("/2") -.scope()`} + tune={`sound("bd*2,*8") +.decay(.04).sustain(0).scope()`} /> Some amount of pink noise can also be added to any oscillator by using the `noise` paremeter: