Initial commit
This commit is contained in:
45
website/src/content/gain.md
Normal file
45
website/src/content/gain.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "Gain"
|
||||
slug: "gain"
|
||||
group: "synthesis"
|
||||
order: 105
|
||||
---
|
||||
|
||||
<script lang="ts">
|
||||
import CodeEditor from '$lib/components/CodeEditor.svelte';
|
||||
import CommandEntry from '$lib/components/CommandEntry.svelte';
|
||||
</script>
|
||||
|
||||
The signal path is: oscillator → <code>gain * velocity</code> → filters → distortion → modulation → phaser/flanger → <code>envelope * postgain</code> → chorus → <code>pan</code>.
|
||||
|
||||
<CommandEntry name="gain" type="number" min={0} default={1}>
|
||||
|
||||
Pre-filter gain multiplier. Applied before filters and distortion, combined with <code>velocity</code> as <code>gain * velocity</code>.
|
||||
|
||||
<CodeEditor code={`/sound/saw/gain/0.2`} rows={2} />
|
||||
|
||||
</CommandEntry>
|
||||
|
||||
<CommandEntry name="postgain" type="number" min={0} default={1}>
|
||||
|
||||
Post-effects gain multiplier. Applied after phaser/flanger, combined with the envelope as <code>envelope * postgain</code>.
|
||||
|
||||
<CodeEditor code={`/sound/saw/postgain/0.2\n\n/sound/saw/postgain/1/time/0.25`} rows={4} />
|
||||
|
||||
</CommandEntry>
|
||||
|
||||
<CommandEntry name="velocity" type="number" min={0} max={1} default={1}>
|
||||
|
||||
Multiplied with <code>gain</code> before filters. Also passed as <code>accent</code> to Plaits engines.
|
||||
|
||||
<CodeEditor code={`/sound/saw/velocity/0.2\n\n/sound/saw/velocity/1/time/0.25`} rows={4} />
|
||||
|
||||
</CommandEntry>
|
||||
|
||||
<CommandEntry name="pan" type="number" min={0} max={1} default={0.5}>
|
||||
|
||||
Stereo position using constant-power panning: <code>left = cos(pan * π/2)</code>, <code>right = sin(pan * π/2)</code>. 0 = left, 0.5 = center, 1 = right.
|
||||
|
||||
<CodeEditor code={`/pan/0/freq/329\n\n/pan/1/freq/331`} rows={4} />
|
||||
|
||||
</CommandEntry>
|
||||
Reference in New Issue
Block a user