Filters

Representation of the filter configuration.

Types

Link copied to clipboard

Mixes both channels (left and right), with a configurable factor on how much each channel affects the other. With the defaults, both channels are kept independent from each other. Setting all factors to 0.5 means both channels get the same audio.

Link copied to clipboard

Distortion effect. It can generate some pretty unique audio effects.

Link copied to clipboard
interface Filter

Root interface for a resettable filter.

Link copied to clipboard

Uses equalization to eliminate part of a band, usually targeting vocals.

Link copied to clipboard

Higher frequencies get suppressed, while lower frequencies pass through this filter, thus the name low pass.

Link copied to clipboard

Rotates the sound around the stereo channels/user headphones aka Audio Panning. It can produce an effect similar to: https://youtu.be/QB9EB8mTKcc (without the reverb)

Link copied to clipboard

Changes the speed, pitch, and rate. All default to 1.

Link copied to clipboard

Uses amplification to create a shuddering effect, where the volume quickly oscillates. Example: https://en.wikipedia.org/wiki/File:Fuse_Electronics_Tremolo_MK-III_Quick_Demo.ogv

Link copied to clipboard

Similar to Tremolo. While tremolo oscillates the volume, vibrato oscillates the pitch.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The equalizers to modify.

Link copied to clipboard
abstract val karaoke: Filters.Karaoke?
Link copied to clipboard
abstract val lowPass: Filters.LowPass?
Link copied to clipboard
abstract val pluginFilters: MutableMap<String, JsonElement>
Link copied to clipboard
abstract val rotation: Filters.Rotation?
Link copied to clipboard
Link copied to clipboard
abstract val tremolo: Filters.Tremolo?
Link copied to clipboard
abstract val vibrato: Filters.Vibrato?
Link copied to clipboard
abstract var volume: Float?

Functions

Link copied to clipboard

Gives you a BandConfigurator to configure this band.

Link copied to clipboard

Configures the Filters.ChannelMix filter.

Link copied to clipboard

Configures the Filters.Distortion filter.

Link copied to clipboard
open infix fun Int.gain(gain: Float)

Sets the gain of the band with this int as it's id to gain.

Link copied to clipboard

Configures the Filters.Karaoke filter.

Link copied to clipboard

Configures the Filters.LowPass filter.

Link copied to clipboard
inline fun Filters.pluginFilter(name: String, builder: JsonObjectBuilder.() -> Unit)

Registers a plugin based filter with name.

Link copied to clipboard
open override fun reset()

Unsets all filters and resets equalizer equalizers

Link copied to clipboard

Configures the Filters.Rotation filter.

Link copied to clipboard

Configures the Filters.Timescale filter.

Link copied to clipboard

Configures the Filters.Tremolo filter.

Link copied to clipboard
abstract fun unsetChannelMix()

Unsets the ChannelMix filter, this disables the filter

Link copied to clipboard
abstract fun unsetDistortion()

Unsets the Distortion filter, this disables the filter

Link copied to clipboard
abstract fun unsetKaraoke()

Unsets the Karaoke filter, this disables the filter

Link copied to clipboard
abstract fun unsetLowPass()

Unsets the LowPass filter, this disables the filter

Link copied to clipboard
abstract fun unsetRotation()

Unsets the Rotation filter, this disables the filter

Link copied to clipboard
abstract fun unsetTimescale()

Unsets the Timescale filter, this disables the filter

Link copied to clipboard
abstract fun unsetTremolo()

Unsets the Tremolo filter, this disables the filter

Link copied to clipboard
abstract fun unsetVibrato()

Unsets the Vibrato filter, this disables the filter

Link copied to clipboard

Configures the Filters.Vibrato filter.