safety

class CheckBadValues(*, calculation_rate: CalculationRate | SupportsInt | str | None, source: SupportsFloat | UGenScalar, ugen_id: SupportsFloat | UGenScalar = 0, post_mode: SupportsFloat | UGenScalar = 2, **kwargs)

Bases: UGen

Tests for infinity, not-a-number, and denormals.

>>> source = supriya.ugens.SinOsc.ar()
>>> ugen_id = 23
>>> post_mode = 0
>>> check_bad_values = supriya.ugens.CheckBadValues.ar(
...     source=source,
...     ugen_id=ugen_id,
...     post_mode=post_mode,
... )
>>> check_bad_values
<CheckBadValues.ar()[0]>
classmethod ar(*, source: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]], ugen_id: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]] = 0, post_mode: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]] = 2) UGenOperable
classmethod kr(*, source: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]], ugen_id: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]] = 0, post_mode: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]] = 2) UGenOperable
property post_mode : UGenScalar
property source : UGenScalar
property ugen_id : UGenScalar
class Sanitize(*, calculation_rate: CalculationRate | SupportsInt | str | None, source: SupportsFloat | UGenScalar, replace: SupportsFloat | UGenScalar = 0.0, **kwargs)

Bases: UGen

Remove infinity, NaN, and denormals.

classmethod ar(*, source: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]], replace: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]] = 0.0) UGenOperable
classmethod kr(*, source: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]], replace: SupportsFloat | UGenOperable | UGenSerializable | Sequence[SupportsFloat | UGenOperable | UGenSerializable | Sequence[UGenRecursiveInput]] = 0.0) UGenOperable
property replace : UGenScalar
property source : UGenScalar