public class Level
extends java.lang.Object
![]() |
![]() |
| Field | Description | |
|---|---|---|
| 1. | direction | whether the point on the EQ curve is above or below the midpoint. |
| 2. | frequency | the frequency (in hz) at which the point on EQ curve is located. |
| 3. | adjustment | the amount above/below the midpoint where the point lies on the EQ curve. |
| Modifier and Type | Class and Description |
|---|---|
static class |
Level.Direction
indicates whether an equalization level is above or below the midline.
|
| Constructor and Description |
|---|
Level()
The default constructor is called when creating a flat level.
|
Level(Level.Direction direction,
int frequency,
int adjustment)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAdjustment()
get the amount of adjustment for the equalization level.
|
Level.Direction |
getDirection()
get the direction of the equalization level, ie whether it is above or below the midline.
|
short |
getFrequency()
get the frequency (in hz) at which the equalization level occurs.
|
void |
setAdjustment(int adjustment)
set the amount of adjustment for the equalization level.
|
void |
setDirection(Level.Direction direction)
sets the direction of the equalization level, ie whether it is above or below the midline.
|
void |
setFrequency(int frequency)
set the frequency (in hz) at which the equalization level occurs.
|
java.lang.String |
toString()
get a string representation of an equalization level.
|
public Level()
public Level(Level.Direction direction, int frequency, int adjustment)
direction - increment or decrement, ie, above or below the midline.frequency - frequency (in hz)adjustment - adjustment from 0.public Level.Direction getDirection()
direction of the equalization level.setDirection(Direction)public void setDirection(Level.Direction direction)
direction - the direction of the equalization level.getDirection()public short getFrequency()
public void setFrequency(int frequency)
frequency - the frequency (in hz) at which the equalization level occurs.java.lang.IllegalArgumentException - if the specified frequency is less than 0 hz or greater than or equal to 32768 hz.public int getAdjustment()
public void setAdjustment(int adjustment)
adjustment - the amount of adjustment for the equalization level.java.lang.IllegalArgumentException - if the adjustment less than or equal to 0.public java.lang.String toString()
toString in class java.lang.Object