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_Resonance_Graph.H 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // generated by Fast Light User Interface Designer (fluid) version 1.0302
  2. #ifndef Fl_Resonance_Graph_H
  3. #define Fl_Resonance_Graph_H
  4. #include <FL/Fl_Box.H>
  5. #include "../Synth/Resonance.h"
  6. #include "Fl_Osc_Widget.H"
  7. class Fl_Value_Output;
  8. class Fl_Widget;
  9. class Fl_Resonance_Graph : public Fl_Box, public Fl_Osc_Widget {
  10. public:
  11. Fl_Resonance_Graph(int x,int y, int w, int h, const char *label=0);
  12. virtual ~Fl_Resonance_Graph(void);
  13. void init(Fl_Value_Output *khzvalue_,Fl_Value_Output *dbvalue_);
  14. void draw_freq_line(float freq,int type);
  15. void draw();
  16. int handle(int event);
  17. void setcbwidget(Fl_Widget *cbwidget,Fl_Widget *applybutton);
  18. void update(void);
  19. float khzval;
  20. void OSC_raw(const char *msg);
  21. private:
  22. float getfreqx(float x) const;
  23. float getfreqpos(float freq) const;
  24. float getcenterfreq() const;
  25. float getoctavesfreq() const;
  26. void setPoint(int idx, int val);
  27. Fl_Value_Output *khzvalue;
  28. Fl_Value_Output *dbvalue;
  29. int oldx,oldy;
  30. Fl_Widget *cbwidget,*applybutton;
  31. //duplicate data required to render response
  32. unsigned char Prespoints[N_RES_POINTS];
  33. char Pcenterfreq;
  34. char Poctavesfreq;
  35. char PmaxdB;
  36. };
  37. #endif