CheckBadValues:
Filter:
Classes | UGens > Info

CheckBadValues : UGen : AbstractFunction : Object

Test for infinity, not-a-number, and denormals
Source: TestUGens.sc

Description

This UGen tests for infinity, NaN (not a number), and denormals. If one of these is found, it posts a warning. Its output is as follows: 0 = a normal float, 1 = NaN, 2 = infinity, and 3 = a denormal.

Class Methods

CheckBadValues.ar(in: 0.0, id: 0, post: 2)

CheckBadValues.kr(in: 0.0, id: 0, post: 2)

Arguments:

in

the UGen whose output is to be tested.

id

an id number to identify this UGen. The default is 0.

post

One of three post modes:

  • 0 = no posting;
  • 1 = post a line for every bad value;
  • 2 = post a line only when the floating-point classification changes (e.g., normal -> NaN and vice versa)

The default post mode is 2. Post mode 1 is retained for backward compatibility; be aware that it generates a large amount of output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples