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.

17 lines
284B

  1. #if!defined VUMETER_HPP
  2. #define VUMETER_HPP
  3. #include <rack.hpp>
  4. class VuMeter : public rack::TransparentWidget
  5. {
  6. public:
  7. VuMeter(rack::Vec const& pos, rack::Vec const& size);
  8. void setValue(float cv);
  9. void draw(NVGcontext* vg) override;
  10. private:
  11. float m_currentValue;
  12. };
  13. #endif