Skip to main content

Interface: SonifierMappingOptions

Defined in: src/audio/sonifier/Sonifier.ts:81

Options shared by the Sonifier constructor, play, and bindToTracker.

Extended by​

Properties​

domain?​

optional domain: DataDomain

Defined in: src/audio/sonifier/Sonifier.ts:83

Data range mapped onto the sound range. play defaults to the series min and max.


gain?​

optional gain: number

Defined in: src/audio/sonifier/Sonifier.ts:93

Constant gain in [0, 1]. Defaults to 0.2. Ignored when gainRange is set.


gainRange?​

optional gainRange: [number, number]

Defined in: src/audio/sonifier/Sonifier.ts:95

When set, the data value also drives gain across [minGain, maxGain].


maxFrequency?​

optional maxFrequency: number

Defined in: src/audio/sonifier/Sonifier.ts:87

Highest frequency in Hz. Defaults to 880.


minFrequency?​

optional minFrequency: number

Defined in: src/audio/sonifier/Sonifier.ts:85

Lowest frequency in Hz. Defaults to 220.


pan?​

optional pan: boolean

Defined in: src/audio/sonifier/Sonifier.ts:97

When true, the data value also drives stereo pan from left to right.


scale?​

optional scale: SonifierScale

Defined in: src/audio/sonifier/Sonifier.ts:89

Frequency scale. Defaults to linear.


waveform?​

optional waveform: SonifierWaveform

Defined in: src/audio/sonifier/Sonifier.ts:91

Oscillator waveform. Defaults to sine.