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, unpatch
public 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)
UGen
protected void removeInput(UGen input)
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
UGen