safety

class CheckBadValues(calculation_rate=None, ugen_id=0, post_mode=2, source=None)

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()
classmethod ar(source: SupportsFloat | UGenMethodMixin | None = None, ugen_id: SupportsFloat | UGenMethodMixin = 0, post_mode: SupportsFloat | UGenMethodMixin = 2) CheckBadValues
classmethod kr(source: SupportsFloat | UGenMethodMixin | None = None, ugen_id: SupportsFloat | UGenMethodMixin = 0, post_mode: SupportsFloat | UGenMethodMixin = 2) CheckBadValues
property post_mode : SupportsFloat | UGenMethodMixin
property source : SupportsFloat | UGenMethodMixin
property ugen_id : SupportsFloat | UGenMethodMixin
class Sanitize(calculation_rate=None, source=None, replace=0.0, **kwargs)

Bases: UGen

Remove infinity, NaN, and denormals.

classmethod ar(source: SupportsFloat | UGenMethodMixin | None = None, replace: SupportsFloat | UGenMethodMixin = 0.0) Sanitize
classmethod kr(source: SupportsFloat | UGenMethodMixin | None = None, replace: SupportsFloat | UGenMethodMixin = 0.0) Sanitize
property replace : SupportsFloat | UGenMethodMixin
property source : SupportsFloat | UGenMethodMixin