InRange

object InRange extends ProductReader[InRange]

A UGen that tests if a signal is within a given range. If in >= lo and in <= hi , outputs 1.0, otherwise outputs 0.0.

===Examples===

// detect whether mouse is in specific horizontal range
play {
 val x = MouseX.kr
 InRange.kr(x, 0.4, 0.6) * PinkNoise.ar(0.3)
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[InRange]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ar(in: GE, lo: GE, hi: GE): InRange
Value Params
hi

upper margin of test range (inclusive)

in

input signal to test

lo

lower margin of test range (inclusive)

def ir(in: GE, lo: GE, hi: GE): InRange
Value Params
hi

upper margin of test range (inclusive)

in

input signal to test

lo

lower margin of test range (inclusive)

def kr(in: GE, lo: GE, hi: GE): InRange
Value Params
hi

upper margin of test range (inclusive)

in

input signal to test

lo

lower margin of test range (inclusive)

def read(in: RefMapIn, key: String, arity: Int): InRange