Modern 15-band equalizer for C++/Qt
Check my other Qt widgets/add-ons out: https://timschneeberger.me/qt
void setBand(int band, float value, bool animate = true);
Sets band (0-14) to specified value.
Optional parameters:
animate
: animate changes
void setBands(QVector<float> vector, bool animate = true);
Same as setBand
except it takes a vector of floats is an input and sets them all at once.
float getBand(int band);
Returns value of band (0-14).
QVector<float> getBands();
Same as getBand
except it returns a vector of float containing the values of all bands.
bool getGridVisible() const;
void setGridVisible(bool gridVisible);
Sets/gets horizontal background grid visibility.
bool getAlwaysDrawHandles() const;
void setAlwaysDrawHandles(bool alwaysDrawHandles);
Defines whether handles should always be drawn or just on user interaction.
QColor getAccentColor() const;
void setAccentColor(const QColor &accentColor);
Sets/gets accent color.
The background and grid color can be changed by loading a modified QPalette
.
int getAnimationDuration() const;
void setAnimationDuration(int animationDuration);
Sets/gets the duration of variant animations used in setBand
or setBands
.
Manual use:
Animate changes:
Licensed under GPLv3