public class Clip extends UGen implements DataBeadReceiver
RangeLimiter
to strictly (and more
efficiently) constrain a signal in the range [-1,1].UGen.OutputInitializationRegime, UGen.OutputPauseRegime
bufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs
Constructor and Description |
---|
Clip(AudioContext context)
Constructor for a one-channel Clip.
|
Clip(AudioContext context,
int channels)
Constructor for a new Clip with the specified number of channels.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateBuffer()
Called by the signal chain to update this UGen's ouput data.
|
float |
getMaximum()
Gets the current maximum value.
|
UGen |
getMaximumUGen()
Gets the maximum value controller UGen, if there is one.
|
float |
getMinimum()
Gets the current minimum value.
|
UGen |
getMinimumUGen()
Gets the minimum value controller UGen, if there is one.
|
DataBead |
getParams()
Gets a new DataBead filled with the properties "minimum" and "maximum"
set to the corresponding UGen controllers, if they exist, or to static
values.
|
DataBead |
getStaticParams()
Gets a new DataBead filled with the properties "minimum" and "maximum"
set to their current values.
|
DataBeadReceiver |
sendData(DataBead db)
Sets the Clip parameters according to the properties "maximum" and/or
"minimum" in the specified DataBead.
|
Clip |
setMaximum(float maximum)
Sets the maximum to a static value.
|
Clip |
setMaximum(UGen maximumUGen)
Sets a UGen to control the maximum value.
|
Clip |
setMinimum(float minimum)
Sets the minimum to a static value.
|
Clip |
setMinimum(UGen minimumUGen)
Sets a UGen to control the minimum value.
|
Clip |
setRange(float minimum,
float maximum)
Sets the range.
|
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, zeroOuts
getKillListener, getName, isDeleted, isPaused, kill, message, messageReceived, setKillListener, setName, start, toString
public Clip(AudioContext context)
context
- The audio context.public Clip(AudioContext context, int channels)
context
- The audio context.channels
- The number of channels.public void calculateBuffer()
UGen
UGen.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 UGen
public Clip setRange(float minimum, float maximum)
minimum
- The minimum value.maximum
- The maximum value.public float getMinimum()
public Clip setMinimum(float minimum)
minimum
- The new minimum value.public Clip setMinimum(UGen minimumUGen)
minimumUGen
- The minimum value controller UGen.public UGen getMinimumUGen()
public float getMaximum()
public Clip setMaximum(float maximum)
maximum
- The new maximum value.public Clip setMaximum(UGen maximumUGen)
maximumUGen
- The maximum value controller UGen.public UGen getMaximumUGen()
public DataBeadReceiver sendData(DataBead db)
sendData
in interface DataBeadReceiver
db
- The parameter DataBead.public DataBead getParams()
public DataBead getStaticParams()