This commit is contained in:
Bubobubobubobubo
2023-08-24 14:37:13 +00:00
parent fed843c137
commit a37b5d3aee
2 changed files with 20 additions and 11 deletions

View File

@ -460,6 +460,10 @@ Simple controls over the amplitude (volume) of a given sound.
| gain | | Volume of the synth/sample (exponential) | | gain | | Volume of the synth/sample (exponential) |
| velocity | vel | Velocity (amplitude) from 0 to 1. Multipled with gain | | velocity | vel | Velocity (amplitude) from 0 to 1. Multipled with gain |
\`\`\`javascript
mod(.5)::snd('cp').vel($(1)%10 / 10).out()
\`\`\`
## Amplitude Enveloppe ## Amplitude Enveloppe
**Superdough** is applying an **ADSR** envelope to every sound being played. This is a very standard and conventional amplitude envelope composed of four stages: _attack_, _decay_, _sustain_ and _release_. You will find the same parameters on most synthesizers. **Superdough** is applying an **ADSR** envelope to every sound being played. This is a very standard and conventional amplitude envelope composed of four stages: _attack_, _decay_, _sustain_ and _release_. You will find the same parameters on most synthesizers.
@ -495,6 +499,17 @@ There are some basic controls over the playback of each sample. This allows you
| clip | | Multiply the duration of the sample with the given number | | clip | | Multiply the duration of the sample with the given number |
| pan | | Stereo position of the audio playback (<icode>0</icode> = left, <icode>1</icode> = right)| | pan | | Stereo position of the audio playback (<icode>0</icode> = left, <icode>1</icode> = right)|
\`\`\`javascript
// Using some of the modifiers described above :)
mod(.5)::snd('pad').begin(0.2)
.speed(divseq(4, 1, 0.9, 0.8))
.n(divseq(2, 0, 0, 2, 4)).pan(usine(.5))
.end(rand(0.3,0.8))
.room(0.8).size(0.5)
.clip(1).out()
\`\`\`
## Filters ## Filters
There are three basic filters: a _lowpass_, _highpass_ and _bandpass_ filters with rather soft slope. Each of them can take up to two arguments. You can also use only the _cutoff_ frequency and the resonance will stay to its default nominal value. There are three basic filters: a _lowpass_, _highpass_ and _bandpass_ filters with rather soft slope. Each of them can take up to two arguments. You can also use only the _cutoff_ frequency and the resonance will stay to its default nominal value.
@ -554,16 +569,10 @@ mod(1)::snd('kick').out()
| shape | | Waveshaping distortion (between <icode>0</icode> and <icode>1</icode>) | | shape | | Waveshaping distortion (between <icode>0</icode> and <icode>1</icode>) |
## Undocumented \`\`\`javascript
mod(.5)::snd('pad').coarse($(1) % 16).clip(.5).out(); // Comment me
mod(.5)::snd('pad').crush(divseq(2, 16, 8, 4)).clip(.5).out()
| Method | Description | \`\`\`
| -------------------------------------- | ----------- |
| <icode>unit(value: number)</icode> | Sets the unit value |
| <icode>frequency(value: number)</icode>| Sets the playback sample frequency |
| <icode>nudge(value: number)</icode> | Adjusts the start time of the sound by the given value |
| <icode>loop(value: number)</icode>| Loops the sample. |
| <icode>orbit(value: number)</icode>| Sets the orbit value of the sound. |
`,vk=` `,vk=`
# Audio Samples # Audio Samples

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Topos</title> <title>Topos</title>
<script type="module" crossorigin src="/assets/index-2abfded6.js"></script> <script type="module" crossorigin src="/assets/index-5972dfcc.js"></script>
<link rel="stylesheet" href="/assets/index-0fad811a.css"> <link rel="stylesheet" href="/assets/index-0fad811a.css">
</head> </head>
<style> <style>