public class RaisedCosineEnvelope extends GrainCommon implements GrainEnvelope
output = 0.5 - (0.5 * cos(phase))
GrainFarm| Constructor and Description |
|---|
RaisedCosineEnvelope() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreValues()
Are there any more values to be generated in the envelope?
|
double |
next() |
void |
reset()
Reset the envelope back to the beginning.
|
void |
setDuration(double duration) |
getFrameRate, setFrameRateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFrameRate, setFrameRatepublic double next()
next in interface GrainEnvelopepublic boolean hasMoreValues()
GrainEnvelopehasMoreValues in interface GrainEnvelopepublic void reset()
reset in interface GrainEnvelopereset in class GrainCommonpublic void setDuration(double duration)
setDuration in interface GrainEnvelopeduration - in seconds.