public class TapOut extends UGen
NO_INTERP (no interpolation), LINEAR (linear
interpolation), and ALLPASS (all-pass interpolation). Delay time is
specified in milliseconds and can be set by either a static float value or a
UGen.| Modifier and Type | Class and Description |
|---|---|
static class |
TapOut.InterpolationType |
UGen.OutputInitializationRegime, UGen.OutputPauseRegime| Modifier and Type | Field and Description |
|---|---|
static TapOut.InterpolationType |
ALLPASS
The delayed signal will be derived using all-pass interpolation
|
static TapOut.InterpolationType |
LINEAR
The delayed signal will be derived using linear interpolation.
|
static TapOut.InterpolationType |
NO_INTERP
The delayed signal will not be interpolated from the memory buffer.
|
bufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs| Modifier | Constructor and Description |
|---|---|
protected |
TapOut(AudioContext ac,
TapIn ti) |
|
TapOut(AudioContext ac,
TapIn ti,
float delay)
Constructor for a given TapIn object with a static float delay.
|
|
TapOut(AudioContext ac,
TapIn ti,
TapOut.InterpolationType mode,
float delay)
Constructor for a given TapIn object with a static float delay, using the
specified delay mode.
|
|
TapOut(AudioContext ac,
TapIn ti,
TapOut.InterpolationType mode,
UGen delayUGen)
Constructor for a given TapIn object with a delay time specified by a
UGen, using the specified delay mode.
|
|
TapOut(AudioContext ac,
TapIn ti,
UGen delayUGen)
Constructor for a given TapIn object with a delay time specified by a
UGen.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateBuffer()
Called by the signal chain to update this UGen's ouput data.
|
float |
getDelay()
Gets the current delay time.
|
UGen |
getDelayUGen()
Gets the delay UGen, if there is one.
|
TapOut.InterpolationType |
getMode()
Gets the delay mode.
|
TapOut |
setDelay(float delay)
Sets the delay time to a static value.
|
TapOut |
setDelay(UGen delayUGen)
Sets a UGen to specify the delay time in milliseconds.
|
TapOut |
setMode(TapOut.InterpolationType mode)
Sets the delay mode.
|
addDependent, addInput, addInput, clearDependents, clearInputConnections, containsInput, crossfadeInput, getConnectedInputs, getContext, getEnvelopes, getIns, getNumberOfConnectedUGens, getNumberOfDependents, getOutBuffer, getOuts, getTimeTakenLastUpdate, getValue, getValue, getValueDouble, getValueDouble, initializeOuts, isTimerMode, isUpdated, noInputs, pause, printInBuffers, printInputList, printOutBuffers, removeAllConnections, removeConnection, removeDependent, setOutsToPause, setTimerMode, setValue, update, zeroIns, zeroOutsgetKillListener, getName, isDeleted, isPaused, kill, message, messageReceived, setKillListener, setName, start, toStringpublic static final TapOut.InterpolationType NO_INTERP
public static final TapOut.InterpolationType LINEAR
public static final TapOut.InterpolationType ALLPASS
protected TapOut(AudioContext ac, TapIn ti)
public TapOut(AudioContext ac, TapIn ti, float delay)
ac - The audio context.ti - The TapIn from which to draw the delayed signal.delay - The delay time in milliseconds.public TapOut(AudioContext ac, TapIn ti, UGen delayUGen)
ac - The audio context.ti - The TapIn from which to draw the delayed signal.delayUGen - The UGen specifying the delay time in milliseconds.public TapOut(AudioContext ac, TapIn ti, TapOut.InterpolationType mode, float delay)
ac - The audio context.ti - The TapIn from which to draw the delayed signal.mode - The delay mode; see setMode(InterpolationType).delay - The delay time in milliseconds.public TapOut(AudioContext ac, TapIn ti, TapOut.InterpolationType mode, UGen delayUGen)
ac - The audio context.ti - The TapIn from which to draw the delayed signal.mode - The delay mode; see setMode(InterpolationType).delayUGen - The UGen specifying the delay time in milliseconds.public void calculateBuffer()
UGenUGen.bufIn and putting data
into UGen.bufOut in some way. UGen.bufIn and UGen.bufOut are 2D arrays of floats of the form float[numChannels][bufferSize]. The length of the buffers is given by
UGen.bufferSize, and the number of channels of the input and output buffers are given by UGen.ins and UGen.outs respectively.calculateBuffer in class UGenpublic float getDelay()
public TapOut setDelay(float delay)
delay - The delay time in milliseconds.public TapOut setDelay(UGen delayUGen)
delayUGen - The delay UGen.public UGen getDelayUGen()
null if delay
time is set to a static float.public TapOut setMode(TapOut.InterpolationType mode)
mode - The delay mode.public TapOut.InterpolationType getMode()