com.petersalomonsen.mystudio.mysynth
Class SampledSound

java.lang.Object
  extended by com.petersalomonsen.mystudio.mysynth.SampledSound
All Implemented Interfaces:
SampledSoundSettings, java.io.Serializable

public class SampledSound
extends java.lang.Object
implements SampledSoundSettings, java.io.Serializable

Author:
Peter Johan Salomonsen
See Also:
Serialized Form

Field Summary
 short attack
           
 int fineTune
           
 short[] leftSamples
           
 int loopEnd
           
 int loopStart
           
 int pitchCorrection
           
 short release
           
 short[] rightSamples
           
 int rootKey
           
 int sampleMode
           
static int SAMPLEMODE_LOOP_CONTINOUSLY
           
static int SAMPLEMODE_LOOP_UNTIL_RELEASE
           
static int SAMPLEMODE_NO_LOOP
           
 java.lang.String sampleName
           
 int sampleRate
           
 
Constructor Summary
SampledSound()
           
 
Method Summary
 short getAttack()
           
 int getExclusiveClass()
           
 int getFineTune()
           
 short[] getLeftSamples()
           
 int getLoopEnd()
           
 int getLoopStart()
           
 int getPitchCorrection()
           
 short getRelease()
           
 short[] getRightSamples()
           
 int getRootKey()
           
 int getSampleMode()
           
 java.lang.String getSampleName()
           
 int getSampleRate()
           
 int getScaleTune()
           
 void setAttack(short attack)
           
 void setExclusiveClass(int exclusiveClass)
           
 void setFineTune(int fineTune)
           
 void setLeftSamples(short[] leftSamples)
           
 void setLoopEnd(int loopEnd)
           
 void setLoopStart(int loopStart)
           
 void setPitchCorrection(int pitchCorrection)
           
 void setRelease(short release)
           
 void setRightSamples(short[] rightSamples)
           
 void setRootKey(int rootKey)
           
 void setSampleMode(int sampleMode)
           
 void setSampleName(java.lang.String sampleName)
           
 void setSampleRate(int sampleRate)
           
 void setScaleTune(int scaleTune)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

leftSamples

public short[] leftSamples

rightSamples

public short[] rightSamples

loopStart

public int loopStart

loopEnd

public int loopEnd

sampleMode

public int sampleMode

SAMPLEMODE_NO_LOOP

public static final int SAMPLEMODE_NO_LOOP
See Also:
Constant Field Values

SAMPLEMODE_LOOP_CONTINOUSLY

public static final int SAMPLEMODE_LOOP_CONTINOUSLY
See Also:
Constant Field Values

SAMPLEMODE_LOOP_UNTIL_RELEASE

public static final int SAMPLEMODE_LOOP_UNTIL_RELEASE
See Also:
Constant Field Values

attack

public short attack

release

public short release

rootKey

public int rootKey

pitchCorrection

public int pitchCorrection

fineTune

public int fineTune

sampleRate

public int sampleRate

sampleName

public java.lang.String sampleName
Constructor Detail

SampledSound

public SampledSound()
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface SampledSoundSettings
Overrides:
toString in class java.lang.Object

getAttack

public short getAttack()
Specified by:
getAttack in interface SampledSoundSettings
Returns:
Returns the attack.

setAttack

public void setAttack(short attack)
Specified by:
setAttack in interface SampledSoundSettings
Parameters:
attack - The attack to set.

getFineTune

public int getFineTune()
Specified by:
getFineTune in interface SampledSoundSettings
Returns:
Returns the fineTune.

setFineTune

public void setFineTune(int fineTune)
Specified by:
setFineTune in interface SampledSoundSettings
Parameters:
fineTune - The fineTune to set.

getLeftSamples

public short[] getLeftSamples()
Specified by:
getLeftSamples in interface SampledSoundSettings
Returns:
Returns the leftSamples.

setLeftSamples

public void setLeftSamples(short[] leftSamples)
Specified by:
setLeftSamples in interface SampledSoundSettings
Parameters:
leftSamples - The leftSamples to set.

getLoopEnd

public int getLoopEnd()
Specified by:
getLoopEnd in interface SampledSoundSettings
Returns:
Returns the loopEnd.

setLoopEnd

public void setLoopEnd(int loopEnd)
Specified by:
setLoopEnd in interface SampledSoundSettings
Parameters:
loopEnd - The loopEnd to set.

getLoopStart

public int getLoopStart()
Specified by:
getLoopStart in interface SampledSoundSettings
Returns:
Returns the loopStart.

setLoopStart

public void setLoopStart(int loopStart)
Specified by:
setLoopStart in interface SampledSoundSettings
Parameters:
loopStart - The loopStart to set.

getPitchCorrection

public int getPitchCorrection()
Specified by:
getPitchCorrection in interface SampledSoundSettings
Returns:
Returns the pitchCorrection.

setPitchCorrection

public void setPitchCorrection(int pitchCorrection)
Specified by:
setPitchCorrection in interface SampledSoundSettings
Parameters:
pitchCorrection - The pitchCorrection to set.

getRelease

public short getRelease()
Specified by:
getRelease in interface SampledSoundSettings
Returns:
Returns the release.

setRelease

public void setRelease(short release)
Specified by:
setRelease in interface SampledSoundSettings
Parameters:
release - The release to set.

getRightSamples

public short[] getRightSamples()
Specified by:
getRightSamples in interface SampledSoundSettings
Returns:
Returns the rightSamples.

setRightSamples

public void setRightSamples(short[] rightSamples)
Specified by:
setRightSamples in interface SampledSoundSettings
Parameters:
rightSamples - The rightSamples to set.

getRootKey

public int getRootKey()
Specified by:
getRootKey in interface SampledSoundSettings
Returns:
Returns the rootKey.

setRootKey

public void setRootKey(int rootKey)
Specified by:
setRootKey in interface SampledSoundSettings
Parameters:
rootKey - The rootKey to set.

getSampleMode

public int getSampleMode()
Specified by:
getSampleMode in interface SampledSoundSettings
Returns:
Returns the sampleMode.

setSampleMode

public void setSampleMode(int sampleMode)
Specified by:
setSampleMode in interface SampledSoundSettings
Parameters:
sampleMode - The sampleMode to set.

getSampleName

public java.lang.String getSampleName()
Specified by:
getSampleName in interface SampledSoundSettings
Returns:
Returns the sampleName.

setSampleName

public void setSampleName(java.lang.String sampleName)
Specified by:
setSampleName in interface SampledSoundSettings
Parameters:
sampleName - The sampleName to set.

getSampleRate

public int getSampleRate()
Specified by:
getSampleRate in interface SampledSoundSettings
Returns:
Returns the sampleRate.

setSampleRate

public void setSampleRate(int sampleRate)
Specified by:
setSampleRate in interface SampledSoundSettings
Parameters:
sampleRate - The sampleRate to set.

getScaleTune

public int getScaleTune()
Specified by:
getScaleTune in interface SampledSoundSettings

setScaleTune

public void setScaleTune(int scaleTune)
Specified by:
setScaleTune in interface SampledSoundSettings

setExclusiveClass

public void setExclusiveClass(int exclusiveClass)
Specified by:
setExclusiveClass in interface SampledSoundSettings

getExclusiveClass

public int getExclusiveClass()
Specified by:
getExclusiveClass in interface SampledSoundSettings