Provides access to VLC’s equalizer (Tools->Effects and Filters->Audio Effects->Equalizer).
Control EQ, levels and preamp settings. Each EQ componenet has methods that can modify them.

Availability

Script Types
Interface

enable()

Turn equalizer on or off.

Usage

if eq_should_die then
  vlc.equalizer.enable(false)
end

Parameters


Preamplifier

The following methods control the EQ preamp.

preampget()

Retrieve the current EQ preamp level, which is measured in decibels.

Usage

local level = vlc.equalizer.preampget()

Return value

A float representing the preamplification level in Decibels.


preampset()

Set the EQ preamp level.

Usage

local level = 12.0
vlc.equalizer.preampset(level) -- set preamp to 12db

Parameters


Equalizer Bands

The EQ is composed of several “bands”, each of which modify a different frequency range. Each EQ band is asssigned an ID number:

Band ID Frequency
0 60 Hz
1 170 Hz
2 310 Hz
3 600 Hz
4 1 kHz
5 3 kHz
6 6 kHz
7 12 kHz
8 14 kHz
9 16 kHz

equalizerget()

Get EQ levels for all bands as a table.

Usage

local levels_table = vlc.equalizer.equalizerget()
for id,level in pairs(levels_table) do
  print("EQ @" .. id .. " is: " .. level)
end

Return value

Table representing the band levels of the equalzer


equalizerset()

Set EQ levels for a specified band.

Usage

local new_4_level = 12.4
vlc.equalizer.equalizerset(4, new_4_level)

Parameters


Presets

The VLC EQ supports presets, which allows users to save their custom EQ settings.

presets()

Get the names of available EQ presets.

Usage

local presets = vlc.equalizer.presets()
for i,p in pairs(presets) do
  print("Preset with ID #" .. i .. " is called " .. p)
end

Return value

Table containing the names of available EQ presets


setpreset()

Set the EQ to a specified preset.

Parameters