uk.org.toot.audio.eq
Class ClassicFilterControls
java.lang.Object
java.util.Observable
uk.org.toot.control.Control
uk.org.toot.control.CompoundControl
uk.org.toot.audio.core.AudioControls
uk.org.toot.audio.eq.ClassicFilterControls
- All Implemented Interfaces:
- FilterSpecification
public class ClassicFilterControls
- extends AudioControls
- implements FilterSpecification
ClassicFilterControls are controls for the type, level, frequency and
resonance factor of a classic filter section and are used to control
all EQ forms. Particular controls may be hidden if their value is
immutable or otherwise not required.
Constructor Summary |
ClassicFilterControls(java.lang.String name,
int id,
Filter.Type typevalue,
boolean typefixed,
float fmin,
float fmax,
float fvalue,
boolean ffixed,
float qmin,
float qmax,
float qvalue,
boolean qfixed,
float dBmin,
float dBmax,
float dBvalue,
boolean dBfixed)
Construct with all specified values. |
ClassicFilterControls(java.lang.String name,
int id,
Filter.Type typevalue,
float freq,
float q,
float leveldB)
Simple construction with few specified values and many defaults. |
Methods inherited from class uk.org.toot.control.CompoundControl |
canBeDeleted, canBeInsertedBefore, canBeMoved, canBeMovedBefore, deepFind, find, find, find, getAlignmentY, getAlternate, getClientProperty, getControls, getInstanceIndex, getMemberControls, getNativeSupport, getPersistence, getProviderId, hasCustomUI, hasPresets, isAlwaysHorizontal, isNeverBordered, isPluginParent, putClientProperty, setPersistence, setProviderId, toString |
Methods inherited from class uk.org.toot.control.Control |
getAnnotation, getControlPath, getControlPath, getId, getIntValue, getName, getParent, getValueString, isAdjusting, isEnabled, isHidden, isIndicator, setAdjusting, setAnnotation, setEnabled, setHidden, setIntValue, setName |
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClassicFilterControls
public ClassicFilterControls(java.lang.String name,
int id,
Filter.Type typevalue,
boolean typefixed,
float fmin,
float fmax,
float fvalue,
boolean ffixed,
float qmin,
float qmax,
float qvalue,
boolean qfixed,
float dBmin,
float dBmax,
float dBvalue,
boolean dBfixed)
- Construct with all specified values.
ClassicFilterControls
public ClassicFilterControls(java.lang.String name,
int id,
Filter.Type typevalue,
float freq,
float q,
float leveldB)
- Simple construction with few specified values and many defaults.
isAlwaysVertical
public boolean isAlwaysVertical()
- Overrides:
isAlwaysVertical
in class CompoundControl
getClassicType
public Filter.Type getClassicType()
- Specified by:
getClassicType
in interface FilterSpecification
getFrequency
public int getFrequency()
- Specified by:
getFrequency
in interface FilterSpecification
setFrequency
public void setFrequency(int frequency)
getResonance
public float getResonance()
- Specified by:
getResonance
in interface FilterSpecification
setResonance
public void setResonance(float q)
setLeveldB
public void setLeveldB(float dBlevel)
- Set the level adjustment to be applied to filtered data
Values typically range from -.25 to +4.0 or -12 to +12 db.
dB = 20 * Math.log10(amplitudeAdj);
amplitudeAdj = 10^(dB/20);
getLeveldB
public float getLeveldB()
- Specified by:
getLeveldB
in interface FilterSpecification
getLevelFactor
public float getLevelFactor()
- Specified by:
getLevelFactor
in interface FilterSpecification
Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.