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
- Alphabetic
- By Inheritance
- Sliding
- Serializable
- SingleOut
- SomeOut
- Lazy
- GE
- UGenSource
- Expander
- Lazy
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-  val in: GE[A]
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-    def makeUGen(args: IndexedSeq[UGenIn[_]])(implicit b: Builder): UGenInLike[A]- Attributes
- protected
- Definition Classes
- Sliding → UGenSource
 
-    def makeUGens(implicit b: Builder): UGenInLike[A]Abstract method which must be implemented by creating the actual UGens during expansion.
-   final  def name: String- Definition Classes
- UGenSource
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-    def productElementNames: Iterator[String]- Definition Classes
- Product
 
-  val size: I
-  val step: I
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
Deprecated Value Members
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated