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.

DistrhoPluginNotes.hpp 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * DISTRHO Notes Plugin
  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 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_NOTES_HPP_INCLUDED
  18. #define DISTRHO_PLUGIN_NOTES_HPP_INCLUDED
  19. #include "DistrhoPlugin.hpp"
  20. START_NAMESPACE_DISTRHO
  21. // -----------------------------------------------------------------------
  22. class DistrhoPluginNotes : public Plugin
  23. {
  24. public:
  25. DistrhoPluginNotes();
  26. ~DistrhoPluginNotes() override;
  27. protected:
  28. // -------------------------------------------------------------------
  29. // Information
  30. const char* d_getLabel() const noexcept override
  31. {
  32. return "Notes";
  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', 'N', 'o', 't');
  49. }
  50. // -------------------------------------------------------------------
  51. // Init
  52. void d_initParameter(uint32_t index, Parameter& parameter) override;
  53. void d_initStateKey(uint32_t index, d_string& stateKeyName) override;
  54. // -------------------------------------------------------------------
  55. // Internal data
  56. float d_getParameterValue(uint32_t index) const override;
  57. void d_setParameterValue(uint32_t index, float value) override;
  58. void d_setState(const char* key, const char* value) override;
  59. // -------------------------------------------------------------------
  60. // Process
  61. void d_run(float** inputs, float** outputs, uint32_t frames, const MidiEvent* midiEvents, uint32_t midiEventCount) override;
  62. // -------------------------------------------------------------------
  63. private:
  64. int fCurPage;
  65. };
  66. // -----------------------------------------------------------------------
  67. END_NAMESPACE_DISTRHO
  68. #endif // DISTRHO_PLUGIN_NOTES_HPP_INCLUDED