com.frinika.contrib.boblang
Class BezierParamsV3_5

java.lang.Object
  extended by com.frinika.contrib.boblang.BezierParamsV3_5
All Implemented Interfaces:
BezierParams, java.io.Serializable

public class BezierParamsV3_5
extends java.lang.Object
implements BezierParams, java.io.Serializable

Bezier Parameters 3.5 When adding new versions of BezierParams create a new class instead of modifing the current The new class should implement this interface. The old versions should be modified so that new parameters return a default value.

Version:
21 May 2004
Author:
Bob Lang, Peter Salomonsen
See Also:
Serialized Form

Field Summary
static int AMP_FALLING
           
static int AMP_RISE_FALL
           
static int AMP_RISING
           
static int AMP_STEADY
           
static int HIGH_PITCH
           
static int LOW_PITCH
           
static int MAX_AMPLITUDE
           
static int MAX_PITCH
           
 
Constructor Summary
BezierParamsV3_5()
           
 
Method Summary
 double frequencyFromWavelength(int wavelength)
          Obtain the corrected frequency, from the integer wavelength
 int getBufferLength()
           
 int getEnvAttackTime()
           
 int getEnvDecayTime()
           
 int getEnvReleaseTime()
           
 int getEnvSusLevel()
           
 double getLowerAbsFreqX()
           
 double getLowerAbsFreqY()
           
 int getLowerAmplX()
           
 int getLowerAmplY()
           
 int getLowerCentreX()
           
 int getLowerCentreY()
           
 int getLowerEnvX()
           
 int getLowerEnvY()
           
 int getLowerPhaseX()
           
 int getLowerPhaseY()
           
 double getLowerRelFreqX()
           
 double getLowerRelFreqY()
           
 int getLowerXEnvTime()
           
 int getLowerYEnvTime()
           
 int getOutputRate()
           
 int getSampleRate()
           
 double getUpperAbsFreqX()
           
 double getUpperAbsFreqY()
           
 int getUpperAmplX()
           
 int getUpperAmplY()
           
 int getUpperCentreX()
           
 int getUpperCentreY()
           
 int getUpperEnvX()
           
 int getUpperEnvY()
           
 int getUpperPhaseX()
           
 int getUpperPhaseY()
           
 double getUpperRelFreqX()
           
 double getUpperRelFreqY()
           
 int getUpperXEnvTime()
           
 int getUpperYEnvTime()
           
 void setBufferLength(int bufferLength)
           
 void setEnvAttackTime(int envAttackTime)
           
 void setEnvDecayTime(int envDecayTime)
           
 void setEnvReleaseTime(int envReleaseTime)
           
 void setEnvSusLevel(int envSusLevel)
           
 void setLowerAbsFreqX(double lowerAbsFreqX)
           
 void setLowerAbsFreqY(double lowerAbsFreqY)
           
 void setLowerAmplX(int lowerAmplX)
           
 void setLowerAmplY(int lowerAmplY)
           
 void setLowerCentreX(int lowerCentreX)
           
 void setLowerCentreY(int lowerCentreY)
           
 void setLowerEnvX(int lowerEnvX)
           
 void setLowerEnvY(int lowerEnvY)
           
 void setLowerPhaseX(int lowerPhaseX)
           
 void setLowerPhaseY(int lowerPhaseY)
           
 void setLowerRelFreqX(double lowerRelFreqX)
           
 void setLowerRelFreqY(double lowerRelFreqY)
           
 void setLowerXEnvTime(int lowerXEnvTime)
           
 void setLowerYEnvTime(int lowerYEnvTime)
           
 void setOutputRate(int outputRate)
           
 void setOutputRate(int inOutputRate, int overSamplingRate)
          Set the output sampling rate and calculate the internal working rate
 void setSampleRate(int sampleRate)
           
 void setUpperAbsFreqX(double upperAbsFreqX)
           
 void setUpperAbsFreqY(double upperAbsFreqY)
           
 void setUpperAmplX(int upperAmplX)
           
 void setUpperAmplY(int upperAmplY)
           
 void setUpperCentreX(int upperCentreX)
           
 void setUpperCentreY(int upperCentreY)
           
 void setUpperEnvX(int upperEnvX)
           
 void setUpperEnvY(int upperEnvY)
           
 void setUpperPhaseX(int upperPhaseX)
           
 void setUpperPhaseY(int upperPhaseY)
           
 void setUpperRelFreqX(double upperRelFreqX)
           
 void setUpperRelFreqY(double upperRelFreqY)
           
 void setUpperXEnvTime(int upperXEnvTime)
           
 void setUpperYEnvTime(int upperYEnvTime)
           
 int wavelengthFromFrequency(double frequency)
          Obtain the wavelength in samples from the frequency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_AMPLITUDE

public static final int MAX_AMPLITUDE
See Also:
Constant Field Values

MAX_PITCH

public static final int MAX_PITCH
See Also:
Constant Field Values

HIGH_PITCH

public static final int HIGH_PITCH
See Also:
Constant Field Values

LOW_PITCH

public static final int LOW_PITCH
See Also:
Constant Field Values

AMP_STEADY

public static final int AMP_STEADY
See Also:
Constant Field Values

AMP_RISE_FALL

public static final int AMP_RISE_FALL
See Also:
Constant Field Values

AMP_RISING

public static final int AMP_RISING
See Also:
Constant Field Values

AMP_FALLING

public static final int AMP_FALLING
See Also:
Constant Field Values
Constructor Detail

BezierParamsV3_5

public BezierParamsV3_5()
Method Detail

setOutputRate

public void setOutputRate(int inOutputRate,
                          int overSamplingRate)
Set the output sampling rate and calculate the internal working rate


wavelengthFromFrequency

public int wavelengthFromFrequency(double frequency)
Obtain the wavelength in samples from the frequency

Specified by:
wavelengthFromFrequency in interface BezierParams

frequencyFromWavelength

public double frequencyFromWavelength(int wavelength)
Obtain the corrected frequency, from the integer wavelength

Specified by:
frequencyFromWavelength in interface BezierParams

getEnvAttackTime

public int getEnvAttackTime()
Specified by:
getEnvAttackTime in interface BezierParams
Returns:
Returns the envAttackTime.

setEnvAttackTime

public void setEnvAttackTime(int envAttackTime)
Specified by:
setEnvAttackTime in interface BezierParams
Parameters:
envAttackTime - The envAttackTime to set.

getEnvDecayTime

public int getEnvDecayTime()
Specified by:
getEnvDecayTime in interface BezierParams
Returns:
Returns the envDecayTime.

setEnvDecayTime

public void setEnvDecayTime(int envDecayTime)
Specified by:
setEnvDecayTime in interface BezierParams
Parameters:
envDecayTime - The envDecayTime to set.

getEnvReleaseTime

public int getEnvReleaseTime()
Specified by:
getEnvReleaseTime in interface BezierParams
Returns:
Returns the envReleaseTime.

setEnvReleaseTime

public void setEnvReleaseTime(int envReleaseTime)
Specified by:
setEnvReleaseTime in interface BezierParams
Parameters:
envReleaseTime - The envReleaseTime to set.

getEnvSusLevel

public int getEnvSusLevel()
Specified by:
getEnvSusLevel in interface BezierParams
Returns:
Returns the envSusLevel.

setEnvSusLevel

public void setEnvSusLevel(int envSusLevel)
Specified by:
setEnvSusLevel in interface BezierParams
Parameters:
envSusLevel - The envSusLevel to set.

getLowerAbsFreqX

public double getLowerAbsFreqX()
Specified by:
getLowerAbsFreqX in interface BezierParams
Returns:
Returns the lowerAbsFreqX.

setLowerAbsFreqX

public void setLowerAbsFreqX(double lowerAbsFreqX)
Specified by:
setLowerAbsFreqX in interface BezierParams
Parameters:
lowerAbsFreqX - The lowerAbsFreqX to set.

getLowerAbsFreqY

public double getLowerAbsFreqY()
Specified by:
getLowerAbsFreqY in interface BezierParams
Returns:
Returns the lowerAbsFreqY.

setLowerAbsFreqY

public void setLowerAbsFreqY(double lowerAbsFreqY)
Specified by:
setLowerAbsFreqY in interface BezierParams
Parameters:
lowerAbsFreqY - The lowerAbsFreqY to set.

getLowerAmplX

public int getLowerAmplX()
Specified by:
getLowerAmplX in interface BezierParams
Returns:
Returns the lowerAmplX.

setLowerAmplX

public void setLowerAmplX(int lowerAmplX)
Specified by:
setLowerAmplX in interface BezierParams
Parameters:
lowerAmplX - The lowerAmplX to set.

getLowerAmplY

public int getLowerAmplY()
Specified by:
getLowerAmplY in interface BezierParams
Returns:
Returns the lowerAmplY.

setLowerAmplY

public void setLowerAmplY(int lowerAmplY)
Specified by:
setLowerAmplY in interface BezierParams
Parameters:
lowerAmplY - The lowerAmplY to set.

getLowerCentreX

public int getLowerCentreX()
Specified by:
getLowerCentreX in interface BezierParams
Returns:
Returns the lowerCentreX.

setLowerCentreX

public void setLowerCentreX(int lowerCentreX)
Specified by:
setLowerCentreX in interface BezierParams
Parameters:
lowerCentreX - The lowerCentreX to set.

getLowerCentreY

public int getLowerCentreY()
Specified by:
getLowerCentreY in interface BezierParams
Returns:
Returns the lowerCentreY.

setLowerCentreY

public void setLowerCentreY(int lowerCentreY)
Specified by:
setLowerCentreY in interface BezierParams
Parameters:
lowerCentreY - The lowerCentreY to set.

getLowerEnvX

public int getLowerEnvX()
Specified by:
getLowerEnvX in interface BezierParams
Returns:
Returns the lowerEnvX.

setLowerEnvX

public void setLowerEnvX(int lowerEnvX)
Specified by:
setLowerEnvX in interface BezierParams
Parameters:
lowerEnvX - The lowerEnvX to set.

getLowerEnvY

public int getLowerEnvY()
Specified by:
getLowerEnvY in interface BezierParams
Returns:
Returns the lowerEnvY.

setLowerEnvY

public void setLowerEnvY(int lowerEnvY)
Specified by:
setLowerEnvY in interface BezierParams
Parameters:
lowerEnvY - The lowerEnvY to set.

getLowerPhaseX

public int getLowerPhaseX()
Specified by:
getLowerPhaseX in interface BezierParams
Returns:
Returns the lowerPhaseX.

setLowerPhaseX

public void setLowerPhaseX(int lowerPhaseX)
Specified by:
setLowerPhaseX in interface BezierParams
Parameters:
lowerPhaseX - The lowerPhaseX to set.

getLowerPhaseY

public int getLowerPhaseY()
Specified by:
getLowerPhaseY in interface BezierParams
Returns:
Returns the lowerPhaseY.

setLowerPhaseY

public void setLowerPhaseY(int lowerPhaseY)
Specified by:
setLowerPhaseY in interface BezierParams
Parameters:
lowerPhaseY - The lowerPhaseY to set.

getLowerRelFreqX

public double getLowerRelFreqX()
Specified by:
getLowerRelFreqX in interface BezierParams
Returns:
Returns the lowerRelFreqX.

setLowerRelFreqX

public void setLowerRelFreqX(double lowerRelFreqX)
Specified by:
setLowerRelFreqX in interface BezierParams
Parameters:
lowerRelFreqX - The lowerRelFreqX to set.

getLowerRelFreqY

public double getLowerRelFreqY()
Specified by:
getLowerRelFreqY in interface BezierParams
Returns:
Returns the lowerRelFreqY.

setLowerRelFreqY

public void setLowerRelFreqY(double lowerRelFreqY)
Specified by:
setLowerRelFreqY in interface BezierParams
Parameters:
lowerRelFreqY - The lowerRelFreqY to set.

getLowerXEnvTime

public int getLowerXEnvTime()
Specified by:
getLowerXEnvTime in interface BezierParams
Returns:
Returns the lowerXEnvTime.

setLowerXEnvTime

public void setLowerXEnvTime(int lowerXEnvTime)
Specified by:
setLowerXEnvTime in interface BezierParams
Parameters:
lowerXEnvTime - The lowerXEnvTime to set.

getLowerYEnvTime

public int getLowerYEnvTime()
Specified by:
getLowerYEnvTime in interface BezierParams
Returns:
Returns the lowerYEnvTime.

setLowerYEnvTime

public void setLowerYEnvTime(int lowerYEnvTime)
Specified by:
setLowerYEnvTime in interface BezierParams
Parameters:
lowerYEnvTime - The lowerYEnvTime to set.

getUpperAbsFreqX

public double getUpperAbsFreqX()
Specified by:
getUpperAbsFreqX in interface BezierParams
Returns:
Returns the upperAbsFreqX.

setUpperAbsFreqX

public void setUpperAbsFreqX(double upperAbsFreqX)
Specified by:
setUpperAbsFreqX in interface BezierParams
Parameters:
upperAbsFreqX - The upperAbsFreqX to set.

getUpperAbsFreqY

public double getUpperAbsFreqY()
Specified by:
getUpperAbsFreqY in interface BezierParams
Returns:
Returns the upperAbsFreqY.

setUpperAbsFreqY

public void setUpperAbsFreqY(double upperAbsFreqY)
Specified by:
setUpperAbsFreqY in interface BezierParams
Parameters:
upperAbsFreqY - The upperAbsFreqY to set.

getUpperAmplX

public int getUpperAmplX()
Specified by:
getUpperAmplX in interface BezierParams
Returns:
Returns the upperAmplX.

setUpperAmplX

public void setUpperAmplX(int upperAmplX)
Specified by:
setUpperAmplX in interface BezierParams
Parameters:
upperAmplX - The upperAmplX to set.

getUpperAmplY

public int getUpperAmplY()
Specified by:
getUpperAmplY in interface BezierParams
Returns:
Returns the upperAmplY.

setUpperAmplY

public void setUpperAmplY(int upperAmplY)
Specified by:
setUpperAmplY in interface BezierParams
Parameters:
upperAmplY - The upperAmplY to set.

getUpperCentreX

public int getUpperCentreX()
Specified by:
getUpperCentreX in interface BezierParams
Returns:
Returns the upperCentreX.

setUpperCentreX

public void setUpperCentreX(int upperCentreX)
Specified by:
setUpperCentreX in interface BezierParams
Parameters:
upperCentreX - The upperCentreX to set.

getUpperCentreY

public int getUpperCentreY()
Specified by:
getUpperCentreY in interface BezierParams
Returns:
Returns the upperCentreY.

setUpperCentreY

public void setUpperCentreY(int upperCentreY)
Specified by:
setUpperCentreY in interface BezierParams
Parameters:
upperCentreY - The upperCentreY to set.

getUpperEnvX

public int getUpperEnvX()
Specified by:
getUpperEnvX in interface BezierParams
Returns:
Returns the upperEnvX.

setUpperEnvX

public void setUpperEnvX(int upperEnvX)
Specified by:
setUpperEnvX in interface BezierParams
Parameters:
upperEnvX - The upperEnvX to set.

getUpperEnvY

public int getUpperEnvY()
Specified by:
getUpperEnvY in interface BezierParams
Returns:
Returns the upperEnvY.

setUpperEnvY

public void setUpperEnvY(int upperEnvY)
Specified by:
setUpperEnvY in interface BezierParams
Parameters:
upperEnvY - The upperEnvY to set.

getUpperPhaseX

public int getUpperPhaseX()
Specified by:
getUpperPhaseX in interface BezierParams
Returns:
Returns the upperPhaseX.

setUpperPhaseX

public void setUpperPhaseX(int upperPhaseX)
Specified by:
setUpperPhaseX in interface BezierParams
Parameters:
upperPhaseX - The upperPhaseX to set.

getUpperPhaseY

public int getUpperPhaseY()
Specified by:
getUpperPhaseY in interface BezierParams
Returns:
Returns the upperPhaseY.

setUpperPhaseY

public void setUpperPhaseY(int upperPhaseY)
Specified by:
setUpperPhaseY in interface BezierParams
Parameters:
upperPhaseY - The upperPhaseY to set.

getUpperRelFreqX

public double getUpperRelFreqX()
Specified by:
getUpperRelFreqX in interface BezierParams
Returns:
Returns the upperRelFreqX.

setUpperRelFreqX

public void setUpperRelFreqX(double upperRelFreqX)
Specified by:
setUpperRelFreqX in interface BezierParams
Parameters:
upperRelFreqX - The upperRelFreqX to set.

getUpperRelFreqY

public double getUpperRelFreqY()
Specified by:
getUpperRelFreqY in interface BezierParams
Returns:
Returns the upperRelFreqY.

setUpperRelFreqY

public void setUpperRelFreqY(double upperRelFreqY)
Specified by:
setUpperRelFreqY in interface BezierParams
Parameters:
upperRelFreqY - The upperRelFreqY to set.

getUpperXEnvTime

public int getUpperXEnvTime()
Specified by:
getUpperXEnvTime in interface BezierParams
Returns:
Returns the upperXEnvTime.

setUpperXEnvTime

public void setUpperXEnvTime(int upperXEnvTime)
Specified by:
setUpperXEnvTime in interface BezierParams
Parameters:
upperXEnvTime - The upperXEnvTime to set.

getUpperYEnvTime

public int getUpperYEnvTime()
Specified by:
getUpperYEnvTime in interface BezierParams
Returns:
Returns the upperYEnvTime.

setUpperYEnvTime

public void setUpperYEnvTime(int upperYEnvTime)
Specified by:
setUpperYEnvTime in interface BezierParams
Parameters:
upperYEnvTime - The upperYEnvTime to set.

getSampleRate

public int getSampleRate()
Specified by:
getSampleRate in interface BezierParams

setSampleRate

public void setSampleRate(int sampleRate)
Specified by:
setSampleRate in interface BezierParams

getOutputRate

public int getOutputRate()
Specified by:
getOutputRate in interface BezierParams

getBufferLength

public int getBufferLength()
Specified by:
getBufferLength in interface BezierParams
Returns:
Returns the bufferLength.

setBufferLength

public void setBufferLength(int bufferLength)
Parameters:
bufferLength - The bufferLength to set.

setOutputRate

public void setOutputRate(int outputRate)
Specified by:
setOutputRate in interface BezierParams
Parameters:
outputRate - The outputRate to set.