Packages

final case class Sliding[A](in: GE[A], size: I, step: I) extends SingleOut[A] with Product with Serializable

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.

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

OverlapAdd

Linear Supertypes
Serializable, SingleOut[A], SomeOut[A, StreamOut], GE.Lazy[A], GE[A], UGenSource[UGenInLike[A], StreamOut], Expander[UGenInLike[A]], Lazy, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sliding
  2. Serializable
  3. SingleOut
  4. SomeOut
  5. Lazy
  6. GE
  7. UGenSource
  8. Expander
  9. Lazy
  10. Product
  11. Equals
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Sliding(in: GE[A], size: I, step: I)

    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.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  8. val in: GE[A]
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. def makeUGen(args: IndexedSeq[UGenIn[_]])(implicit b: Builder): UGenInLike[A]
    Attributes
    protected
    Definition Classes
    SlidingUGenSource
  11. def makeUGens(implicit b: Builder): UGenInLike[A]

    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
    SlidingExpander
  12. final def name: String
    Definition Classes
    UGenSource
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def productElementNames: Iterator[String]
    Definition Classes
    Product
  17. val size: I
  18. val step: I
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from SingleOut[A]

Inherited from SomeOut[A, StreamOut]

Inherited from GE.Lazy[A]

Inherited from GE[A]

Inherited from UGenSource[UGenInLike[A], StreamOut]

Inherited from Expander[UGenInLike[A]]

Inherited from Lazy

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped