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.

35 lines
977B

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Fl_Osc_Output.H - OSC Based Value Output
  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_Value_Output.H>
  12. #include "Fl_Osc_Widget.H"
  13. class Fl_Osc_Output:public Fl_Value_Output, public Fl_Osc_Widget
  14. {
  15. public:
  16. Fl_Osc_Output(int x, int y, int w, int h, const char *label = NULL);
  17. void init(const char *path);
  18. void OSC_value(char);
  19. void OSC_value(float);
  20. using Fl_Osc_Widget::OSC_value;
  21. void update(void);
  22. void callback(Fl_Callback *cb, void *p = NULL);
  23. float newvalue() const;
  24. void cb(void);
  25. private:
  26. float newvalue_;
  27. std::pair<Fl_Callback*, void*> cb_data;
  28. };