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.

793 lines
23KB

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