public class Pan extends UGen
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
pan
UGens patched to this input should generate values between -1 and +1.
|
Constructor and Description |
---|
Pan(float panValue)
Construct a Pan UGen with a specific starting pan 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.
|
protected void |
removeInput(UGen input)
When a UGen is unpatched from this UGen, removeInput is called.
|
protected void |
sampleRateChanged()
Override this method in your derived class to receive a notification when
the sample rate of your UGen has changed.
|
void |
setChannelCount(int numberOfChannels)
Pan overrides setChannelCount to ensure that it can
never be set to output more or fewer than 2 channels.
|
void |
setPan(float panValue)
Set the pan value of this Pan.
|
protected void |
uGenerate(float[] channels)
NOTE: Currently only supports stereo audio!
|
addAudio, addControl, addControl, channelCount, channelCountChanged, getLastValues, patch, patch, patch, printInputs, sampleRate, setSampleRate, tick, unpatch, unpatch
public UGen.UGenInput pan
public Pan(float panValue)
panValue
- float: a value of 0 means to pan dead center,
-1 hard left, and 1 hard right.public void setPan(float panValue)
panValue
- the new value for the pan inputprotected void addInput(UGen in)
UGen
protected void removeInput(UGen input)
UGen
removeInput
in class UGen
input
- the UGen to remove as an input to this UGenprotected void sampleRateChanged()
UGen
sampleRateChanged
in class UGen
public void setChannelCount(int numberOfChannels)
setChannelCount
in class UGen
numberOfChannels
- how many channels of audio you will be generating with this UGen