Fl_EQGraph.H (1122B)
1 /* 2 ZynAddSubFX - a software synthesizer 3 4 Fl_EQGraph.H - Equalizer Graphical View 5 Copyright (C) 2016 Mark McCurry 6 7 This program is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public License 9 as published by the Free Software Foundation; either version 2 10 of the License, or (at your option) any later version. 11 */ 12 #pragma once 13 #include "Fl_Osc_Widget.H" 14 #include <FL/Fl_Box.H> 15 #include "../globals.h" 16 17 class EffectMgr; 18 class Fl_Osc_Interface; 19 class Fl_EQGraph:public Fl_Box, public Fl_Osc_Widget 20 { 21 public: 22 Fl_EQGraph(int x,int y, int w, int h, const char *label=0); 23 virtual ~Fl_EQGraph(void); 24 void draw(void); 25 26 void OSC_raw(const char *msg); 27 void update(void); 28 29 private: 30 void draw_freq_line(float freq,int type); 31 32 double getresponse(int maxy,float freq) const; 33 34 float getfreqx(float x) const; 35 float getfreqpos(float freq) const; 36 37 float samplerate; 38 float gain; 39 float num[MAX_EQ_BANDS*MAX_FILTER_STAGES*3]; 40 float dem[MAX_EQ_BANDS*MAX_FILTER_STAGES*3]; 41 };