|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ddf.minim.ugens.UGen ddf.minim.ugens.Multiplier
public class Multiplier
Multiplier is a UGen that will simply multiply the incoming audio signal by either a fixed value or by whatever its amplitude input is currently generating.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ddf.minim.ugens.UGen |
---|
UGen.InputType, UGen.UGenInput |
Field Summary | |
---|---|
UGen.UGenInput |
amplitude
The amplitude input allows you to control the value being used for multiplying with another UGen. |
UGen.UGenInput |
audio
The audio input is where incoming audio should be patched, but you can simply patch to the Multiplier itself. |
Constructor Summary | |
---|---|
Multiplier()
Construct a Multiplier with a fixed value of 1, which will mean incoming audio is not changed. |
|
Multiplier(float multValue)
Construct a Multiplier with the fixed value of multValue. |
Method Summary | |
---|---|
void |
setValue(float multValue)
Set the fixed value of this Multiplier. |
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen. |
Methods inherited from class ddf.minim.ugens.UGen |
---|
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setSampleRate, tick, unpatch, unpatch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public UGen.UGenInput audio
public UGen.UGenInput amplitude
Constructor Detail |
---|
public Multiplier()
public Multiplier(float multValue)
multValue
- Method Detail |
---|
public void setValue(float multValue)
gainVal
- protected 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
.
uGenerate
in class UGen
channels
- an array representing one sample frame.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |