Class

de.sciss.fscape.graph

Resample

Related Doc: package graph

Permalink

final case class Resample(in: GE, factor: GE, minFactor: GE = 0, rollOff: GE = 0.86, kaiserBeta: GE = 7.5, zeroCrossings: GE = 15) extends SingleOut with Product with Serializable

A band-limited resampling UGen.

It uses an internal table for the anti-aliasing filter. Table resolution is currently fixed at 4096 filter samples per zero crossing and linear interpolation in the FIR table, but the total filter length can be specified through the zeroCrossings parameter. Note: If filter parameters are changed, the table must be recalculated which is very expensive. However, factor modulation is efficient.

Note: Unlike most other UGens, all parameters but in are read at "output rate". That is particular important for factor modulation. For each frame output, one frame from factor is consumed.

in

the signal to resample

factor

the resampling factor, where values greater than one mean the signal is stretched (sampling-rate increases or pitch lowers) and values less than one mean the signal is condensed (sampling-rate decreases or pitch rises)

minFactor

the minimum expected resampling factor, which controls the amount of buffering needed for the input signal. This is used at initialization time only. The default value of zero makes the UGen settles on the first factor value encountered. It is possible to use a value actually higher than the lowest provided factor, in order to limit the buffer usage. In that case, the FIR anti-aliasing filter will be truncated.

rollOff

the FIR anti-aliasing roll-off width

kaiserBeta

the FIR windowing function's parameter

zeroCrossings

the number of zero-crossings in the truncated and windowed sinc FIR.

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

Instance Constructors

  1. new Resample(in: GE, factor: GE, minFactor: GE = 0, rollOff: GE = 0.86, kaiserBeta: GE = 7.5, zeroCrossings: GE = 15)

    Permalink

    in

    the signal to resample

    factor

    the resampling factor, where values greater than one mean the signal is stretched (sampling-rate increases or pitch lowers) and values less than one mean the signal is condensed (sampling-rate decreases or pitch rises)

    minFactor

    the minimum expected resampling factor, which controls the amount of buffering needed for the input signal. This is used at initialization time only. The default value of zero makes the UGen settles on the first factor value encountered. It is possible to use a value actually higher than the lowest provided factor, in order to limit the buffer usage. In that case, the FIR anti-aliasing filter will be truncated.

    rollOff

    the FIR anti-aliasing roll-off width

    kaiserBeta

    the FIR windowing function's parameter

    zeroCrossings

    the number of zero-crossings in the truncated and windowed sinc FIR.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. val factor: GE

    Permalink

    the resampling factor, where values greater than one mean the signal is stretched (sampling-rate increases or pitch lowers) and values less than one mean the signal is condensed (sampling-rate decreases or pitch rises)

  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. val in: GE

    Permalink

    the signal to resample

  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val kaiserBeta: GE

    Permalink

    the FIR windowing function's parameter

  13. def makeUGen(args: IndexedSeq[UGenIn])(implicit b: Builder): UGenInLike

    Permalink
    Attributes
    protected
    Definition Classes
    ResampleUGenSource
  14. def makeUGens(implicit b: Builder): UGenInLike

    Permalink

    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
    ResampleExpander
  15. val minFactor: GE

    Permalink

    the minimum expected resampling factor, which controls the amount of buffering needed for the input signal.

    the minimum expected resampling factor, which controls the amount of buffering needed for the input signal. This is used at initialization time only. The default value of zero makes the UGen settles on the first factor value encountered. It is possible to use a value actually higher than the lowest provided factor, in order to limit the buffer usage. In that case, the FIR anti-aliasing filter will be truncated.

  16. final def name: String

    Permalink
    Definition Classes
    UGenSource
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def rewrap(args: IndexedSeq[UGenInLike], exp: Int)(implicit b: Builder): UGenInLike

    Permalink
    Attributes
    protected
    Definition Classes
    SomeOutUGenSource
  21. val rollOff: GE

    Permalink

    the FIR anti-aliasing roll-off width

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. final def unwrap(args: IndexedSeq[UGenInLike])(implicit b: Builder): UGenInLike

    Permalink
    Attributes
    protected
    Definition Classes
    UGenSource
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. val zeroCrossings: GE

    Permalink

    the number of zero-crossings in the truncated and windowed sinc FIR.

Inherited from Serializable

Inherited from Serializable

Inherited from SingleOut

Inherited from SomeOut[StreamOut]

Inherited from GE.Lazy

Inherited from GE

Inherited from UGenSource[UGenInLike, StreamOut]

Inherited from Expander[UGenInLike]

Inherited from Lazy

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped