Skip to content

FilterDefinition

One engine preset. render computes the engine-native payload; a preset that declares default, min or max accepts a numeric value clamped to its range, otherwise it is fixed.

Type Parameter Default type
Payload unknown
Property Type Description
default? number -
label? string Display name without the value, for voice.filters.entries and distube.filters; the preset name when absent.
max? number -
min? number -
render (value?) => Payload -
tempo? number | ((value?) => number) Source seconds this preset plays per wall second, or a function of the clamped value returning it, for an engine that cannot read the rate from its payload. Finite and above 0.