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.

841 lines
25KB

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