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.

DistrhoUI3BandSplitter.hpp 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * DISTRHO 3BandSplitter Plugin, based on 3BandSplitter by Michael Gruhn
  3. * Copyright (C) 2012-2013 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * For a full copy of the license see the LGPL.txt file
  15. */
  16. #ifndef __DISTRHO_UI_3BANDSPLITTER_HPP__
  17. #define __DISTRHO_UI_3BANDSPLITTER_HPP__
  18. #include "DistrhoUIOpenGLExt.h"
  19. #include "DistrhoArtwork3BandSplitter.hpp"
  20. #include "DistrhoPlugin3BandSplitter.hpp"
  21. START_NAMESPACE_DISTRHO
  22. // -------------------------------------------------
  23. class DistrhoUI3BandSplitter : public OpenGLExtUI
  24. {
  25. public:
  26. DistrhoUI3BandSplitter();
  27. ~DistrhoUI3BandSplitter();
  28. // ---------------------------------------------
  29. protected:
  30. // Information
  31. int d_width()
  32. {
  33. return DistrhoArtwork3BandSplitter::backgroundWidth;
  34. }
  35. int d_height()
  36. {
  37. return DistrhoArtwork3BandSplitter::backgroundHeight;
  38. }
  39. // DSP Callbacks
  40. void d_parameterChanged(uint32_t index, float value);
  41. void d_programChanged(uint32_t index);
  42. // Extended Callbacks
  43. void imageButtonClicked(ImageButton* button);
  44. void imageKnobDragStarted(ImageKnob* knob);
  45. void imageKnobDragFinished(ImageKnob* knob);
  46. void imageKnobValueChanged(ImageKnob* knob, float value);
  47. void imageSliderDragStarted(ImageSlider* slider);
  48. void imageSliderDragFinished(ImageSlider* slider);
  49. void imageSliderValueChanged(ImageSlider* slider, float value);
  50. private:
  51. ImageSlider* sliderLow;
  52. ImageSlider* sliderMid;
  53. ImageSlider* sliderHigh;
  54. ImageSlider* sliderMaster;
  55. ImageKnob* knobLowMid;
  56. ImageKnob* knobMidHigh;
  57. ImageButton* buttonAbout;
  58. };
  59. // -------------------------------------------------
  60. END_NAMESPACE_DISTRHO
  61. #endif // __DISTRHO_UI_3BANDSPLITTER_HPP__