public interface LFO extends Component
| Modifier and Type | Method and Description |
|---|---|
double |
getRawTickValue(int tick)
Returns the LFO's raw value (between 0 and 1) at the given tick, without any scaling or cut-off.
|
int |
getTickValue(int tick)
Returns the LFO's value at the given tick as an integer, taking scaling (via minAmplitude and maxAmplitude) and cut-off (via minValue and
maxValue) into account.
|
void |
setActivitySpeed(double rotationsPerActivity,
int startTick,
int endTick)
Makes this LFO synchronized to a tick range and sets the parameters.
|
void |
setBeatSpeed(double rotationsPerBeat,
int ticksPerBeat)
Makes this LFO synchronized to beats and sets the parameters.
|
void |
setMaxAmplitude(int maxAmplitude)
Sets the maximum value of the amplitude.
|
void |
setMaxValue(int maxValue)
Sets the maximum value to return.
|
void |
setMinAmplitude(int minAmplitude)
Sets the minimum value of the amplitude.
|
void |
setMinValue(int minValue)
Sets the minimum value to return.
|
void |
setPhase(double phase)
Set the starting phase (the phase to use for tick 0).
|
void |
setSegmentPairSpeed(double rotationsPerSegmentPair,
ActivityVector activityVector)
Makes this LFO synchronized to an ActivityVector's activity and pause segments.
|
void |
setSongContext(SongContext songContext)
Sets the song context.
|
void |
setSongSpeed(double rotationsPerSong,
int ticksPerSong)
Makes this LFO synchronized to the song length and sets the parameters.
|
void |
setTimeSpeed(double rotationsPerSecond,
int ticksPerBeat,
double bpm)
Makes this LFO synchronized to time and sets the parameters.
|
configuregetRandomSeed, setRandomSeedint getTickValue(int tick)
tick - the tick (non-negative)double getRawTickValue(int tick)
tick - the tick (non-negative)void setBeatSpeed(double rotationsPerBeat,
int ticksPerBeat)
rotationsPerBeat - the number of rotations per beatticksPerBeat - the number of ticks per beatvoid setSongSpeed(double rotationsPerSong,
int ticksPerSong)
rotationsPerSong - the number of rotations for the whole songticksPerSong - the ticks of the songvoid setActivitySpeed(double rotationsPerActivity,
int startTick,
int endTick)
rotationsPerActivity - the number of rotations for the tick rangestartTick - the start tickendTick - the end tickvoid setSegmentPairSpeed(double rotationsPerSegmentPair,
ActivityVector activityVector)
rotationsPerSegmentPair - the number of rotations per segment pairactivityVector - the activity vectorvoid setTimeSpeed(double rotationsPerSecond,
int ticksPerBeat,
double bpm)
rotationsPerSecond - the number of rotations per secondticksPerBeat - the ticks per beatbpm - the BPMvoid setPhase(double phase)
phase - the number of rotations for the initial phasevoid setMinValue(int minValue)
minValue - the value minimumvoid setMaxValue(int maxValue)
maxValue - the value maximumvoid setMinAmplitude(int minAmplitude)
minAmplitude - the minimum amplitude valuevoid setMaxAmplitude(int maxAmplitude)
maxAmplitude - the maximum amplitude valuevoid setSongContext(SongContext songContext)
songContext - the song context