https://github.com/windowsnt/eq
The Equalizer Design, Win32 + Direct2D
https://github.com/windowsnt/eq
cplusplus cplusplus-11 direct2d dsp equalizer mp3 sound wave win32
Last synced: 2 months ago
JSON representation
The Equalizer Design, Win32 + Direct2D
- Host: GitHub
- URL: https://github.com/windowsnt/eq
- Owner: WindowsNT
- Created: 2019-12-14T11:48:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-28T09:06:42.000Z (about 5 years ago)
- Last Synced: 2025-04-10T01:06:37.265Z (6 months ago)
- Topics: cplusplus, cplusplus-11, direct2d, dsp, equalizer, mp3, sound, wave, win32
- Language: C++
- Homepage:
- Size: 3.3 MB
- Stars: 20
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 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).

Uses:
* My XML for serialization: https://github.com/WindowsNT/xml
* My syncs for playback: https://github.com/WindowsNT/mt
* DSPFilters for Low/High cut of the parametric equalizer: https://github.com/vinniefalco/DSPFilters
* SNDFilter for biquad peaking filters in parametric/graphic equalizer: https://github.com/voidqk/sndfilterIncludes 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```C++
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
};```