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.

24 lines
409B

  1. #ifndef VU_METER_H
  2. #define VU_METER_H
  3. #include <FL/Fl_Box.H>
  4. class VuMeter: public Fl_Box
  5. {
  6. public:
  7. VuMeter(int x,int y, int w, int h, const char *label=0)
  8. :Fl_Box(x,y,w,h,label)
  9. {}
  10. protected:
  11. float limit(float x)
  12. {
  13. if(x<0.0)
  14. x=0.0;
  15. else if(x>1.0)
  16. x=1.0;
  17. return x;
  18. }
  19. };
  20. #endif