Git Product home page Git Product logo

liquidequalizerwidget's Introduction

LiquidEqualizerWidget

Modern 15-band equalizer for C++/Qt

Check my other Qt widgets/add-ons out: https://timschneeberger.me/qt

Documentation

Setting a single band

void setBand(int band, float value, bool animate = true);

Sets band (0-14) to specified value.

Optional parameters:

animate: animate changes

Setting multiple bands

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.

Getting a single band

float getBand(int band);

Returns value of band (0-14).

Getting multiple bands

QVector<float> getBands();

Same as getBand except it returns a vector of float containing the values of all bands.

Other Properties

Grid
bool getGridVisible() const;
void setGridVisible(bool gridVisible);

Sets/gets horizontal background grid visibility.

Handles
bool getAlwaysDrawHandles() const;
void setAlwaysDrawHandles(bool alwaysDrawHandles);

Defines whether handles should always be drawn or just on user interaction.

Colors
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.

Animation
int getAnimationDuration() const;
void setAnimationDuration(int animationDuration);

Sets/gets the duration of variant animations used in setBand or setBands.

Screenshots

Manual use:

GIF

Animate changes:

GIF


Licensed under GPLv3

liquidequalizerwidget's People

Contributors

gongheng2017 avatar timschneeb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.