Synth
A versatile element for creating synth sounds. The sound is sculpted using any number of subject <carrier-blam> and <modulator-blam> elements. Each of which can use any type of waveform and be associated with any <chain-blam> effects. In addition, modulation elements like <lfo-blam> and event-reactive elements like <blam-blam> can be used per <synth-blam> and/or per constituent operator (<carrier-blam> or <modulator-blam>).
DRAFT! This element is in early development and is liable to change or possibly be replaced.
- class
- Synth
- extends
- SynthBase
- tag
<synth-blam>
Props
| name | type | default | description |
|---|---|---|---|
| detune | number | 0 | For |
| notes | string | ’C4 D#4 G4’ | A space-separated list of notes (with the numbers representing the octaves) to be played where the |
| robin | boolean | false | Whether to play the |
| gain | number | 1 | The overall output level of the element. |
| out | string | The element to which the output is connected. This should rarely be changed, since SynthBase-derived elements have good sensible defaults. |
Events
| type | description |
|---|---|
| blam | Fired whenever |
| blamstop | Fired whenever |
Methods
| name | args | description |
|---|---|---|
| play | note: The note (e.g. D#4) to play. time: When, relative to the context’s |
Plays each of the subject/descendant operator elements simultaneously. To put it another way, makes a synthy sound. |
| stop | time: When, relative to the context’s |
Triggers the |
Examples
Examples that use the Synth element: