de.sciss.synth.ugen

TWindex

final case class TWindex(rate: Rate, trig: GE, prob: GE, normalize: GE) extends SingleOut with Product with Serializable

A UGen providing a probability-weighted index into a sequence upon receiving a trigger.

When triggered, returns a random index value based the values of the channels of the prob argument functioning as probabilities. The index is zero based, hence goes from 0 to prob.numOutputs - 1.

By default the sequence of probabilities should sum to 1.0, however for convenience, this can be achieved by the ugen when the normalize flag is set to 1 (less efficient).

trig

the trigger used to calculate a new index. a trigger occurs when passing from non-positive to positive

prob

a multi-channel graph element, where the output channels correspond to to the probabilites of their respective indices being chosen.

normalize

0 if the seq argument already sums up to 1.0 and thus doesn't need normalization, 1 if the sum is not guaranteed to be 1.0 and thus the ugen is asked to provide the normalization.

See also

de.sciss.synth.ugen.Select

Linear Supertypes
Product, Equals, SingleOut, SomeOut, GE.Lazy, GE, UGenSource[UGenInLike], Expander[UGenInLike], Lazy, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TWindex
  2. Product
  3. Equals
  4. SingleOut
  5. SomeOut
  6. Lazy
  7. GE
  8. UGenSource
  9. Expander
  10. Lazy
  11. Serializable
  12. Serializable
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TWindex(rate: Rate, trig: GE, prob: GE, normalize: GE)

    trig

    the trigger used to calculate a new index. a trigger occurs when passing from non-positive to positive

    prob

    a multi-channel graph element, where the output channels correspond to to the probabilites of their respective indices being chosen.

    normalize

    0 if the seq argument already sums up to 1.0 and thus doesn't need normalization, 1 if the sum is not guaranteed to be 1.0 and thus the ugen is asked to provide the normalization.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def displayName: String

    Definition Classes
    UGenSource
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. final def expand: UGenInLike

    A final implementation of this method which looks up the current ugen graph builder and then performs the expansion just as force, returning the expanded object

    A final implementation of this method which looks up the current ugen graph builder and then performs the expansion just as force, returning the expanded object

    returns

    the expanded object (e.g. Unit for a ugen with no outputs, or a single ugen, or a group of ugens)

    Definition Classes
    Expander
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. final def force(b: Builder): Unit

    A final implementation of this method which calls visit on the builder, checking if this element has already been visited, and if not, will invoke the expand method.

    A final implementation of this method which calls visit on the builder, checking if this element has already been visited, and if not, will invoke the expand method. Therefore it is guaranteed, that the expansion to ugens is performed no more than once in the graph expansion.

    b

    the ugen graph builder to which expanded UGens or control proxies may be added.

    Definition Classes
    ExpanderLazy
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def makeUGen(_args: IndexedSeq[UGenIn]): UGenInLike

    Attributes
    protected
    Definition Classes
    TWindexUGenSource
  16. def makeUGens: UGenInLike

    Abstract method which must be implemented by creating the actual UGens during expansion.

    Abstract method which must be implemented by creating the actual UGens during expansion. This method is at most called once during graph expansion

    returns

    the expanded object (depending on the type parameter U)

    Attributes
    protected
    Definition Classes
    TWindexExpander
  17. val name: String

    Definition Classes
    SingleOutUGenSource
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. val normalize: GE

    0 if the seq argument already sums up to 1.

    0 if the seq argument already sums up to 1.0 and thus doesn't need normalization, 1 if the sum is not guaranteed to be 1.0 and thus the ugen is asked to provide the normalization.

  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val prob: GE

    a multi-channel graph element, where the output channels correspond to to the probabilites of their respective indices being chosen.

  23. val rate: Rate

    Definition Classes
    TWindexGE
  24. final def rewrap(args: IndexedSeq[UGenInLike], exp: Int): UGenInLike

    Attributes
    protected
    Definition Classes
    SomeOutUGenSource
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. val trig: GE

    the trigger used to calculate a new index.

    the trigger used to calculate a new index. a trigger occurs when passing from non-positive to positive

  27. final def unwrap(args: IndexedSeq[UGenInLike]): UGenInLike

    Attributes
    protected
    Definition Classes
    UGenSource
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Product

Inherited from Equals

Inherited from SingleOut

Inherited from SomeOut

Inherited from GE.Lazy

Inherited from GE

Inherited from UGenSource[UGenInLike]

Inherited from Expander[UGenInLike]

Inherited from Lazy

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped