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.

31 lines
766B

  1. #pragma once
  2. #include <FL/Fl_Value_Slider.H>
  3. #include "Fl_Osc_Widget.H"
  4. #include <string>
  5. class Fl_Osc_VSlider:public Fl_Value_Slider, public Fl_Osc_Widget
  6. {
  7. public:
  8. Fl_Osc_VSlider(int X, int Y, int W, int H, const char *label = NULL);
  9. virtual ~Fl_Osc_VSlider(void);
  10. void OSC_value(char);
  11. void OSC_value(int);
  12. void OSC_value(float);
  13. void init(std::string, char type = 'i');
  14. //Refetch parameter information
  15. void update(void);
  16. void callback(Fl_Callback *cb, void *p = NULL);
  17. //MIDI Learn
  18. int handle(int);
  19. void cb(void);
  20. static void _cb(Fl_Widget *w, void *);
  21. private:
  22. char osc_type;
  23. std::pair<Fl_Callback*, void*> cb_data;
  24. };