com.softsynth.jmsl.jsyn
Class SampleRegion

java.lang.Object
  extended by com.softsynth.jmsl.jsyn.SampleRegion

public class SampleRegion
extends java.lang.Object

Author:
Nick Didkovsky

Constructor Summary
SampleRegion(int sustainStart, int releaseStart, int numFrames)
           
 
Method Summary
 double getDuration(double sampleRate)
           
 int getNumFrames()
           
 int getReleaseLength()
           
 double getReleaseLengthSec(double sampleRate)
           
 int getReleaseStart()
           
 double getReleaseStartSec(double sampleRate)
           
 int getSustainLength()
           
 double getSustainLengthSec(double sampleRate)
           
 int getSustainStart()
           
 double getSustainStartSec(double sampleRate)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SampleRegion

public SampleRegion(int sustainStart,
                    int releaseStart,
                    int numFrames)
Method Detail

getNumFrames

public int getNumFrames()

getSustainStart

public int getSustainStart()

getSustainLength

public int getSustainLength()

getReleaseStart

public int getReleaseStart()

getReleaseLength

public int getReleaseLength()

getDuration

public double getDuration(double sampleRate)

getSustainStartSec

public double getSustainStartSec(double sampleRate)

getSustainLengthSec

public double getSustainLengthSec(double sampleRate)

getReleaseStartSec

public double getReleaseStartSec(double sampleRate)

getReleaseLengthSec

public double getReleaseLengthSec(double sampleRate)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object