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.

38 lines
1008B

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Fl_Osc_DialF.H - OSC Powered Real Valued Dial
  4. Copyright (C) 2016 Mark McCurry
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. */
  10. #pragma once
  11. #include <FL/Fl_Dial.H>
  12. #include "WidgetPDial.h"
  13. #include "Fl_Osc_Widget.H"
  14. #include <string>
  15. class Fl_Osc_DialF:public WidgetPDial, public Fl_Osc_Widget
  16. {
  17. public:
  18. Fl_Osc_DialF(int X, int Y, int W, int H, const char *label = NULL);
  19. virtual ~Fl_Osc_DialF(void);
  20. void init(const char *path);
  21. void OSC_value(float);
  22. //Refetch parameter information
  23. void update(void);
  24. void callback(Fl_Callback *cb, void *p = NULL);
  25. //Midi learn handler
  26. int handle(int);
  27. void cb(void);
  28. private:
  29. std::pair<Fl_Callback*, void*> cb_data;
  30. };