1.6 KiB
title, slug, group, order
| title | slug | group | order |
|---|---|---|---|
| Gain | gain | synthesis | 105 |
The signal path is: oscillator → gain * velocity → filters → distortion → modulation → phaser/flanger → envelope * postgain → chorus → pan.
Pre-filter gain multiplier. Applied before filters and distortion, combined with velocity as gain * velocity.
<CodeEditor code={/sound/saw/gain/0.2} rows={2} />
Post-effects gain multiplier. Applied after phaser/flanger, combined with the envelope as envelope * postgain.
<CodeEditor code={/sound/saw/postgain/0.2\n\n/sound/saw/postgain/1/time/0.25} rows={4} />
Multiplied with gain before filters. Also passed as accent to Plaits engines.
<CodeEditor code={/sound/saw/velocity/0.2\n\n/sound/saw/velocity/1/time/0.25} rows={4} />
Stereo position using constant-power panning: left = cos(pan * π/2), right = sin(pan * π/2). 0 = left, 0.5 = center, 1 = right.
<CodeEditor code={/pan/0/freq/329\n\n/pan/1/freq/331} rows={4} />