com.petersalomonsen.mystudio.mysynth
Class SampledSound
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
SampledSound
public SampledSound()
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