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.

87 lines
2.1KB

  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 GPL.txt file
  16. */
  17. #ifndef __DISTRHO_PLUGIN_NOTES_HPP__
  18. #define __DISTRHO_PLUGIN_NOTES_HPP__
  19. #include "DistrhoPlugin.hpp"
  20. START_NAMESPACE_DISTRHO
  21. class DistrhoPluginNotes : public Plugin
  22. {
  23. public:
  24. DistrhoPluginNotes();
  25. ~DistrhoPluginNotes();
  26. protected:
  27. // ---------------------------------------------
  28. // Information
  29. const char* d_label() const
  30. {
  31. return "Notes";
  32. }
  33. const char* d_maker() const
  34. {
  35. return "DISTRHO";
  36. }
  37. const char* d_license() const
  38. {
  39. return "GPL v2+";
  40. }
  41. uint32_t d_version() const
  42. {
  43. return 0x1000;
  44. }
  45. long d_uniqueId() const
  46. {
  47. return d_cconst('D', 'N', 'o', 't');
  48. }
  49. // ---------------------------------------------
  50. // Init
  51. void d_initParameter(uint32_t index, Parameter& parameter);
  52. void d_initStateKey(uint32_t index, d_string& stateKeyName);
  53. // ---------------------------------------------
  54. // Internal data
  55. float d_parameterValue(uint32_t index);
  56. void d_setParameterValue(uint32_t index, float value);
  57. void d_setState(const char* key, const char* value);
  58. // ---------------------------------------------
  59. // Process
  60. void d_run(float** inputs, float** outputs, uint32_t frames, uint32_t midiEventCount, const MidiEvent* midiEvents);
  61. // ---------------------------------------------
  62. private:
  63. int fCurPage;
  64. };
  65. END_NAMESPACE_DISTRHO
  66. #endif // __DISTRHO_PLUGIN_NOTES_HPP__