Packages

object InRange extends ProductReader[InRange] with Serializable

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

InRect

Clip

Schmidt

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InRange
  2. Serializable
  3. ProductReader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def ar(in: GE, lo: GE = 0.0f, hi: GE = 1.0f): InRange

    in

    input signal to test

    lo

    lower margin of test range (inclusive)

    hi

    upper margin of test range (inclusive)

  2. def ir(in: GE, lo: GE = 0.0f, hi: GE = 1.0f): InRange

    in

    input signal to test

    lo

    lower margin of test range (inclusive)

    hi

    upper margin of test range (inclusive)

  3. def kr(in: GE, lo: GE = 0.0f, hi: GE = 1.0f): InRange

    in

    input signal to test

    lo

    lower margin of test range (inclusive)

    hi

    upper margin of test range (inclusive)

  4. def read(in: RefMapIn, key: String, arity: Int): InRange
    Definition Classes
    InRangeProductReader