EqBand
class EqBand : DynamicsProcessing.BandBase
Class for Equalizer Bands Equalizer bands have three controllable parameters: enabled/disabled, cutoffFrequency and gain
Summary
Public constructors |
Class constructor for EqBand
|
Class constructor for EqBand
|
Public methods |
Float |
gets current gain of band in decibels (dB)
|
Unit |
sets current gain of band in decibels (dB)
|
String |
|
Inherited functions |
From class BandBase
Float |
getCutoffFrequency()
gets cutoffFrequency for this band in Hertz (Hz)
|
Boolean |
isEnabled()
returns enabled state of the band
|
Unit |
setCutoffFrequency(frequency: Float)
sets topmost frequency number (in Hz) this band will process. The effective bandwidth for the band is then computed using this and the previous band topmost frequency (or 0 Hz for band number 0). Frequencies are expected to increase with band number, thus band 0 cutoffFrequency <= band 1 cutoffFrequency, and so on.
|
Unit |
setEnabled(enabled: Boolean)
sets enabled state of the band
|
|
Public constructors
EqBand
EqBand(
enabled: Boolean,
cutoffFrequency: Float,
gain: Float)
Class constructor for EqBand
Parameters |
enabled |
Boolean: true if this band is currently used to process sound. When false, the band is effectively muted and sound set to zero. |
cutoffFrequency |
Float: topmost frequency number (in Hz) this band will process. The effective bandwidth for the band is then computed using this and the previous band topmost frequency (or 0 Hz for band number 0). Frequencies are expected to increase with band number, thus band 0 cutoffFrequency <= band 1 cutoffFrequency, and so on. |
gain |
Float: of equalizer band in decibels (dB). A gain of 0 dB means no change in level. |
Public methods
getGain
fun getGain(): Float
gets current gain of band in decibels (dB)
Return |
Float |
current gain of band in decibels (dB) |
setGain
fun setGain(gain: Float): Unit
sets current gain of band in decibels (dB)
Parameters |
gain |
Float: desired in decibels (db) |
toString
fun toString(): String
Return |
String |
a string representation of the object. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]