Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Fl_EQGraph.H 751B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "Fl_Osc_Widget.H"
  3. #include <FL/Fl_Box.H>
  4. #include "../globals.h"
  5. class EffectMgr;
  6. class Fl_Osc_Interface;
  7. class Fl_EQGraph:public Fl_Box, public Fl_Osc_Widget
  8. {
  9. public:
  10. Fl_EQGraph(int x,int y, int w, int h, const char *label=0);
  11. virtual ~Fl_EQGraph(void);
  12. void draw(void);
  13. void OSC_raw(const char *msg);
  14. void update(void);
  15. private:
  16. void draw_freq_line(float freq,int type);
  17. double getresponse(int maxy,float freq) const;
  18. float getfreqx(float x) const;
  19. float getfreqpos(float freq) const;
  20. float samplerate;
  21. float gain;
  22. float num[MAX_EQ_BANDS*MAX_FILTER_STAGES*3];
  23. float dem[MAX_EQ_BANDS*MAX_FILTER_STAGES*3];
  24. };