public class Pan extends UGen
UGen.InputType, UGen.UGenInput| Modifier and Type | Field and Description |
|---|---|
UGen.UGenInput |
pan
UGens patched to pan should generate values between -1 and +1.
|
| Constructor and Description |
|---|
Pan(float panValue)
Construct a Pan UGen with a particular balance and width.
|
| 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)
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 |
setPan(float panValue)
Set the pan value of this Pan.
|
protected void |
uGenerate(float[] channels)
NOTE: Currently only supports stereo audio!
|
getLastValues, patch, patch, patch, printInputs, sampleRate, setSampleRate, tick, unpatch, unpatchpublic UGen.UGenInput pan
public Pan(float panValue)
fBalance - a value of 0 means to pan dead center, -1 hard left, and 1 hard right.public void setPan(float panValue)
panValue - protected void addInput(UGen in)
UGenprotected void removeInput(UGen input)
UGenremoveInput in class UGenprotected void sampleRateChanged()
UGensampleRateChanged in class UGenpublic void setAudioChannelCount(int numberOfChannels)
UGensetAudioChannelCount in class UGennumberOfChannels - how many channels of audio you will be generating with this
UGen