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.

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