This commit is contained in:
Bubobubobubobubo
2024-01-16 21:51:09 +00:00
parent 454f3a1bf0
commit f93e6a2859
6 changed files with 5 additions and 3 deletions

Binary file not shown.

View File

@ -3830,9 +3830,11 @@ beat(.5) && snd(['sine', 'triangle', 'sawtooth', 'square'].beat()).freq(100).out
Note that you can also use noise if you do not want to use a periodic oscillator:
${e("Listening to the different types of noise",`
beat(.5) && snd(['brown', 'pink', 'white'].beat()).adsr(0,.1,0,0).out()
beat(.5) && snd(['brown', 'pink', 'white', 'crackle'].beat()).adsr(0,.1,0,0).out()
`,!0)}
The <ic>crackle</ic> type can be controlled using the <ic>density</ic> parameter.
Two functions are primarily used to control the frequency of the synthesizer:
- <ic>freq(hz: number)</ic>: sets the frequency of the oscillator.
- <ic>note(note: number|string)</ic>: sets the MIDI note of the oscillator (MIDI note converted to hertz).

BIN
assets/index-bf1358e4.js.gz Normal file

Binary file not shown.