Resample

final case class Resample(in: D, factor: D, minFactor: D, rollOff: D, kaiserBeta: D, zeroCrossings: I) extends SingleOut[Double]

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. Currently, modulating rollOff, kaiserBeta or zeroCrossings is not advised, as this case is not properly handled internally.

Value parameters:
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)

in

the signal to resample

kaiserBeta

the FIR windowing function's parameter

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

zeroCrossings

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

Companion:
object
trait Serializable
trait SingleOut[Double]
trait Lazy[Double]
trait GE[Double]
trait Expander[UGenInLike[Double]]
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