Code format

This commit is contained in:
Aria 2025-08-19 11:27:56 -05:00
parent ce7cff2c3b
commit 59c8d70714

View file

@ -77,13 +77,14 @@ $: s("triangle*4").decay(0.5).n(irand(12)).scale('C minor')
/> />
versus the same pluck with a muted kick drum coming in and overwriting the `roomsize` value (occasionally) versus the same pluck with a muted kick drum coming in and overwriting the `roomsize` value (occasionally)
<MiniRepl <MiniRepl
client:visible client:visible
tune={` tune={`
$: s("triangle*4").decay(0.5).n(irand(12)).scale('C minor') $: s("triangle*4").decay(0.5).n(irand(12)).scale('C minor')
.room(1).roomsize(10) .room(1).roomsize(10)
$: s("bd*4").room(0.01).roomsize(0.01).postgain(0)`} $: s("bd\*4").room(0.01).roomsize(0.01).postgain(0)`}
/> />
This is due to them sharing the same orbit (the default of `1`). It can be corrected simply by updating the orbits to be This is due to them sharing the same orbit (the default of `1`). It can be corrected simply by updating the orbits to be
@ -95,7 +96,7 @@ distinct:
$: s("triangle*4").decay(0.5).n(irand(12)).scale('C minor') $: s("triangle*4").decay(0.5).n(irand(12)).scale('C minor')
.room(1).roomsize(10).orbit(2) .room(1).roomsize(10).orbit(2)
$: s("bd*4").room(0.01).roomsize(0.01).postgain(0)`} $: s("bd\*4").room(0.01).roomsize(0.01).postgain(0)`}
/> />
## Continuous changes ## Continuous changes
@ -115,17 +116,17 @@ Will not produce a continually LFO'd low-pass filter due to the `tri` only being
<MiniRepl <MiniRepl
client:visible client:visible
tune={` tune={`
s("supersaw").seg(16).lpf(tri.range(100, 5000).slow(2))` s("supersaw").seg(16).lpf(tri.range(100, 5000).slow(2))`}
}
/> />
Some parameters _do_ induce continuous variations in time, though: Some parameters _do_ induce continuous variations in time, though:
* The ADSR curve (governed by `attack`, `sustain`, `decay`, `release`)
* The pitch envelope curve (governed by `penv` and its associated ADSR) - The ADSR curve (governed by `attack`, `sustain`, `decay`, `release`)
* The FM curve (`fmenv`) - The pitch envelope curve (governed by `penv` and its associated ADSR)
* The filter envelopes (`lpenv`, `hpenv`, `bpenv`) - The FM curve (`fmenv`)
* Tremolo - The filter envelopes (`lpenv`, `hpenv`, `bpenv`)
* Phaser - Tremolo
- Phaser
# Filters # Filters