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.

37 lines
890B

  1. #include "GVerbWidget.hpp"
  2. #include <sys/stat.h>
  3. #if ARCH_WIN
  4. #include <windows.h>
  5. #include <direct.h>
  6. #define mkdir(_dir, _perms) _mkdir(_dir)
  7. #else
  8. #include <dlfcn.h>
  9. #endif
  10. using namespace std;
  11. Plugin *plugin;
  12. void init(Plugin *p) {
  13. plugin = p;
  14. p->slug = TOSTRING(SLUG);
  15. p->version = TOSTRING(VERSION);
  16. // Add all Models defined throughout the plugin
  17. p->addModel(modelGVerbModule);
  18. p->addModel(modelAudioInterface16);
  19. p->addModel(modelCV0to10Module);
  20. p->addModel(modelCVS0to10Module);
  21. p->addModel(modelCV5to5Module);
  22. p->addModel(modelCVMmtModule);
  23. p->addModel(modelCVTglModule);
  24. p->addModel(modelPianoRollModule);
  25. //p->addModel(modelSongRollModule);
  26. p->addModel(modelDuckModule);
  27. // Any other plugin initialization may go here.
  28. // As an alternative, consider lazy-loading assets and lookup tables when your module is created to reduce startup times of Rack.
  29. }