Skip to content

Commit

Permalink
Add documentation about noise sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Sep 30, 2023
1 parent e3333e7 commit b2acff4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/src/pages/learn/synths.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ 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`!

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.

<MiniRepl
client:idle
tune={`note("c2 <eb2 <g2 g1>>")
.sound("<white pink brown>/2")
.scope()`}
/>

Some amount of pink noise can also be added to any oscillator by using the `noise` paremeter:

<MiniRepl
client:idle
tune={`note("c3").noise("<0.1 0.25 0.5>").scope()`}
/>

### Additive Synthesis

To tame the harsh sound of the basic waveforms, we can set the `n` control to limit the overtones of the waveform:
Expand Down

0 comments on commit b2acff4

Please sign in to comment.