ChannelIndices

final case
class ChannelIndices(in: GE) extends SingleOut with ScalarRated

A graph element that produces an integer sequence from zero until the number-of-channels of the input element.

===Examples===

// cross-faded select
play {
 val sines: GE = Seq.fill(4)(SinOsc.ar(ExpRand(200, 2000)))
 val index   = MouseX.kr(lo = 0, hi = NumChannels(sines) - 1)
 val indices = ChannelIndices(sines)
 indices.poll(0, "indices")
 val select  = 1 - (indices absdif index).min(1)
 val sig     = Mix(sines * select)
 sig * 0.2
}
Value Params
in

the element whose indices to produce

See also
Companion
object
trait Serializable
trait ScalarRated
class SingleOut
class SomeOut
trait Lazy
trait GE
class UGenSource[UGenInLike]
trait Expander[UGenInLike]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

final
def name: String
Inherited from
UGenSource
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final
def rate: Rate
Inherited from
ScalarRated

Inherited fields

lazy override
val hashCode: Int
Inherited from
UGenSource