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.

33 lines
842B

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