ChannelRangeProxy

final case
class ChannelRangeProxy(elem: GE, from: Int, until: Int, step: Int) extends Lazy

A helper graph element that selects a particular range of output channel of another element. The range is specified with integers and thus cannot be determined at graph expansion time. If this is desired, the Select UGen can be used.

Usually the graph element operator out along with a standard Scala Range argument can be used instead of explicitly writing ChannelRangeProxy. Thus elem out (0 until 4) selects the first four channels and is equivalent to ChannelRangeProxy(elem, from = 0, until = 4, step = 1).

Behind the scene, ChannelProxy instances are created, thus ChannelRangeProxy(x, a, b) is the same as (a until b).map(ChannelProxy(x, _)): GE.

Because ScalaCollider allows late-expanding graph elements, we have no direct way to get some array of a UGen's outputs.

Value Params
elem

a multi-channel element from which to select channels.

from

the first index (inclusive) of the channel range, counting from zero.

step

the increment from index to index in the range. A value of one means all channels from from until until will be selected. A value of two means, every second channel will be skipped. A negative value can be used to count down from high to low indices.

until

the end index (exclusive) of the channel range, counting from zero.

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

Value members

Concrete methods

def makeUGens: UGenInLike
def range: Range
def rate: MaybeRate
override
def toString: String
Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product