Git Product home page Git Product logo

eq's Introduction

An equalizer design for Windows with Direct2D

CodeProject article: https://www.codeproject.com/Articles/5253995/The-Equalizer-Design-Graphic-and-Parametric-Win32 Have fun with it, I use it with my Turbo Play (https://www.turboirc.com/tp).

PEQ

GEQ

Uses:

Includes a VS 2019 solution to test with a simple MP3 player. Run the app, press Space and load an MP3. Use EQ::PARAMETRICEQ for parametric equalizer and EQ::GRAPHICEQ for graphic.

Features:

  • Graphic equalizer for 10,20,31 bands with some presets, using Peaking biquad filters.
  • Parametric equalizer with a low/high cut or low/high shelf filter (Choose from Butterworth, Chebyshev I,II, Elliptic) and unlimited peaking filters with Q.
  • Draw the response with Direct2D
  • Keyboard shortcuts for activation, order, ripple
  • Mouse movement for dB, frequency, and wheel for Q
class EQ
{
	virtual void Paint(ID2D1Factory*fact, ID2D1RenderTarget* r, RECT rc) = 0;
	virtual void LeftDown(WPARAM ww, LPARAM ll) = 0;
	virtual void RightDown(WPARAM ww, LPARAM ll) = 0;
	virtual void LeftUp(WPARAM ww, LPARAM ll) = 0;
	virtual void MouseMove(WPARAM ww, LPARAM ll) = 0;
	virtual void MouseWheel(WPARAM ww, LPARAM ll) = 0;
	virtual void KeyDown(WPARAM ww, LPARAM ll) = 0;
	virtual void LeftDoubleClick(WPARAM ww,LPARAM ll) = 0;
	virtual void Ser(XML3::XMLElement& e) = 0;
	virtual void Unser(XML3::XMLElement& e) = 0;

	virtual void Prepare(int SR) = 0;
	virtual void Run(int SR, float* in, int ns, float* out) = 0; // Single channel
	virtual bool Run2(int SR, int nch,float** in, int ns, float** out) = 0; // Multiple channel (ToDo)
	virtual void Build(int SR) = 0; // Create the filters
};

// Callbacks
class EQCALLBACK
{
public:

	virtual void RedrawRequest(EQ* pr) = 0; // Called when the equalizer needs to redraw
	virtual void Dirty(EQ* e,bool) = 0; // Called when the equalizer has changed
};

eq's People

Stargazers

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

Watchers

 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.