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.

682 lines
20KB

  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. // Fundamental
  149. #include "Fundamental/src/plugin.hpp"
  150. // GrandeModular
  151. #include "GrandeModular/src/plugin.hpp"
  152. // ZetaCarinaeModules
  153. #include "ZetaCarinaeModules/src/plugin.hpp"
  154. Plugin* pluginInstance__AnimatedCircuits;
  155. Plugin* pluginInstance__AudibleInstruments;
  156. Plugin* pluginInstance__Befaco;
  157. Plugin* pluginInstance__Bidoo;
  158. Plugin* pluginInstance__BogaudioModules;
  159. Plugin* pluginInstance__Fundamental;
  160. Plugin* pluginInstance__GrandeModular;
  161. Plugin* pluginInstance__ZetaCarinaeModules;
  162. namespace rack {
  163. // core plugins
  164. namespace core {
  165. extern Model* modelAudioInterface2;
  166. extern Model* modelMIDI_CV;
  167. extern Model* modelMIDI_CC;
  168. extern Model* modelMIDI_Gate;
  169. extern Model* modelMIDI_Map;
  170. extern Model* modelCV_MIDI;
  171. extern Model* modelCV_CC;
  172. extern Model* modelCV_Gate;
  173. extern Model* modelBlank;
  174. extern Model* modelNotes;
  175. }
  176. // regular plugins
  177. namespace plugin {
  178. struct StaticPluginLoader {
  179. Plugin* const plugin;
  180. FILE* file;
  181. json_t* rootJ;
  182. // core
  183. StaticPluginLoader(Plugin* const p)
  184. : plugin(p),
  185. file(nullptr),
  186. rootJ(nullptr)
  187. {
  188. p->path = system::join(CARDINAL_PLUGINS_DIR, "Core.json");
  189. if ((file = std::fopen(p->path.c_str(), "r")) == nullptr)
  190. {
  191. d_stderr2("Manifest file %s does not exist", p->path.c_str());
  192. return;
  193. }
  194. json_error_t error;
  195. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  196. {
  197. d_stderr2("JSON parsing error at %s %d:%d %s", p->path.c_str(), error.line, error.column, error.text);
  198. return;
  199. }
  200. // force ABI, we use static plugins so this doesnt matter as long as it builds
  201. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  202. json_object_set(rootJ, "version", version);
  203. json_decref(version);
  204. }
  205. // regular plugins
  206. StaticPluginLoader(Plugin* const p, const char* const name)
  207. : plugin(p),
  208. file(nullptr),
  209. rootJ(nullptr)
  210. {
  211. p->path = system::join(CARDINAL_PLUGINS_DIR, name);
  212. const std::string manifestFilename = system::join(p->path, "plugin.json");
  213. if ((file = std::fopen(manifestFilename.c_str(), "r")) == nullptr)
  214. {
  215. d_stderr2("Manifest file %s does not exist", manifestFilename.c_str());
  216. return;
  217. }
  218. json_error_t error;
  219. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  220. {
  221. d_stderr2("JSON parsing error at %s %d:%d %s", manifestFilename.c_str(), error.line, error.column, error.text);
  222. return;
  223. }
  224. // force ABI, we use static plugins so this doesnt matter as long as it builds
  225. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  226. json_object_set(rootJ, "version", version);
  227. json_decref(version);
  228. }
  229. ~StaticPluginLoader()
  230. {
  231. if (rootJ != nullptr)
  232. {
  233. plugin->fromJson(rootJ);
  234. json_decref(rootJ);
  235. plugins.push_back(plugin);
  236. }
  237. if (file != nullptr)
  238. std::fclose(file);
  239. }
  240. bool ok() const noexcept
  241. {
  242. return rootJ != nullptr;
  243. }
  244. };
  245. static void initStatic__Core()
  246. {
  247. Plugin* const p = new Plugin;
  248. const StaticPluginLoader spl(p);
  249. if (spl.ok())
  250. {
  251. p->addModel(rack::core::modelAudioInterface2);
  252. p->addModel(rack::core::modelMIDI_CV);
  253. p->addModel(rack::core::modelMIDI_CC);
  254. p->addModel(rack::core::modelMIDI_Gate);
  255. p->addModel(rack::core::modelMIDI_Map);
  256. p->addModel(rack::core::modelCV_MIDI);
  257. p->addModel(rack::core::modelCV_CC);
  258. p->addModel(rack::core::modelCV_Gate);
  259. p->addModel(rack::core::modelBlank);
  260. p->addModel(rack::core::modelNotes);
  261. }
  262. }
  263. static void initStatic__AnimatedCircuits()
  264. {
  265. Plugin* const p = new Plugin;
  266. pluginInstance__AnimatedCircuits = p;
  267. const StaticPluginLoader spl(p, "AnimatedCircuits");
  268. if (spl.ok())
  269. {
  270. p->addModel(model_AC_Folding);
  271. }
  272. }
  273. static void initStatic__AudibleInstruments()
  274. {
  275. Plugin* const p = new Plugin;
  276. pluginInstance__AudibleInstruments = p;
  277. const StaticPluginLoader spl(p, "AudibleInstruments");
  278. if (spl.ok())
  279. {
  280. p->addModel(modelBraids);
  281. p->addModel(modelPlaits);
  282. p->addModel(modelElements);
  283. p->addModel(modelTides);
  284. p->addModel(modelTides2);
  285. p->addModel(modelClouds);
  286. p->addModel(modelWarps);
  287. p->addModel(modelRings);
  288. p->addModel(modelLinks);
  289. p->addModel(modelKinks);
  290. p->addModel(modelShades);
  291. p->addModel(modelBranches);
  292. p->addModel(modelBlinds);
  293. p->addModel(modelVeils);
  294. p->addModel(modelFrames);
  295. p->addModel(modelMarbles);
  296. p->addModel(modelStages);
  297. p->addModel(modelRipples);
  298. p->addModel(modelShelves);
  299. p->addModel(modelStreams);
  300. }
  301. }
  302. static void initStatic__Befaco()
  303. {
  304. Plugin* const p = new Plugin;
  305. pluginInstance__Befaco = p;
  306. const StaticPluginLoader spl(p, "Befaco");
  307. if (spl.ok())
  308. {
  309. p->addModel(modelEvenVCO);
  310. p->addModel(modelRampage);
  311. p->addModel(modelABC);
  312. p->addModel(modelSpringReverb);
  313. p->addModel(modelMixer);
  314. p->addModel(modelSlewLimiter);
  315. p->addModel(modelDualAtenuverter);
  316. }
  317. }
  318. static void initStatic__Bidoo()
  319. {
  320. Plugin* const p = new Plugin;
  321. pluginInstance__Bidoo = p;
  322. const StaticPluginLoader spl(p, "Bidoo");
  323. if (spl.ok())
  324. {
  325. p->addModel(modelTOCANTE);
  326. p->addModel(modelLATE);
  327. p->addModel(modelDIKTAT);
  328. p->addModel(modelDTROY);
  329. p->addModel(modelBORDL);
  330. p->addModel(modelZOUMAI);
  331. p->addModel(modelMU);
  332. p->addModel(modelCHUTE);
  333. p->addModel(modelLOURDE);
  334. p->addModel(modelACNE);
  335. p->addModel(modelMS);
  336. p->addModel(modelDUKE);
  337. p->addModel(modelMOIRE);
  338. p->addModel(modelPILOT);
  339. p->addModel(modelHUITRE);
  340. p->addModel(modelOUAIVE);
  341. p->addModel(modelPOUPRE);
  342. p->addModel(modelMAGMA);
  343. p->addModel(modelOAI);
  344. p->addModel(modelCANARD);
  345. p->addModel(modelEMILE);
  346. p->addModel(modelFORK);
  347. p->addModel(modelTIARE);
  348. //p->addModel(modelCLACOS);
  349. //p->addModel(modelPENEQUE);
  350. p->addModel(modelLIMONADE);
  351. p->addModel(modelLIMBO);
  352. p->addModel(modelPERCO);
  353. p->addModel(modelBAFIS);
  354. p->addModel(modelFFILTR);
  355. p->addModel(modelBAR);
  356. p->addModel(modelMINIBAR);
  357. p->addModel(modelZINC);
  358. p->addModel(modelFREIN);
  359. p->addModel(modelHCTIP);
  360. //p->addModel(modelCURT);
  361. p->addModel(modelDFUZE);
  362. p->addModel(modelREI);
  363. p->addModel(modelRABBIT);
  364. p->addModel(modelBISTROT);
  365. p->addModel(modelSIGMA);
  366. p->addModel(modelGARCON);
  367. p->addModel(modelVOID);
  368. // NOTE disabled in Cardinal due to curl usage
  369. // p->addModel(modelANTN);
  370. // intentionally remove known bad plugin
  371. if (json_t* const modules = json_object_get(spl.rootJ, "modules"))
  372. {
  373. size_t i;
  374. json_t* v;
  375. json_array_foreach(modules, i, v)
  376. {
  377. if (json_t* const slug = json_object_get(v, "slug"))
  378. {
  379. if (const char* const value = json_string_value(slug))
  380. {
  381. if (std::strcmp(value, "antN") == 0)
  382. {
  383. json_array_remove(modules, i);
  384. break;
  385. }
  386. }
  387. }
  388. }
  389. }
  390. }
  391. }
  392. static void initStatic__BogaudioModules()
  393. {
  394. Plugin* const p = new Plugin;
  395. pluginInstance__BogaudioModules = p;
  396. const StaticPluginLoader spl(p, "BogaudioModules");
  397. if (spl.ok())
  398. {
  399. #define modelADSR modelBogaudioADSR
  400. #define modelLFO modelBogaudioLFO
  401. #define modelNoise modelBogaudioNoise
  402. #define modelVCA modelBogaudioVCA
  403. #define modelVCF modelBogaudioVCF
  404. #define modelVCO modelBogaudioVCO
  405. p->addModel(modelVCO);
  406. p->addModel(modelLVCO);
  407. p->addModel(modelSine);
  408. p->addModel(modelPulse);
  409. p->addModel(modelXCO);
  410. p->addModel(modelAdditator);
  411. p->addModel(modelFMOp);
  412. p->addModel(modelChirp);
  413. p->addModel(modelLFO);
  414. p->addModel(modelLLFO);
  415. p->addModel(modelFourFO);
  416. p->addModel(modelEightFO);
  417. p->addModel(modelVCF);
  418. p->addModel(modelLVCF);
  419. p->addModel(modelFFB);
  420. p->addModel(modelEQ);
  421. p->addModel(modelEQS);
  422. p->addModel(modelLPG);
  423. p->addModel(modelLLPG);
  424. p->addModel(modelMegaGate);
  425. p->addModel(modelPEQ);
  426. p->addModel(modelPEQ6);
  427. p->addModel(modelPEQ6XF);
  428. p->addModel(modelPEQ14);
  429. p->addModel(modelPEQ14XF);
  430. p->addModel(modelDADSRH);
  431. p->addModel(modelDADSRHPlus);
  432. p->addModel(modelShaper);
  433. p->addModel(modelShaperPlus);
  434. p->addModel(modelAD);
  435. p->addModel(modelASR);
  436. p->addModel(modelADSR);
  437. p->addModel(modelVish);
  438. p->addModel(modelFollow);
  439. p->addModel(modelDGate);
  440. p->addModel(modelRGate);
  441. p->addModel(modelEdge);
  442. p->addModel(modelNoise);
  443. p->addModel(modelSampleHold);
  444. p->addModel(modelWalk2);
  445. p->addModel(modelWalk);
  446. p->addModel(modelMix8);
  447. p->addModel(modelMix8x);
  448. p->addModel(modelMix4);
  449. p->addModel(modelMix4x);
  450. p->addModel(modelMix2);
  451. p->addModel(modelMix1);
  452. p->addModel(modelVCM);
  453. p->addModel(modelMute8);
  454. p->addModel(modelPan);
  455. p->addModel(modelXFade);
  456. p->addModel(modelVCA);
  457. p->addModel(modelVCAmp);
  458. p->addModel(modelVelo);
  459. p->addModel(modelUMix);
  460. p->addModel(modelMumix);
  461. p->addModel(modelMatrix81);
  462. p->addModel(modelMatrix18);
  463. p->addModel(modelMatrix44);
  464. p->addModel(modelMatrix44Cvm);
  465. p->addModel(modelMatrix88);
  466. p->addModel(modelMatrix88Cv);
  467. p->addModel(modelMatrix88M);
  468. p->addModel(modelSwitch81);
  469. p->addModel(modelSwitch18);
  470. p->addModel(modelSwitch44);
  471. p->addModel(modelSwitch88);
  472. p->addModel(modelSwitch1616);
  473. p->addModel(modelAMRM);
  474. p->addModel(modelPressor);
  475. p->addModel(modelClpr);
  476. p->addModel(modelLmtr);
  477. p->addModel(modelNsgt);
  478. p->addModel(modelCmpDist);
  479. p->addModel(modelOneEight);
  480. p->addModel(modelEightOne);
  481. p->addModel(modelAddrSeq);
  482. p->addModel(modelAddrSeqX);
  483. p->addModel(modelPgmr);
  484. p->addModel(modelPgmrX);
  485. p->addModel(modelVU);
  486. p->addModel(modelAnalyzer);
  487. p->addModel(modelAnalyzerXL);
  488. p->addModel(modelRanalyzer);
  489. p->addModel(modelDetune);
  490. p->addModel(modelStack);
  491. p->addModel(modelReftone);
  492. p->addModel(modelMono);
  493. p->addModel(modelArp);
  494. p->addModel(modelAssign);
  495. p->addModel(modelUnison);
  496. p->addModel(modelPolyCon8);
  497. p->addModel(modelPolyCon16);
  498. p->addModel(modelPolyOff8);
  499. p->addModel(modelPolyOff16);
  500. p->addModel(modelPolyMult);
  501. p->addModel(modelBool);
  502. p->addModel(modelCmp);
  503. p->addModel(modelCVD);
  504. p->addModel(modelFlipFlop);
  505. p->addModel(modelInv);
  506. p->addModel(modelManual);
  507. p->addModel(modelFourMan);
  508. p->addModel(modelMult);
  509. p->addModel(modelOffset);
  510. p->addModel(modelSlew);
  511. p->addModel(modelSums);
  512. p->addModel(modelSwitch);
  513. p->addModel(modelLgsw);
  514. p->addModel(modelBlank3);
  515. p->addModel(modelBlank6);
  516. #ifdef EXPERIMENTAL
  517. p->addModel(modelLag);
  518. p->addModel(modelPEQ14XR);
  519. p->addModel(modelPEQ14XV);
  520. #endif
  521. #ifdef TEST
  522. p->addModel(modelTest);
  523. p->addModel(modelTest2);
  524. p->addModel(modelTestExpanderBase);
  525. p->addModel(modelTestExpanderExtension);
  526. p->addModel(modelTestGl);
  527. p->addModel(modelTestVCF);
  528. #endif
  529. #undef modelADSR
  530. #undef modelLFO
  531. #undef modelNoise
  532. #undef modelVCA
  533. #undef modelVCF
  534. #undef modelVCO
  535. }
  536. }
  537. static void initStatic__Fundamental()
  538. {
  539. Plugin* const p = new Plugin;
  540. pluginInstance__Fundamental = p;
  541. const StaticPluginLoader spl(p, "Fundamental");
  542. if (spl.ok())
  543. {
  544. p->addModel(modelVCO);
  545. p->addModel(modelVCO2);
  546. p->addModel(modelVCF);
  547. p->addModel(modelVCA_1);
  548. p->addModel(modelVCA);
  549. p->addModel(modelLFO);
  550. p->addModel(modelLFO2);
  551. p->addModel(modelDelay);
  552. p->addModel(modelADSR);
  553. p->addModel(modelVCMixer);
  554. p->addModel(model_8vert);
  555. p->addModel(modelUnity);
  556. p->addModel(modelMutes);
  557. p->addModel(modelPulses);
  558. p->addModel(modelScope);
  559. p->addModel(modelSEQ3);
  560. p->addModel(modelSequentialSwitch1);
  561. p->addModel(modelSequentialSwitch2);
  562. p->addModel(modelOctave);
  563. p->addModel(modelQuantizer);
  564. p->addModel(modelSplit);
  565. p->addModel(modelMerge);
  566. p->addModel(modelSum);
  567. p->addModel(modelViz);
  568. p->addModel(modelMidSide);
  569. p->addModel(modelNoise);
  570. p->addModel(modelRandom);
  571. }
  572. }
  573. static void initStatic__GrandeModular()
  574. {
  575. Plugin* const p = new Plugin;
  576. pluginInstance__GrandeModular = p;
  577. const StaticPluginLoader spl(p, "GrandeModular");
  578. if (spl.ok())
  579. {
  580. p->addModel(modelClip);
  581. p->addModel(modelMergeSplit4);
  582. p->addModel(modelMicrotonalChords);
  583. p->addModel(modelMicrotonalNotes);
  584. p->addModel(modelNoteMT);
  585. p->addModel(modelPolyMergeResplit);
  586. p->addModel(modelQuant);
  587. p->addModel(modelQuantIntervals);
  588. p->addModel(modelQuantMT);
  589. p->addModel(modelSampleDelays);
  590. p->addModel(modelScale);
  591. p->addModel(modelTails);
  592. p->addModel(modelVarSampleDelays);
  593. }
  594. }
  595. static void initStatic__ZetaCarinaeModules()
  596. {
  597. Plugin* p = new Plugin;
  598. pluginInstance__ZetaCarinaeModules = p;
  599. const StaticPluginLoader spl(p, "ZetaCarinaeModules");
  600. if (spl.ok())
  601. {
  602. p->addModel(modelBrownianBridge);
  603. p->addModel(modelOrnsteinUhlenbeck);
  604. p->addModel(modelIOU);
  605. p->addModel(modelWarbler);
  606. p->addModel(modelRosenchance);
  607. p->addModel(modelGuildensTurn);
  608. p->addModel(modelRosslerRustler);
  609. p->addModel(modelFirefly);
  610. }
  611. }
  612. void initStaticPlugins()
  613. {
  614. initStatic__Core();
  615. initStatic__AnimatedCircuits();
  616. initStatic__AudibleInstruments();
  617. initStatic__Befaco();
  618. initStatic__Bidoo();
  619. initStatic__BogaudioModules();
  620. initStatic__Fundamental();
  621. initStatic__GrandeModular();
  622. initStatic__ZetaCarinaeModules();
  623. }
  624. void destroyStaticPlugins()
  625. {
  626. for (Plugin* p : plugins)
  627. delete p;
  628. plugins.clear();
  629. }
  630. }
  631. }