From d8019890c4f0c70776a25602ef532ac69de238a2 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Thu, 31 Aug 2023 15:35:11 +0200 Subject: [PATCH] Push more information --- src/classes/SoundEvent.ts | 1 + src/documentation/synths.ts | 28 +++++++++++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/classes/SoundEvent.ts b/src/classes/SoundEvent.ts index d800022..a48ddc7 100644 --- a/src/classes/SoundEvent.ts +++ b/src/classes/SoundEvent.ts @@ -28,6 +28,7 @@ export class SoundEvent extends AudibleEvent { zrand = (value: number) => this.updateValue("zrand", value); curve = (value: number) => this.updateValue("curve", value); slide = (value: number) => this.updateValue("slide", value); + sld = this.slide; deltaSlide = (value: number) => this.updateValue("deltaSlide", value); dslide = this.deltaSlide; pitchJump = (value: number) => this.updateValue("pitchJump", value); diff --git a/src/documentation/synths.ts b/src/documentation/synths.ts index 671b95e..1fe45c9 100644 --- a/src/documentation/synths.ts +++ b/src/documentation/synths.ts @@ -136,16 +136,34 @@ mod(.5) :: sound(['z_sine', 'z_triangle', 'z_sawtooth', 'z_tan', 'z_noise'].beat `, true )} +${makeExample("Minimalist chiptune", ``, true)} -It comes with a set of parameters that can be used to tweak the sound: +It comes with a set of parameters that can be used to tweak the sound. Don't underestimate this synth! It is very powerful for generating anything ranging from chaotic noise sources to lush pads: | Method | Alias | Description | |----------|-------|------------------------------------------------------------| -|zrand| randomisation factor. Seems to concern pitch as well, beware. -|volume| overall volume of the sound. -|frequency| sound frequency, also controllable using note. -|attack, decay, sustain, release | atk: envelope parameters. +|zrand| | randomisation factor.| +|attack|atk| attack time of the envelope.| +|decay|dec| decay time of the envelope.| +|sustain|sus| sustain time of the envelope.| +|release|rel| release time of the envelope.| +|volume|vol| overall volume | +|frequency|freq| sound frequency, also supports note. +|curve| | Oscillator waveshaping (0-3) | +|slide|sld| Pitch slide | +|deltaSlide|dslide| Other pitch slide parameter | +|pitchJump|pj| Pitch change after pitchJumpTime | +|pitchJumpTime|pjt| Applies pitchJump after _n_ | +|noise| | adds noise| +|zcrush| | Bitcrushing | +|zdelay| | Weird tiny delay | +|tremolo| | Amplitude tremolo (can be loud) | +|zmod|| frequency modulation speed.| +|duration|| Total sound duration (overrides envelope) | +${makeExample("Chaotic Noise source", ``, true)} +${makeExample("Funny Gameboy Tune", ``, false)} +${makeExample("Ambiant noise", ``, false)} # Speech synthesis