diff --git a/assets/index-2abfded6.js b/assets/index-5972dfcc.js similarity index 99% rename from assets/index-2abfded6.js rename to assets/index-5972dfcc.js index ca9e2ae..473a255 100644 --- a/assets/index-2abfded6.js +++ b/assets/index-5972dfcc.js @@ -460,6 +460,10 @@ Simple controls over the amplitude (volume) of a given sound. | gain | | Volume of the synth/sample (exponential) | | velocity | vel | Velocity (amplitude) from 0 to 1. Multipled with gain | +\`\`\`javascript +mod(.5)::snd('cp').vel($(1)%10 / 10).out() +\`\`\` + ## 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. @@ -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 | | pan | | Stereo position of the audio playback (0 = left, 1 = 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 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 0 and 1) | -## Undocumented - - -| Method | Description | -| -------------------------------------- | ----------- | -| unit(value: number) | Sets the unit value | -| frequency(value: number)| Sets the playback sample frequency | -| nudge(value: number) | Adjusts the start time of the sound by the given value | -| loop(value: number)| Loops the sample. | -| orbit(value: number)| Sets the orbit value of the sound. | +\`\`\`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() +\`\`\` `,vk=` # Audio Samples diff --git a/index.html b/index.html index aa624cc..ffe24e0 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Topos - +