|
||||||||||
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.Line
public class Line
A UGen that starts at a value and changes linearly to another value over a specified time.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ddf.minim.ugens.UGen |
---|
UGen.InputType, UGen.UGenInput |
Constructor Summary | |
---|---|
Line()
Constructs a Line that starts a 1 and transitions to 0 over 1 second. |
|
Line(float dT)
Constructs a Line that starts at 1 and transtions to 0 over dT seconds. |
|
Line(float dT,
float beginningAmplitude)
Constructs a Line that starts at beginningAmplitude and transtions to 0 over dT seconds. |
|
Line(float dT,
float begAmplitude,
float endAmplitude)
Constructs a Line that starts at begAmplitude and transitions to endAmplitude over dT seconds. |
Method Summary | |
---|---|
void |
activate()
Start the Line's transition. |
protected void |
sampleRateChanged()
Change the timeStepSize when sampleRate changes. |
void |
setEndAmp(float newEndAmp)
Set the ending value of the Line's transition |
void |
setLineTime(float newLineTime)
Set the length of this Line's transition |
protected void |
uGenerate(float[] channels)
Generate one sampleframe for this UGen. |
Methods inherited from class ddf.minim.ugens.UGen |
---|
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, setSampleRate, tick, unpatch, unpatch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Line()
public Line(float dT)
dT
- how long it should take, in seconds, to transtion from 1 to 0.public Line(float dT, float beginningAmplitude)
dT
- how long it should take, in seconds, to transition to 0.beginningAmplitude
- what value to begin at.public Line(float dT, float begAmplitude, float endAmplitude)
dT
- how long it should take, in seconds, to transitionbegAmplitude
- the value to start atendAmplitude
- the value to end atMethod Detail |
---|
public void activate()
public void setEndAmp(float newEndAmp)
newEndAmp
- public void setLineTime(float newLineTime)
newLineTime
- the new transition time (in seconds)protected void sampleRateChanged()
sampleRateChanged
in class UGen
protected void uGenerate(float[] 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 |