uk.org.toot.audio.eq
Class ClassicFilterControls

java.lang.Object
  extended by java.util.Observable
      extended by uk.org.toot.control.Control
          extended by uk.org.toot.control.CompoundControl
              extended by uk.org.toot.audio.core.AudioControls
                  extended by 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.


Nested Class Summary
static class ClassicFilterControls.TypeControl
          A TypeControl concretizes EnumControl with filter types.
 
Nested classes/interfaces inherited from class uk.org.toot.control.CompoundControl
CompoundControl.BypassControl
 
Field Summary
 
Fields inherited from class uk.org.toot.control.CompoundControl
USE_PARENT_PROVIDER_ID
 
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.
 
Method Summary
 Filter.Type getClassicType()
           
 int getFrequency()
           
 float getLeveldB()
           
 float getLevelFactor()
           
 float getResonance()
           
 boolean isAlwaysVertical()
           
 void setFrequency(int frequency)
           
 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.
 void setResonance(float q)
           
 
Methods inherited from class uk.org.toot.audio.core.AudioControls
canBeMinimized, canBypass, getBypassControl, getPersistenceDomain, hasOrderedFrequencies, isBypassed, setBypassed
 
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
 
Methods inherited from interface uk.org.toot.audio.filter.FilterSpecification
addObserver, deleteObserver
 

Constructor Detail

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.

Method Detail

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.