com.jsyn.unitgen
Interface GrainEnvelope

All Known Implementing Classes:
Grain, RaisedCosineEnvelope

public interface GrainEnvelope

This envelope should start at 0.0, go up to 1.0 and then return to 0.0 in duration time.


Method Summary
 double getFrameRate()
           
 boolean hasMoreValues()
          Are there any more values to be generated in the envelope?
 double next()
           
 void reset()
          Prepare to start a new envelope.
 void setDuration(double duration)
           
 void setFrameRate(double frameRate)
           
 

Method Detail

getFrameRate

double getFrameRate()

setFrameRate

void setFrameRate(double frameRate)

next

double next()
Returns:
next amplitude value of envelope

hasMoreValues

boolean hasMoreValues()
Are there any more values to be generated in the envelope?

Returns:
true if more

reset

void reset()
Prepare to start a new envelope.


setDuration

void setDuration(double duration)
Parameters:
duration - in seconds.