Sliding

final case
class Sliding(in: GE, size: GE, step: GE) extends SingleOut

A UGen that produces a sliding window over its input.

When the input terminates and the last window is not full, it will be flushed with its partial content. Otherwise, all windows are guaranteed to be zero-padded to the window length if they had been only partially filled when the input ended.

Unlike the sliding operation of Scala collections, the UGen always performs steps for partial windows, e.g. Sliding(ArithmSeq(1, length = 4), size = 3, step = 1) will produce the flat output 1, 2, 3, 2, 3, 4, 3, 4, 0, 4, thus there are four windows, the first two of which are full, the third which is full by padding, and the last is partial.

Value Params
in

the input to be repacked into windows

size

the window size. this is clipped to be at least one

step

the stepping factor in the input, between windows. This clipped to be at least one. If step size is larger than window size, frames in the input are skipped.

See also
Companion
object
trait Serializable
trait SingleOut
trait SomeOut[StreamOut]
trait Lazy
trait GE
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