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.

DistrhoPluginBigMeter.hpp 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * DISTRHO BigMeter Plugin
  3. * Copyright (C) 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 General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #ifndef DISTRHO_PLUGIN_BIGMETER_HPP_INCLUDED
  18. #define DISTRHO_PLUGIN_BIGMETER_HPP_INCLUDED
  19. #include "DistrhoPlugin.hpp"
  20. START_NAMESPACE_DISTRHO
  21. // -----------------------------------------------------------------------
  22. class DistrhoPluginBigMeter : public Plugin
  23. {
  24. public:
  25. DistrhoPluginBigMeter();
  26. ~DistrhoPluginBigMeter() override;
  27. protected:
  28. // -------------------------------------------------------------------
  29. // Information
  30. const char* d_getLabel() const noexcept override
  31. {
  32. return "BigMeterM";
  33. }
  34. const char* d_getMaker() const noexcept override
  35. {
  36. return "DISTRHO";
  37. }
  38. const char* d_getLicense() const noexcept override
  39. {
  40. return "GPL v2+";
  41. }
  42. uint32_t d_getVersion() const noexcept override
  43. {
  44. return 0x1000;
  45. }
  46. long d_getUniqueId() const noexcept override
  47. {
  48. return d_cconst('D', 'B', 'M', 'M');
  49. }
  50. // -------------------------------------------------------------------
  51. // Init
  52. void d_initParameter(uint32_t index, Parameter& parameter) override;
  53. // -------------------------------------------------------------------
  54. // Internal data
  55. float d_getParameterValue(uint32_t index) const override;
  56. void d_setParameterValue(uint32_t index, float value) override;
  57. // -------------------------------------------------------------------
  58. // Process
  59. void d_run(float** inputs, float** outputs, uint32_t frames, const MidiEvent* midiEvents, uint32_t midiEventCount) override;
  60. // -------------------------------------------------------------------
  61. private:
  62. int fColor;
  63. float fOuts[DISTRHO_PLUGIN_NUM_INPUTS];
  64. };
  65. // -----------------------------------------------------------------------
  66. END_NAMESPACE_DISTRHO
  67. #endif // DISTRHO_PLUGIN_BIGMETER_HPP_INCLUDED