com.frinika.contrib.boblang
Class BezierSynth

java.lang.Object
  extended by com.frinika.contrib.boblang.BezierSynth

public class BezierSynth
extends java.lang.Object

Bezier Wave 3.2

An object of this class is a synthesizer for a single note played on the keyboard.

Version:
7 April 2003
Author:
Bob Lang

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
BezierSynth(int inMidiPitch, BezierParams inParams)
          Constructor to create a new Bezier wave of the specified frequency.
 
Method Summary
 int getSample(int sampleNumber)
          Calculate the value of the sound sample with the given index number
 void printParams()
          Diagnostic print of the Bezier parameters
 
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

BezierSynth

public BezierSynth(int inMidiPitch,
                   BezierParams inParams)
Constructor to create a new Bezier wave of the specified frequency.

Method Detail

printParams

public void printParams()
Diagnostic print of the Bezier parameters


getSample

public final int getSample(int sampleNumber)
Calculate the value of the sound sample with the given index number