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.

701 lines
21KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021 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 3 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 LICENSE file.
  16. */
  17. #include <plugin.hpp>
  18. #include "DistrhoUtils.hpp"
  19. // AnimatedCircuits
  20. #include "AnimatedCircuits/src/plugin.hpp"
  21. // AudibleInstruments
  22. #include "AudibleInstruments/src/plugin.hpp"
  23. // Befaco
  24. #include "Befaco/src/plugin.hpp"
  25. // Bidoo
  26. #include "Bidoo/src/plugin.hpp"
  27. // BogaudioModules
  28. #define modelADSR modelBogaudioADSR
  29. #define modelLFO modelBogaudioLFO
  30. #define modelNoise modelBogaudioNoise
  31. #define modelVCA modelBogaudioVCA
  32. #define modelVCF modelBogaudioVCF
  33. #define modelVCO modelBogaudioVCO
  34. #include "BogaudioModules/src/AD.hpp"
  35. #include "BogaudioModules/src/Additator.hpp"
  36. #include "BogaudioModules/src/AddrSeqX.hpp"
  37. #include "BogaudioModules/src/ADSR.hpp"
  38. #include "BogaudioModules/src/AMRM.hpp"
  39. #include "BogaudioModules/src/Analyzer.hpp"
  40. #include "BogaudioModules/src/AnalyzerXL.hpp"
  41. #include "BogaudioModules/src/Assign.hpp"
  42. #include "BogaudioModules/src/ASR.hpp"
  43. #include "BogaudioModules/src/Arp.hpp"
  44. #include "BogaudioModules/src/Blank3.hpp"
  45. #include "BogaudioModules/src/Blank6.hpp"
  46. #include "BogaudioModules/src/Bool.hpp"
  47. #include "BogaudioModules/src/Chirp.hpp"
  48. #include "BogaudioModules/src/Clpr.hpp"
  49. #include "BogaudioModules/src/Cmp.hpp"
  50. #include "BogaudioModules/src/CmpDist.hpp"
  51. #include "BogaudioModules/src/CVD.hpp"
  52. #include "BogaudioModules/src/DADSRH.hpp"
  53. #include "BogaudioModules/src/DADSRHPlus.hpp"
  54. #include "BogaudioModules/src/Detune.hpp"
  55. #include "BogaudioModules/src/DGate.hpp"
  56. #include "BogaudioModules/src/Edge.hpp"
  57. #include "BogaudioModules/src/EightFO.hpp"
  58. #include "BogaudioModules/src/EightOne.hpp"
  59. #include "BogaudioModules/src/EQ.hpp"
  60. #include "BogaudioModules/src/EQS.hpp"
  61. #include "BogaudioModules/src/FFB.hpp"
  62. #include "BogaudioModules/src/FlipFlop.hpp"
  63. #include "BogaudioModules/src/FMOp.hpp"
  64. #include "BogaudioModules/src/Follow.hpp"
  65. #include "BogaudioModules/src/FourFO.hpp"
  66. #include "BogaudioModules/src/FourMan.hpp"
  67. #include "BogaudioModules/src/Inv.hpp"
  68. #include "BogaudioModules/src/LFO.hpp"
  69. #include "BogaudioModules/src/Lgsw.hpp"
  70. #include "BogaudioModules/src/LLFO.hpp"
  71. #include "BogaudioModules/src/LLPG.hpp"
  72. #include "BogaudioModules/src/Lmtr.hpp"
  73. #include "BogaudioModules/src/LPG.hpp"
  74. #include "BogaudioModules/src/LVCF.hpp"
  75. #include "BogaudioModules/src/LVCO.hpp"
  76. #include "BogaudioModules/src/Manual.hpp"
  77. #include "BogaudioModules/src/Matrix18.hpp"
  78. #include "BogaudioModules/src/Matrix44.hpp"
  79. #include "BogaudioModules/src/Matrix81.hpp"
  80. #include "BogaudioModules/src/Matrix88.hpp"
  81. #include "BogaudioModules/src/Matrix88Cv.hpp"
  82. #include "BogaudioModules/src/Matrix88M.hpp"
  83. #include "BogaudioModules/src/MegaGate.hpp"
  84. #include "BogaudioModules/src/Mix1.hpp"
  85. #include "BogaudioModules/src/Mix2.hpp"
  86. #include "BogaudioModules/src/Mix4.hpp"
  87. #include "BogaudioModules/src/Mix4x.hpp"
  88. #include "BogaudioModules/src/Mix8x.hpp"
  89. #include "BogaudioModules/src/Mono.hpp"
  90. #include "BogaudioModules/src/Mult.hpp"
  91. #include "BogaudioModules/src/Mumix.hpp"
  92. #include "BogaudioModules/src/Mute8.hpp"
  93. #include "BogaudioModules/src/Noise.hpp"
  94. #include "BogaudioModules/src/Nsgt.hpp"
  95. #include "BogaudioModules/src/Offset.hpp"
  96. #include "BogaudioModules/src/OneEight.hpp"
  97. #include "BogaudioModules/src/Pan.hpp"
  98. #include "BogaudioModules/src/PEQ.hpp"
  99. #include "BogaudioModules/src/PEQ6.hpp"
  100. #include "BogaudioModules/src/PEQ6XF.hpp"
  101. #include "BogaudioModules/src/PEQ14.hpp"
  102. #include "BogaudioModules/src/PEQ14XF.hpp"
  103. #include "BogaudioModules/src/Pgmr.hpp"
  104. #include "BogaudioModules/src/PgmrX.hpp"
  105. #include "BogaudioModules/src/PolyCon16.hpp"
  106. #include "BogaudioModules/src/PolyCon8.hpp"
  107. #include "BogaudioModules/src/PolyMult.hpp"
  108. #include "BogaudioModules/src/PolyOff16.hpp"
  109. #include "BogaudioModules/src/PolyOff8.hpp"
  110. #include "BogaudioModules/src/Pressor.hpp"
  111. #include "BogaudioModules/src/Pulse.hpp"
  112. #include "BogaudioModules/src/Ranalyzer.hpp"
  113. #include "BogaudioModules/src/Reftone.hpp"
  114. #include "BogaudioModules/src/RGate.hpp"
  115. #include "BogaudioModules/src/SampleHold.hpp"
  116. #include "BogaudioModules/src/Shaper.hpp"
  117. #include "BogaudioModules/src/ShaperPlus.hpp"
  118. #include "BogaudioModules/src/Sine.hpp"
  119. #include "BogaudioModules/src/Slew.hpp"
  120. #include "BogaudioModules/src/Stack.hpp"
  121. #include "BogaudioModules/src/Sums.hpp"
  122. #include "BogaudioModules/src/Switch.hpp"
  123. #include "BogaudioModules/src/Switch1616.hpp"
  124. #include "BogaudioModules/src/Switch18.hpp"
  125. #include "BogaudioModules/src/Switch44.hpp"
  126. #include "BogaudioModules/src/Switch81.hpp"
  127. #include "BogaudioModules/src/Switch88.hpp"
  128. #include "BogaudioModules/src/UMix.hpp"
  129. #include "BogaudioModules/src/Unison.hpp"
  130. #include "BogaudioModules/src/VCA.hpp"
  131. #include "BogaudioModules/src/VCAmp.hpp"
  132. #include "BogaudioModules/src/VCF.hpp"
  133. #include "BogaudioModules/src/VCM.hpp"
  134. #include "BogaudioModules/src/VCO.hpp"
  135. #include "BogaudioModules/src/Velo.hpp"
  136. #include "BogaudioModules/src/Vish.hpp"
  137. #include "BogaudioModules/src/VU.hpp"
  138. #include "BogaudioModules/src/Walk.hpp"
  139. #include "BogaudioModules/src/Walk2.hpp"
  140. #include "BogaudioModules/src/XCO.hpp"
  141. #include "BogaudioModules/src/XFade.hpp"
  142. #undef modelADSR
  143. #undef modelLFO
  144. #undef modelNoise
  145. #undef modelVCA
  146. #undef modelVCF
  147. #undef modelVCO
  148. // Cardinal (built-in)
  149. #include "Cardinal/src/plugin.hpp"
  150. // Fundamental
  151. #include "Fundamental/src/plugin.hpp"
  152. // GrandeModular
  153. #include "GrandeModular/src/plugin.hpp"
  154. // ZetaCarinaeModules
  155. #include "ZetaCarinaeModules/src/plugin.hpp"
  156. Plugin* pluginInstance__AnimatedCircuits;
  157. Plugin* pluginInstance__AudibleInstruments;
  158. Plugin* pluginInstance__Befaco;
  159. Plugin* pluginInstance__Bidoo;
  160. Plugin* pluginInstance__BogaudioModules;
  161. Plugin* pluginInstance__Cardinal;
  162. Plugin* pluginInstance__Fundamental;
  163. Plugin* pluginInstance__GrandeModular;
  164. Plugin* pluginInstance__ZetaCarinaeModules;
  165. namespace rack {
  166. // core plugins
  167. namespace core {
  168. extern Model* modelAudioInterface2;
  169. extern Model* modelMIDI_CV;
  170. extern Model* modelMIDI_CC;
  171. extern Model* modelMIDI_Gate;
  172. extern Model* modelMIDI_Map;
  173. extern Model* modelCV_MIDI;
  174. extern Model* modelCV_CC;
  175. extern Model* modelCV_Gate;
  176. extern Model* modelBlank;
  177. extern Model* modelNotes;
  178. }
  179. // regular plugins
  180. namespace plugin {
  181. struct StaticPluginLoader {
  182. Plugin* const plugin;
  183. FILE* file;
  184. json_t* rootJ;
  185. // core
  186. StaticPluginLoader(Plugin* const p)
  187. : plugin(p),
  188. file(nullptr),
  189. rootJ(nullptr)
  190. {
  191. p->path = system::join(CARDINAL_PLUGINS_DIR, "Core.json");
  192. if ((file = std::fopen(p->path.c_str(), "r")) == nullptr)
  193. {
  194. d_stderr2("Manifest file %s does not exist", p->path.c_str());
  195. return;
  196. }
  197. json_error_t error;
  198. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  199. {
  200. d_stderr2("JSON parsing error at %s %d:%d %s", p->path.c_str(), error.line, error.column, error.text);
  201. return;
  202. }
  203. // force ABI, we use static plugins so this doesnt matter as long as it builds
  204. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  205. json_object_set(rootJ, "version", version);
  206. json_decref(version);
  207. }
  208. // regular plugins
  209. StaticPluginLoader(Plugin* const p, const char* const name)
  210. : plugin(p),
  211. file(nullptr),
  212. rootJ(nullptr)
  213. {
  214. p->path = system::join(CARDINAL_PLUGINS_DIR, name);
  215. const std::string manifestFilename = system::join(p->path, "plugin.json");
  216. if ((file = std::fopen(manifestFilename.c_str(), "r")) == nullptr)
  217. {
  218. d_stderr2("Manifest file %s does not exist", manifestFilename.c_str());
  219. return;
  220. }
  221. json_error_t error;
  222. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  223. {
  224. d_stderr2("JSON parsing error at %s %d:%d %s", manifestFilename.c_str(), error.line, error.column, error.text);
  225. return;
  226. }
  227. // force ABI, we use static plugins so this doesnt matter as long as it builds
  228. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  229. json_object_set(rootJ, "version", version);
  230. json_decref(version);
  231. }
  232. ~StaticPluginLoader()
  233. {
  234. if (rootJ != nullptr)
  235. {
  236. plugin->fromJson(rootJ);
  237. json_decref(rootJ);
  238. plugins.push_back(plugin);
  239. }
  240. if (file != nullptr)
  241. std::fclose(file);
  242. }
  243. bool ok() const noexcept
  244. {
  245. return rootJ != nullptr;
  246. }
  247. };
  248. static void initStatic__Core()
  249. {
  250. Plugin* const p = new Plugin;
  251. const StaticPluginLoader spl(p);
  252. if (spl.ok())
  253. {
  254. p->addModel(rack::core::modelAudioInterface2);
  255. p->addModel(rack::core::modelMIDI_CV);
  256. p->addModel(rack::core::modelMIDI_CC);
  257. p->addModel(rack::core::modelMIDI_Gate);
  258. p->addModel(rack::core::modelMIDI_Map);
  259. p->addModel(rack::core::modelCV_MIDI);
  260. p->addModel(rack::core::modelCV_CC);
  261. p->addModel(rack::core::modelCV_Gate);
  262. p->addModel(rack::core::modelBlank);
  263. p->addModel(rack::core::modelNotes);
  264. }
  265. }
  266. static void initStatic__AnimatedCircuits()
  267. {
  268. Plugin* const p = new Plugin;
  269. pluginInstance__AnimatedCircuits = p;
  270. const StaticPluginLoader spl(p, "AnimatedCircuits");
  271. if (spl.ok())
  272. {
  273. p->addModel(model_AC_Folding);
  274. }
  275. }
  276. static void initStatic__AudibleInstruments()
  277. {
  278. Plugin* const p = new Plugin;
  279. pluginInstance__AudibleInstruments = p;
  280. const StaticPluginLoader spl(p, "AudibleInstruments");
  281. if (spl.ok())
  282. {
  283. p->addModel(modelBraids);
  284. p->addModel(modelPlaits);
  285. p->addModel(modelElements);
  286. p->addModel(modelTides);
  287. p->addModel(modelTides2);
  288. p->addModel(modelClouds);
  289. p->addModel(modelWarps);
  290. p->addModel(modelRings);
  291. p->addModel(modelLinks);
  292. p->addModel(modelKinks);
  293. p->addModel(modelShades);
  294. p->addModel(modelBranches);
  295. p->addModel(modelBlinds);
  296. p->addModel(modelVeils);
  297. p->addModel(modelFrames);
  298. p->addModel(modelMarbles);
  299. p->addModel(modelStages);
  300. p->addModel(modelRipples);
  301. p->addModel(modelShelves);
  302. p->addModel(modelStreams);
  303. }
  304. }
  305. static void initStatic__Befaco()
  306. {
  307. Plugin* const p = new Plugin;
  308. pluginInstance__Befaco = p;
  309. const StaticPluginLoader spl(p, "Befaco");
  310. if (spl.ok())
  311. {
  312. p->addModel(modelEvenVCO);
  313. p->addModel(modelRampage);
  314. p->addModel(modelABC);
  315. p->addModel(modelSpringReverb);
  316. p->addModel(modelMixer);
  317. p->addModel(modelSlewLimiter);
  318. p->addModel(modelDualAtenuverter);
  319. }
  320. }
  321. static void initStatic__Bidoo()
  322. {
  323. Plugin* const p = new Plugin;
  324. pluginInstance__Bidoo = p;
  325. const StaticPluginLoader spl(p, "Bidoo");
  326. if (spl.ok())
  327. {
  328. p->addModel(modelTOCANTE);
  329. p->addModel(modelLATE);
  330. p->addModel(modelDIKTAT);
  331. p->addModel(modelDTROY);
  332. p->addModel(modelBORDL);
  333. p->addModel(modelZOUMAI);
  334. p->addModel(modelMU);
  335. p->addModel(modelCHUTE);
  336. p->addModel(modelLOURDE);
  337. p->addModel(modelACNE);
  338. p->addModel(modelMS);
  339. p->addModel(modelDUKE);
  340. p->addModel(modelMOIRE);
  341. p->addModel(modelPILOT);
  342. p->addModel(modelHUITRE);
  343. p->addModel(modelOUAIVE);
  344. p->addModel(modelPOUPRE);
  345. p->addModel(modelMAGMA);
  346. p->addModel(modelOAI);
  347. p->addModel(modelCANARD);
  348. p->addModel(modelEMILE);
  349. p->addModel(modelFORK);
  350. p->addModel(modelTIARE);
  351. //p->addModel(modelCLACOS);
  352. //p->addModel(modelPENEQUE);
  353. p->addModel(modelLIMONADE);
  354. p->addModel(modelLIMBO);
  355. p->addModel(modelPERCO);
  356. p->addModel(modelBAFIS);
  357. p->addModel(modelFFILTR);
  358. p->addModel(modelBAR);
  359. p->addModel(modelMINIBAR);
  360. p->addModel(modelZINC);
  361. p->addModel(modelFREIN);
  362. p->addModel(modelHCTIP);
  363. //p->addModel(modelCURT);
  364. p->addModel(modelDFUZE);
  365. p->addModel(modelREI);
  366. p->addModel(modelRABBIT);
  367. p->addModel(modelBISTROT);
  368. p->addModel(modelSIGMA);
  369. p->addModel(modelGARCON);
  370. p->addModel(modelVOID);
  371. // NOTE disabled in Cardinal due to curl usage
  372. // p->addModel(modelANTN);
  373. // intentionally remove known bad plugin
  374. if (json_t* const modules = json_object_get(spl.rootJ, "modules"))
  375. {
  376. size_t i;
  377. json_t* v;
  378. json_array_foreach(modules, i, v)
  379. {
  380. if (json_t* const slug = json_object_get(v, "slug"))
  381. {
  382. if (const char* const value = json_string_value(slug))
  383. {
  384. if (std::strcmp(value, "antN") == 0)
  385. {
  386. json_array_remove(modules, i);
  387. break;
  388. }
  389. }
  390. }
  391. }
  392. }
  393. }
  394. }
  395. static void initStatic__BogaudioModules()
  396. {
  397. Plugin* const p = new Plugin;
  398. pluginInstance__BogaudioModules = p;
  399. const StaticPluginLoader spl(p, "BogaudioModules");
  400. if (spl.ok())
  401. {
  402. #define modelADSR modelBogaudioADSR
  403. #define modelLFO modelBogaudioLFO
  404. #define modelNoise modelBogaudioNoise
  405. #define modelVCA modelBogaudioVCA
  406. #define modelVCF modelBogaudioVCF
  407. #define modelVCO modelBogaudioVCO
  408. p->addModel(modelVCO);
  409. p->addModel(modelLVCO);
  410. p->addModel(modelSine);
  411. p->addModel(modelPulse);
  412. p->addModel(modelXCO);
  413. p->addModel(modelAdditator);
  414. p->addModel(modelFMOp);
  415. p->addModel(modelChirp);
  416. p->addModel(modelLFO);
  417. p->addModel(modelLLFO);
  418. p->addModel(modelFourFO);
  419. p->addModel(modelEightFO);
  420. p->addModel(modelVCF);
  421. p->addModel(modelLVCF);
  422. p->addModel(modelFFB);
  423. p->addModel(modelEQ);
  424. p->addModel(modelEQS);
  425. p->addModel(modelLPG);
  426. p->addModel(modelLLPG);
  427. p->addModel(modelMegaGate);
  428. p->addModel(modelPEQ);
  429. p->addModel(modelPEQ6);
  430. p->addModel(modelPEQ6XF);
  431. p->addModel(modelPEQ14);
  432. p->addModel(modelPEQ14XF);
  433. p->addModel(modelDADSRH);
  434. p->addModel(modelDADSRHPlus);
  435. p->addModel(modelShaper);
  436. p->addModel(modelShaperPlus);
  437. p->addModel(modelAD);
  438. p->addModel(modelASR);
  439. p->addModel(modelADSR);
  440. p->addModel(modelVish);
  441. p->addModel(modelFollow);
  442. p->addModel(modelDGate);
  443. p->addModel(modelRGate);
  444. p->addModel(modelEdge);
  445. p->addModel(modelNoise);
  446. p->addModel(modelSampleHold);
  447. p->addModel(modelWalk2);
  448. p->addModel(modelWalk);
  449. p->addModel(modelMix8);
  450. p->addModel(modelMix8x);
  451. p->addModel(modelMix4);
  452. p->addModel(modelMix4x);
  453. p->addModel(modelMix2);
  454. p->addModel(modelMix1);
  455. p->addModel(modelVCM);
  456. p->addModel(modelMute8);
  457. p->addModel(modelPan);
  458. p->addModel(modelXFade);
  459. p->addModel(modelVCA);
  460. p->addModel(modelVCAmp);
  461. p->addModel(modelVelo);
  462. p->addModel(modelUMix);
  463. p->addModel(modelMumix);
  464. p->addModel(modelMatrix81);
  465. p->addModel(modelMatrix18);
  466. p->addModel(modelMatrix44);
  467. p->addModel(modelMatrix44Cvm);
  468. p->addModel(modelMatrix88);
  469. p->addModel(modelMatrix88Cv);
  470. p->addModel(modelMatrix88M);
  471. p->addModel(modelSwitch81);
  472. p->addModel(modelSwitch18);
  473. p->addModel(modelSwitch44);
  474. p->addModel(modelSwitch88);
  475. p->addModel(modelSwitch1616);
  476. p->addModel(modelAMRM);
  477. p->addModel(modelPressor);
  478. p->addModel(modelClpr);
  479. p->addModel(modelLmtr);
  480. p->addModel(modelNsgt);
  481. p->addModel(modelCmpDist);
  482. p->addModel(modelOneEight);
  483. p->addModel(modelEightOne);
  484. p->addModel(modelAddrSeq);
  485. p->addModel(modelAddrSeqX);
  486. p->addModel(modelPgmr);
  487. p->addModel(modelPgmrX);
  488. p->addModel(modelVU);
  489. p->addModel(modelAnalyzer);
  490. p->addModel(modelAnalyzerXL);
  491. p->addModel(modelRanalyzer);
  492. p->addModel(modelDetune);
  493. p->addModel(modelStack);
  494. p->addModel(modelReftone);
  495. p->addModel(modelMono);
  496. p->addModel(modelArp);
  497. p->addModel(modelAssign);
  498. p->addModel(modelUnison);
  499. p->addModel(modelPolyCon8);
  500. p->addModel(modelPolyCon16);
  501. p->addModel(modelPolyOff8);
  502. p->addModel(modelPolyOff16);
  503. p->addModel(modelPolyMult);
  504. p->addModel(modelBool);
  505. p->addModel(modelCmp);
  506. p->addModel(modelCVD);
  507. p->addModel(modelFlipFlop);
  508. p->addModel(modelInv);
  509. p->addModel(modelManual);
  510. p->addModel(modelFourMan);
  511. p->addModel(modelMult);
  512. p->addModel(modelOffset);
  513. p->addModel(modelSlew);
  514. p->addModel(modelSums);
  515. p->addModel(modelSwitch);
  516. p->addModel(modelLgsw);
  517. p->addModel(modelBlank3);
  518. p->addModel(modelBlank6);
  519. #ifdef EXPERIMENTAL
  520. p->addModel(modelLag);
  521. p->addModel(modelPEQ14XR);
  522. p->addModel(modelPEQ14XV);
  523. #endif
  524. #ifdef TEST
  525. p->addModel(modelTest);
  526. p->addModel(modelTest2);
  527. p->addModel(modelTestExpanderBase);
  528. p->addModel(modelTestExpanderExtension);
  529. p->addModel(modelTestGl);
  530. p->addModel(modelTestVCF);
  531. #endif
  532. #undef modelADSR
  533. #undef modelLFO
  534. #undef modelNoise
  535. #undef modelVCA
  536. #undef modelVCF
  537. #undef modelVCO
  538. }
  539. }
  540. static void initStatic__Cardinal()
  541. {
  542. Plugin* const p = new Plugin;
  543. pluginInstance__Cardinal = p;
  544. const StaticPluginLoader spl(p, "Cardinal");
  545. if (spl.ok())
  546. {
  547. // TODO implement these
  548. // p->addModel(modelHostParameters);
  549. // p->addModel(modelHostTime);
  550. }
  551. }
  552. static void initStatic__Fundamental()
  553. {
  554. Plugin* const p = new Plugin;
  555. pluginInstance__Fundamental = p;
  556. const StaticPluginLoader spl(p, "Fundamental");
  557. if (spl.ok())
  558. {
  559. p->addModel(modelVCO);
  560. p->addModel(modelVCO2);
  561. p->addModel(modelVCF);
  562. p->addModel(modelVCA_1);
  563. p->addModel(modelVCA);
  564. p->addModel(modelLFO);
  565. p->addModel(modelLFO2);
  566. p->addModel(modelDelay);
  567. p->addModel(modelADSR);
  568. p->addModel(modelVCMixer);
  569. p->addModel(model_8vert);
  570. p->addModel(modelUnity);
  571. p->addModel(modelMutes);
  572. p->addModel(modelPulses);
  573. p->addModel(modelScope);
  574. p->addModel(modelSEQ3);
  575. p->addModel(modelSequentialSwitch1);
  576. p->addModel(modelSequentialSwitch2);
  577. p->addModel(modelOctave);
  578. p->addModel(modelQuantizer);
  579. p->addModel(modelSplit);
  580. p->addModel(modelMerge);
  581. p->addModel(modelSum);
  582. p->addModel(modelViz);
  583. p->addModel(modelMidSide);
  584. p->addModel(modelNoise);
  585. p->addModel(modelRandom);
  586. }
  587. }
  588. static void initStatic__GrandeModular()
  589. {
  590. Plugin* const p = new Plugin;
  591. pluginInstance__GrandeModular = p;
  592. const StaticPluginLoader spl(p, "GrandeModular");
  593. if (spl.ok())
  594. {
  595. p->addModel(modelClip);
  596. p->addModel(modelMergeSplit4);
  597. p->addModel(modelMicrotonalChords);
  598. p->addModel(modelMicrotonalNotes);
  599. p->addModel(modelNoteMT);
  600. p->addModel(modelPolyMergeResplit);
  601. p->addModel(modelQuant);
  602. p->addModel(modelQuantIntervals);
  603. p->addModel(modelQuantMT);
  604. p->addModel(modelSampleDelays);
  605. p->addModel(modelScale);
  606. p->addModel(modelTails);
  607. p->addModel(modelVarSampleDelays);
  608. }
  609. }
  610. static void initStatic__ZetaCarinaeModules()
  611. {
  612. Plugin* p = new Plugin;
  613. pluginInstance__ZetaCarinaeModules = p;
  614. const StaticPluginLoader spl(p, "ZetaCarinaeModules");
  615. if (spl.ok())
  616. {
  617. p->addModel(modelBrownianBridge);
  618. p->addModel(modelOrnsteinUhlenbeck);
  619. p->addModel(modelIOU);
  620. p->addModel(modelWarbler);
  621. p->addModel(modelRosenchance);
  622. p->addModel(modelGuildensTurn);
  623. p->addModel(modelRosslerRustler);
  624. p->addModel(modelFirefly);
  625. }
  626. }
  627. void initStaticPlugins()
  628. {
  629. initStatic__Core();
  630. initStatic__AnimatedCircuits();
  631. initStatic__AudibleInstruments();
  632. initStatic__Befaco();
  633. initStatic__Bidoo();
  634. initStatic__BogaudioModules();
  635. initStatic__Cardinal();
  636. initStatic__Fundamental();
  637. initStatic__GrandeModular();
  638. initStatic__ZetaCarinaeModules();
  639. }
  640. void destroyStaticPlugins()
  641. {
  642. for (Plugin* p : plugins)
  643. delete p;
  644. plugins.clear();
  645. }
  646. }
  647. }