public class TickRate extends UGen
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
value |
Modifier and Type | Method and Description |
---|---|
protected void |
addInput(UGen in)
If you want to do something other than the default behavior when your
UGen is patched to, you can override this method in your derived class.
|
boolean |
isInterpolating() |
protected void |
removeInput(UGen in)
If you need to do something specific when something is unpatched from
your UGen, you can override this method.
|
protected void |
sampleRateChanged()
Override this method in your derived class to receive a notification when
the sample rate of your UGen has changed.
|
void |
setAudioChannelCount(int numberOfChannels)
Let this UGen know how many channels of audio you will be asking it for.
|
void |
setInterpolation(boolean doInterpolate) |
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen.
|
getLastValues, patch, patch, patch, printInputs, sampleRate, setSampleRate, tick, unpatch, unpatch
public UGen.UGenInput value
public final void setInterpolation(boolean doInterpolate)
public final boolean isInterpolating()
protected void addInput(UGen in)
UGen
protected void removeInput(UGen in)
UGen
removeInput
in class UGen
protected void sampleRateChanged()
UGen
sampleRateChanged
in class UGen
public void setAudioChannelCount(int numberOfChannels)
UGen
setAudioChannelCount
in class UGen
numberOfChannels
- how many channels of audio you will be generating with this
UGenprotected void uGenerate(float[] channels)
UGen
getLastValues
method of your audio UGenInput to
retrieve the audio you want to modify, which you will then modify however
you need to, assigning the result to the values in channels
.