Collection of DPF-based plugins for packaging
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.

110 lines
3.1KB

  1. /*
  2. * DISTRHO MVerb, a DPF'ied MVerb.
  3. * Copyright (c) 2010 Martin Eastwood
  4. * Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 3 of
  9. * the License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * For a full copy of the GNU General Public License see the LICENSE file.
  17. */
  18. #ifndef DISTRHO_PLUGIN_MVERB_HPP_INCLUDED
  19. #define DISTRHO_PLUGIN_MVERB_HPP_INCLUDED
  20. #include "DistrhoPlugin.hpp"
  21. #include "MVerb.h"
  22. START_NAMESPACE_DISTRHO
  23. // -----------------------------------------------------------------------
  24. class DistrhoPluginMVerb : public Plugin
  25. {
  26. public:
  27. DistrhoPluginMVerb();
  28. protected:
  29. // -------------------------------------------------------------------
  30. // Information
  31. const char* getLabel() const noexcept override
  32. {
  33. return "MVerb";
  34. }
  35. const char* getDescription() const override
  36. {
  37. return "Studio quality reverb, provides a practical demonstration of Dattorro’s figure-of-eight reverb structure.";
  38. }
  39. const char* getMaker() const noexcept override
  40. {
  41. return "Martin Eastwood, falkTX";
  42. }
  43. const char* getHomePage() const override
  44. {
  45. return "https://github.com/DISTRHO/MVerb";
  46. }
  47. const char* getLicense() const noexcept override
  48. {
  49. return "GPL v3+";
  50. }
  51. uint32_t getVersion() const noexcept override
  52. {
  53. return d_version(1, 0, 0);
  54. }
  55. int64_t getUniqueId() const noexcept override
  56. {
  57. return d_cconst('M', 'V', 'r', 'b');
  58. }
  59. // -------------------------------------------------------------------
  60. // Init
  61. void initParameter(uint32_t index, Parameter& parameter) override;
  62. void initProgramName(uint32_t index, String& programName) override;
  63. // -------------------------------------------------------------------
  64. // Internal data
  65. float getParameterValue(uint32_t index) const override;
  66. void setParameterValue(uint32_t index, float value) override;
  67. void loadProgram(uint32_t index) override;
  68. // -------------------------------------------------------------------
  69. // Process
  70. void activate() override;
  71. void run(const float** inputs, float** outputs, uint32_t frames) override;
  72. // -------------------------------------------------------------------
  73. // Callbacks
  74. void sampleRateChanged(double newSampleRate) override;
  75. // -------------------------------------------------------------------
  76. private:
  77. MVerb<float> fVerb;
  78. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoPluginMVerb)
  79. };
  80. // -----------------------------------------------------------------------
  81. END_NAMESPACE_DISTRHO
  82. #endif // DISTRHO_PLUGIN_MVERB_HPP_INCLUDED