dist - Distortion
Applies non-linear waveshaping to add harmonic saturation, distortion, and timbral color.
Inputs & Outputs
Section titled “Inputs & Outputs”| Direction | Handle |
|---|---|
| Input | audio-in |
| Output | audio-out |
Parameters
Section titled “Parameters”| Parameter | Label | Type | Default | Range |
|---|---|---|---|---|
| curve | Curve | dropdown | soft | soft, hard, fuzz, clean |
| oversample | Oversample | dropdown | none | none, 2x, 4x |
blzr Mapping
Section titled “blzr Mapping”| Field | Value |
|---|---|
| Native type | WaveShaper |
| Create args | none |
| Implementation status | implemented |
Patch Examples
Section titled “Patch Examples”- none
Implementation Notes
Section titled “Implementation Notes”Parity Notes
Section titled “Parity Notes”- blzr
curveis a preset enum, while native Web Audio expects aFloat32Array.
Future UX Work
Section titled “Future UX Work”- none
Web Audio Reference
Section titled “Web Audio Reference”Based on WaveShaperNode (MDN)
| Field | Value |
|---|---|
| API node | WaveShaperNode |
| Factory | createWaveShaper |
| Factory args | none |
| Web Audio params | “ |
AudioParams
Section titled “AudioParams”| Name | Type |
|---|---|
| - | - |
Properties
Section titled “Properties”| Name | Type |
|---|---|
| curve | Float32Array ? |
| oversample | OverSampleType |
Provenance
Section titled “Provenance”| Source | Identifier | Section |
|---|---|---|
| Primary | w3c-webaudio-1-1 | WaveShaperNode |
| Secondary | mdn-webaudio | Web Audio API |
Related Concepts
Section titled “Related Concepts”Related Guides
Section titled “Related Guides”Related Nodes
Section titled “Related Nodes”- none