LumaSync EQ API

A graphic equalizer JS plugin
that makes visualizing your music easy.

Usage

Load our JS File into your HTML file, located at this link:
'https://eq.lumasync.net/js/eqapi.min.js'

Create a DIV element with an ID tag of 'eqapi'.

Set up your settings by defining global variables, as refrenced below.

Call eqapiStart(); after you have defined your settings to start the equalizer.

Settings & Integrations

Listed below is every settings toggle that you can change to customize your equalizer the way you want it, and what the accepted values are for each toggle. Each settings toggle is defined as a global var. Any settings that are not defined will be loaded with default values that are also listed below.




eqapiURL

Audio URL for player. Default = none.
Any valid audio URL accepted.


eqapiIcon

Image URL for center icon. Default = LumaSync Logo.
Any valid image URL or SRC accepted. Use a 1:1 or square aspect ratio image for best results.


eqapiHue, eqapiSat, eqapiBright

HSL color selector. Default = 18, 100, 50.
Any HSL values accepted.


eqapiAnimationSpeed

Spin animation speed. Default = 0.
Animation loop speed in seconds, 0 = Off


eqapiMult

Multiplier for bar height. Default = 3


eqapiSmooth

Audio EQ Smoothness. Default = 0.65.
Changes how quickly the EQ reacts to changes in the music.


eqapiRainbow

Toggles Rainbow mode. Default = 0.
0 = Off, 1 = On


eqapiRainbowIntensity

Rainbow color shift intensity. Default = 0.6.
Modifier that makes oscilating colors pulse with music. 0 = no intensity change


eqapiTimeUpdate

Enables player time update. Default = 0.
Calls eqapiTimeUpdateFunc() for time updates. 0 = Off, 1 = On.


eqapiShadow

Enables Shading. Default = 0.
0 = Off, 1 = On


eqapiRenderQuality

Defines EQ resolution relative to native. Default = 1.
Any integer value accepted.


eqapiFFT

Defines ammount of FFT bins. Default = 8192.
The sample "resolution" that is extracted from audio source. Must be a power of 2 between 2^5 and 2^15.


eqapiBars

Defines ammount of EQ bars. Default = 200.
Any integer value accepted.


eqapiFakeBars

Every other bar is averaged between it's neighbors. Default = 1.
Can create the effect of higher sample rate w/o actually increasing FFT size. 0 = Off, 1 = On.


eqapiBarsIntensity

Bar count shift intensity. Default = 0.25.
Modifier that makes bar count pulse with music. 0 = no intensity change.


eqapiBarWidth

Defines EQ bar width in px. Default = 5.
Any integer value accepted.


eqapiBarWidthmode

EQ bar width scaling. Default = 1.
Scales the width of the EQ bars to be relative to the size of the parent element. 0 = Off, 1 = On

eqapi3D

Toggles 3D mode. Default = 0.
0 = Off, 1 = Linear, 2 = Bezier Curve


eqapiPixelated

EQ pixel rendering at lower-than-native resolution. Default = 0.
0 = anti-aliased, smooth edges, 1 = aliased, sharp edges.


eqapiSmooth

EQ smoothing constant. Default = 0.65.
0 = no smoothing, 1 = max smoothing




View Demo...