public class LFOSequence extends Object
| Constructor and Description |
|---|
LFOSequence(SongContext songContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(double value)
Adds the value to the sequence with a duration of 1 tick.
|
void |
addValue(double value,
int ticks)
Adds the value to the sequence with the given duration of ticks.
|
int |
getTicks()
Returns the total number of ticks this sequence spans.
|
double |
getValue(int tick)
Returns the LFO value at the given tick.
|
public LFOSequence(SongContext songContext)
songContext - the song contextpublic void addValue(double value)
value - the LFO valuepublic void addValue(double value,
int ticks)
value - the LFO valueticks - the number of tickspublic double getValue(int tick)
tick - the tickpublic int getTicks()