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.

29 lines
729B

  1. #pragma once
  2. #include <FL/Fl_Choice.H>
  3. #include "Fl_Osc_Widget.H"
  4. #include <string>
  5. class Fl_Osc_Choice:public Fl_Choice, public Fl_Osc_Widget
  6. {
  7. public:
  8. Fl_Osc_Choice(int X, int Y, int W, int H, const char *label = NULL);
  9. virtual ~Fl_Osc_Choice(void);
  10. //Base is for braindead choices that don't actually start at zero
  11. void init(std::string path, int base =0);
  12. //void OSC_value(float);
  13. void OSC_value(int);
  14. void OSC_value(char);
  15. //Refetch parameter information
  16. void update(void);
  17. void callback(Fl_Callback *cb, void *p = NULL);
  18. void cb(void);
  19. private:
  20. int min;
  21. std::pair<Fl_Callback*, void*> cb_data;
  22. };