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.

916 lines
27KB

  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. // AS
  22. #define modelADSR modelASADSR
  23. #define modelVCA modelASVCA
  24. #include "AS/src/AS.hpp"
  25. #undef modelADSR
  26. #undef modelVCA
  27. // AudibleInstruments
  28. #include "AudibleInstruments/src/plugin.hpp"
  29. // Befaco
  30. #include "Befaco/src/plugin.hpp"
  31. // Bidoo
  32. #include "Bidoo/src/plugin.hpp"
  33. // BogaudioModules
  34. #define modelADSR modelBogaudioADSR
  35. #define modelLFO modelBogaudioLFO
  36. #define modelNoise modelBogaudioNoise
  37. #define modelVCA modelBogaudioVCA
  38. #define modelVCF modelBogaudioVCF
  39. #define modelVCO modelBogaudioVCO
  40. #include "BogaudioModules/src/AD.hpp"
  41. #include "BogaudioModules/src/Additator.hpp"
  42. #include "BogaudioModules/src/AddrSeqX.hpp"
  43. #include "BogaudioModules/src/ADSR.hpp"
  44. #include "BogaudioModules/src/AMRM.hpp"
  45. #include "BogaudioModules/src/Analyzer.hpp"
  46. #include "BogaudioModules/src/AnalyzerXL.hpp"
  47. #include "BogaudioModules/src/Assign.hpp"
  48. #include "BogaudioModules/src/ASR.hpp"
  49. #include "BogaudioModules/src/Arp.hpp"
  50. #include "BogaudioModules/src/Blank3.hpp"
  51. #include "BogaudioModules/src/Blank6.hpp"
  52. #include "BogaudioModules/src/Bool.hpp"
  53. #include "BogaudioModules/src/Chirp.hpp"
  54. #include "BogaudioModules/src/Clpr.hpp"
  55. #include "BogaudioModules/src/Cmp.hpp"
  56. #include "BogaudioModules/src/CmpDist.hpp"
  57. #include "BogaudioModules/src/CVD.hpp"
  58. #include "BogaudioModules/src/DADSRH.hpp"
  59. #include "BogaudioModules/src/DADSRHPlus.hpp"
  60. #include "BogaudioModules/src/Detune.hpp"
  61. #include "BogaudioModules/src/DGate.hpp"
  62. #include "BogaudioModules/src/Edge.hpp"
  63. #include "BogaudioModules/src/EightFO.hpp"
  64. #include "BogaudioModules/src/EightOne.hpp"
  65. #include "BogaudioModules/src/EQ.hpp"
  66. #include "BogaudioModules/src/EQS.hpp"
  67. #include "BogaudioModules/src/FFB.hpp"
  68. #include "BogaudioModules/src/FlipFlop.hpp"
  69. #include "BogaudioModules/src/FMOp.hpp"
  70. #include "BogaudioModules/src/Follow.hpp"
  71. #include "BogaudioModules/src/FourFO.hpp"
  72. #include "BogaudioModules/src/FourMan.hpp"
  73. #include "BogaudioModules/src/Inv.hpp"
  74. #include "BogaudioModules/src/LFO.hpp"
  75. #include "BogaudioModules/src/Lgsw.hpp"
  76. #include "BogaudioModules/src/LLFO.hpp"
  77. #include "BogaudioModules/src/LLPG.hpp"
  78. #include "BogaudioModules/src/Lmtr.hpp"
  79. #include "BogaudioModules/src/LPG.hpp"
  80. #include "BogaudioModules/src/LVCF.hpp"
  81. #include "BogaudioModules/src/LVCO.hpp"
  82. #include "BogaudioModules/src/Manual.hpp"
  83. #include "BogaudioModules/src/Matrix18.hpp"
  84. #include "BogaudioModules/src/Matrix44.hpp"
  85. #include "BogaudioModules/src/Matrix81.hpp"
  86. #include "BogaudioModules/src/Matrix88.hpp"
  87. #include "BogaudioModules/src/Matrix88Cv.hpp"
  88. #include "BogaudioModules/src/Matrix88M.hpp"
  89. #include "BogaudioModules/src/MegaGate.hpp"
  90. #include "BogaudioModules/src/Mix1.hpp"
  91. #include "BogaudioModules/src/Mix2.hpp"
  92. #include "BogaudioModules/src/Mix4.hpp"
  93. #include "BogaudioModules/src/Mix4x.hpp"
  94. #include "BogaudioModules/src/Mix8x.hpp"
  95. #include "BogaudioModules/src/Mono.hpp"
  96. #include "BogaudioModules/src/Mult.hpp"
  97. #include "BogaudioModules/src/Mumix.hpp"
  98. #include "BogaudioModules/src/Mute8.hpp"
  99. #include "BogaudioModules/src/Noise.hpp"
  100. #include "BogaudioModules/src/Nsgt.hpp"
  101. #include "BogaudioModules/src/Offset.hpp"
  102. #include "BogaudioModules/src/OneEight.hpp"
  103. #include "BogaudioModules/src/Pan.hpp"
  104. #include "BogaudioModules/src/PEQ.hpp"
  105. #include "BogaudioModules/src/PEQ6.hpp"
  106. #include "BogaudioModules/src/PEQ6XF.hpp"
  107. #include "BogaudioModules/src/PEQ14.hpp"
  108. #include "BogaudioModules/src/PEQ14XF.hpp"
  109. #include "BogaudioModules/src/Pgmr.hpp"
  110. #include "BogaudioModules/src/PgmrX.hpp"
  111. #include "BogaudioModules/src/PolyCon16.hpp"
  112. #include "BogaudioModules/src/PolyCon8.hpp"
  113. #include "BogaudioModules/src/PolyMult.hpp"
  114. #include "BogaudioModules/src/PolyOff16.hpp"
  115. #include "BogaudioModules/src/PolyOff8.hpp"
  116. #include "BogaudioModules/src/Pressor.hpp"
  117. #include "BogaudioModules/src/Pulse.hpp"
  118. #include "BogaudioModules/src/Ranalyzer.hpp"
  119. #include "BogaudioModules/src/Reftone.hpp"
  120. #include "BogaudioModules/src/RGate.hpp"
  121. #include "BogaudioModules/src/SampleHold.hpp"
  122. #include "BogaudioModules/src/Shaper.hpp"
  123. #include "BogaudioModules/src/ShaperPlus.hpp"
  124. #include "BogaudioModules/src/Sine.hpp"
  125. #include "BogaudioModules/src/Slew.hpp"
  126. #include "BogaudioModules/src/Stack.hpp"
  127. #include "BogaudioModules/src/Sums.hpp"
  128. #include "BogaudioModules/src/Switch.hpp"
  129. #include "BogaudioModules/src/Switch1616.hpp"
  130. #include "BogaudioModules/src/Switch18.hpp"
  131. #include "BogaudioModules/src/Switch44.hpp"
  132. #include "BogaudioModules/src/Switch81.hpp"
  133. #include "BogaudioModules/src/Switch88.hpp"
  134. #include "BogaudioModules/src/UMix.hpp"
  135. #include "BogaudioModules/src/Unison.hpp"
  136. #include "BogaudioModules/src/VCA.hpp"
  137. #include "BogaudioModules/src/VCAmp.hpp"
  138. #include "BogaudioModules/src/VCF.hpp"
  139. #include "BogaudioModules/src/VCM.hpp"
  140. #include "BogaudioModules/src/VCO.hpp"
  141. #include "BogaudioModules/src/Velo.hpp"
  142. #include "BogaudioModules/src/Vish.hpp"
  143. #include "BogaudioModules/src/VU.hpp"
  144. #include "BogaudioModules/src/Walk.hpp"
  145. #include "BogaudioModules/src/Walk2.hpp"
  146. #include "BogaudioModules/src/XCO.hpp"
  147. #include "BogaudioModules/src/XFade.hpp"
  148. #undef modelADSR
  149. #undef modelLFO
  150. #undef modelNoise
  151. #undef modelVCA
  152. #undef modelVCF
  153. #undef modelVCO
  154. // Cardinal (built-in)
  155. #include "Cardinal/src/plugin.hpp"
  156. // ESeries
  157. #include "ESeries/src/plugin.hpp"
  158. // Fundamental
  159. #include "Fundamental/src/plugin.hpp"
  160. // GrandeModular
  161. #include "GrandeModular/src/plugin.hpp"
  162. // JW-Modules
  163. #include "JW-Modules/src/JWModules.hpp"
  164. // rackwindows
  165. #include "rackwindows/src/plugin.hpp"
  166. // stuff that reads config files, we dont want that
  167. int loadConsoleType() { return 0; }
  168. int loadDirectOutMode() { return 0; }
  169. bool loadDarkAsDefault() { return true; }
  170. bool loadQuality() { return false; }
  171. void saveConsoleType(int) {}
  172. void saveDarkAsDefault(bool) {}
  173. void saveDirectOutMode(bool) {}
  174. void saveHighQualityAsDefault(bool) {}
  175. // ValleyAudio
  176. /* does not build against v2
  177. #include "ValleyAudio/src/Valley.hpp"
  178. */
  179. // ZetaCarinaeModules
  180. #include "ZetaCarinaeModules/src/plugin.hpp"
  181. Plugin* pluginInstance__AnimatedCircuits;
  182. Plugin* pluginInstance__AS;
  183. Plugin* pluginInstance__AudibleInstruments;
  184. Plugin* pluginInstance__Befaco;
  185. Plugin* pluginInstance__Bidoo;
  186. Plugin* pluginInstance__BogaudioModules;
  187. Plugin* pluginInstance__Cardinal;
  188. Plugin* pluginInstance__ESeries;
  189. Plugin* pluginInstance__Fundamental;
  190. Plugin* pluginInstance__GrandeModular;
  191. Plugin* pluginInstance__JW;
  192. Plugin* pluginInstance__rackwindows;
  193. Plugin* pluginInstance__ValleyAudio;
  194. Plugin* pluginInstance__ZetaCarinaeModules;
  195. namespace rack {
  196. // core plugins
  197. namespace core {
  198. extern Model* modelAudioInterface;
  199. extern Model* modelAudioInterface2;
  200. extern Model* modelAudioInterface16;
  201. extern Model* modelMIDI_CV;
  202. extern Model* modelMIDI_CC;
  203. extern Model* modelMIDI_Gate;
  204. extern Model* modelMIDI_Map;
  205. extern Model* modelCV_MIDI;
  206. extern Model* modelCV_CC;
  207. extern Model* modelCV_Gate;
  208. extern Model* modelBlank;
  209. extern Model* modelNotes;
  210. }
  211. // regular plugins
  212. namespace plugin {
  213. struct StaticPluginLoader {
  214. Plugin* const plugin;
  215. FILE* file;
  216. json_t* rootJ;
  217. // core
  218. StaticPluginLoader(Plugin* const p)
  219. : plugin(p),
  220. file(nullptr),
  221. rootJ(nullptr)
  222. {
  223. p->path = system::join(CARDINAL_PLUGINS_DIR, "Core.json");
  224. if ((file = std::fopen(p->path.c_str(), "r")) == nullptr)
  225. {
  226. d_stderr2("Manifest file %s does not exist", p->path.c_str());
  227. return;
  228. }
  229. json_error_t error;
  230. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  231. {
  232. d_stderr2("JSON parsing error at %s %d:%d %s", p->path.c_str(), error.line, error.column, error.text);
  233. return;
  234. }
  235. // force ABI, we use static plugins so this doesnt matter as long as it builds
  236. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  237. json_object_set(rootJ, "version", version);
  238. json_decref(version);
  239. }
  240. // regular plugins
  241. StaticPluginLoader(Plugin* const p, const char* const name)
  242. : plugin(p),
  243. file(nullptr),
  244. rootJ(nullptr)
  245. {
  246. p->path = system::join(CARDINAL_PLUGINS_DIR, name);
  247. const std::string manifestFilename = system::join(p->path, "plugin.json");
  248. if ((file = std::fopen(manifestFilename.c_str(), "r")) == nullptr)
  249. {
  250. d_stderr2("Manifest file %s does not exist", manifestFilename.c_str());
  251. return;
  252. }
  253. json_error_t error;
  254. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  255. {
  256. d_stderr2("JSON parsing error at %s %d:%d %s", manifestFilename.c_str(), error.line, error.column, error.text);
  257. return;
  258. }
  259. // force ABI, we use static plugins so this doesnt matter as long as it builds
  260. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  261. json_object_set(rootJ, "version", version);
  262. json_decref(version);
  263. }
  264. ~StaticPluginLoader()
  265. {
  266. if (rootJ != nullptr)
  267. {
  268. plugin->fromJson(rootJ);
  269. json_decref(rootJ);
  270. plugins.push_back(plugin);
  271. }
  272. if (file != nullptr)
  273. std::fclose(file);
  274. }
  275. bool ok() const noexcept
  276. {
  277. return rootJ != nullptr;
  278. }
  279. };
  280. static void initStatic__Core()
  281. {
  282. Plugin* const p = new Plugin;
  283. const StaticPluginLoader spl(p);
  284. if (spl.ok())
  285. {
  286. p->addModel(rack::core::modelAudioInterface);
  287. p->addModel(rack::core::modelAudioInterface2);
  288. p->addModel(rack::core::modelAudioInterface16);
  289. p->addModel(rack::core::modelMIDI_CV);
  290. p->addModel(rack::core::modelMIDI_CC);
  291. p->addModel(rack::core::modelMIDI_Gate);
  292. p->addModel(rack::core::modelMIDI_Map);
  293. p->addModel(rack::core::modelCV_MIDI);
  294. p->addModel(rack::core::modelCV_CC);
  295. p->addModel(rack::core::modelCV_Gate);
  296. p->addModel(rack::core::modelBlank);
  297. p->addModel(rack::core::modelNotes);
  298. }
  299. }
  300. static void initStatic__AnimatedCircuits()
  301. {
  302. Plugin* const p = new Plugin;
  303. pluginInstance__AnimatedCircuits = p;
  304. const StaticPluginLoader spl(p, "AnimatedCircuits");
  305. if (spl.ok())
  306. {
  307. p->addModel(model_AC_Folding);
  308. }
  309. }
  310. static void initStatic__AS()
  311. {
  312. Plugin* const p = new Plugin;
  313. pluginInstance__AS = p;
  314. const StaticPluginLoader spl(p, "AS");
  315. if (spl.ok())
  316. {
  317. #define modelADSR modelASADSR
  318. #define modelVCA modelASVCA
  319. //OSCILLATORS
  320. p->addModel(modelSineOsc);
  321. p->addModel(modelSawOsc);
  322. //TOOLS
  323. p->addModel(modelADSR);
  324. p->addModel(modelVCA);
  325. p->addModel(modelQuadVCA);
  326. p->addModel(modelTriLFO);
  327. p->addModel(modelAtNuVrTr);
  328. p->addModel(modelBPMClock);
  329. p->addModel(modelSEQ16);
  330. p->addModel(modelMixer2ch);
  331. p->addModel(modelMixer4ch);
  332. p->addModel(modelMixer8ch);
  333. p->addModel(modelMonoVUmeter);
  334. p->addModel(modelStereoVUmeter);
  335. p->addModel(modelMultiple2_5);
  336. p->addModel(modelMerge2_5);
  337. p->addModel(modelSteps);
  338. p->addModel(modelLaunchGate);
  339. p->addModel(modelKillGate);
  340. p->addModel(modelFlow);
  341. p->addModel(modelSignalDelay);
  342. p->addModel(modelTriggersMKI);
  343. p->addModel(modelTriggersMKII);
  344. p->addModel(modelTriggersMKIII);
  345. p->addModel(modelBPMCalc);
  346. p->addModel(modelBPMCalc2);
  347. p->addModel(modelCv2T);
  348. p->addModel(modelZeroCV2T);
  349. p->addModel(modelReScale);
  350. //EFFECTS
  351. p->addModel(modelDelayPlusFx);
  352. p->addModel(modelDelayPlusStereoFx);
  353. p->addModel(modelPhaserFx);
  354. p->addModel(modelReverbFx);
  355. p->addModel(modelReverbStereoFx);
  356. p->addModel(modelSuperDriveFx);
  357. p->addModel(modelSuperDriveStereoFx);
  358. p->addModel(modelTremoloFx);
  359. p->addModel(modelTremoloStereoFx);
  360. p->addModel(modelWaveShaper);
  361. p->addModel(modelWaveShaperStereo);
  362. //BLANK PANELS
  363. p->addModel(modelBlankPanel4);
  364. p->addModel(modelBlankPanel6);
  365. p->addModel(modelBlankPanel8);
  366. p->addModel(modelBlankPanelSpecial);
  367. #undef modelADSR
  368. #undef modelVCA
  369. }
  370. }
  371. static void initStatic__AudibleInstruments()
  372. {
  373. Plugin* const p = new Plugin;
  374. pluginInstance__AudibleInstruments = p;
  375. const StaticPluginLoader spl(p, "AudibleInstruments");
  376. if (spl.ok())
  377. {
  378. p->addModel(modelBraids);
  379. p->addModel(modelPlaits);
  380. p->addModel(modelElements);
  381. p->addModel(modelTides);
  382. p->addModel(modelTides2);
  383. p->addModel(modelClouds);
  384. p->addModel(modelWarps);
  385. p->addModel(modelRings);
  386. p->addModel(modelLinks);
  387. p->addModel(modelKinks);
  388. p->addModel(modelShades);
  389. p->addModel(modelBranches);
  390. p->addModel(modelBlinds);
  391. p->addModel(modelVeils);
  392. p->addModel(modelFrames);
  393. p->addModel(modelMarbles);
  394. p->addModel(modelStages);
  395. p->addModel(modelRipples);
  396. p->addModel(modelShelves);
  397. p->addModel(modelStreams);
  398. }
  399. }
  400. static void initStatic__Befaco()
  401. {
  402. Plugin* const p = new Plugin;
  403. pluginInstance__Befaco = p;
  404. const StaticPluginLoader spl(p, "Befaco");
  405. if (spl.ok())
  406. {
  407. p->addModel(modelEvenVCO);
  408. p->addModel(modelRampage);
  409. p->addModel(modelABC);
  410. p->addModel(modelSpringReverb);
  411. p->addModel(modelMixer);
  412. p->addModel(modelSlewLimiter);
  413. p->addModel(modelDualAtenuverter);
  414. }
  415. }
  416. static void initStatic__Bidoo()
  417. {
  418. Plugin* const p = new Plugin;
  419. pluginInstance__Bidoo = p;
  420. const StaticPluginLoader spl(p, "Bidoo");
  421. if (spl.ok())
  422. {
  423. p->addModel(modelTOCANTE);
  424. p->addModel(modelLATE);
  425. p->addModel(modelDIKTAT);
  426. p->addModel(modelDTROY);
  427. p->addModel(modelBORDL);
  428. p->addModel(modelZOUMAI);
  429. p->addModel(modelMU);
  430. p->addModel(modelCHUTE);
  431. p->addModel(modelLOURDE);
  432. p->addModel(modelACNE);
  433. p->addModel(modelMS);
  434. p->addModel(modelDUKE);
  435. p->addModel(modelMOIRE);
  436. p->addModel(modelPILOT);
  437. p->addModel(modelHUITRE);
  438. p->addModel(modelOUAIVE);
  439. p->addModel(modelPOUPRE);
  440. p->addModel(modelMAGMA);
  441. p->addModel(modelOAI);
  442. p->addModel(modelCANARD);
  443. p->addModel(modelEMILE);
  444. p->addModel(modelFORK);
  445. p->addModel(modelTIARE);
  446. //p->addModel(modelCLACOS);
  447. //p->addModel(modelPENEQUE);
  448. p->addModel(modelLIMONADE);
  449. p->addModel(modelLIMBO);
  450. p->addModel(modelPERCO);
  451. p->addModel(modelBAFIS);
  452. p->addModel(modelFFILTR);
  453. p->addModel(modelBAR);
  454. p->addModel(modelMINIBAR);
  455. p->addModel(modelZINC);
  456. p->addModel(modelFREIN);
  457. p->addModel(modelHCTIP);
  458. //p->addModel(modelCURT);
  459. p->addModel(modelDFUZE);
  460. p->addModel(modelREI);
  461. p->addModel(modelRABBIT);
  462. p->addModel(modelBISTROT);
  463. p->addModel(modelSIGMA);
  464. p->addModel(modelGARCON);
  465. p->addModel(modelVOID);
  466. // NOTE disabled in Cardinal due to curl usage
  467. // p->addModel(modelANTN);
  468. // intentionally remove known bad plugin
  469. if (json_t* const modules = json_object_get(spl.rootJ, "modules"))
  470. {
  471. size_t i;
  472. json_t* v;
  473. json_array_foreach(modules, i, v)
  474. {
  475. if (json_t* const slug = json_object_get(v, "slug"))
  476. {
  477. if (const char* const value = json_string_value(slug))
  478. {
  479. if (std::strcmp(value, "antN") == 0)
  480. {
  481. json_array_remove(modules, i);
  482. break;
  483. }
  484. }
  485. }
  486. }
  487. }
  488. }
  489. }
  490. static void initStatic__BogaudioModules()
  491. {
  492. Plugin* const p = new Plugin;
  493. pluginInstance__BogaudioModules = p;
  494. const StaticPluginLoader spl(p, "BogaudioModules");
  495. if (spl.ok())
  496. {
  497. #define modelADSR modelBogaudioADSR
  498. #define modelLFO modelBogaudioLFO
  499. #define modelNoise modelBogaudioNoise
  500. #define modelVCA modelBogaudioVCA
  501. #define modelVCF modelBogaudioVCF
  502. #define modelVCO modelBogaudioVCO
  503. p->addModel(modelVCO);
  504. p->addModel(modelLVCO);
  505. p->addModel(modelSine);
  506. p->addModel(modelPulse);
  507. p->addModel(modelXCO);
  508. p->addModel(modelAdditator);
  509. p->addModel(modelFMOp);
  510. p->addModel(modelChirp);
  511. p->addModel(modelLFO);
  512. p->addModel(modelLLFO);
  513. p->addModel(modelFourFO);
  514. p->addModel(modelEightFO);
  515. p->addModel(modelVCF);
  516. p->addModel(modelLVCF);
  517. p->addModel(modelFFB);
  518. p->addModel(modelEQ);
  519. p->addModel(modelEQS);
  520. p->addModel(modelLPG);
  521. p->addModel(modelLLPG);
  522. p->addModel(modelMegaGate);
  523. p->addModel(modelPEQ);
  524. p->addModel(modelPEQ6);
  525. p->addModel(modelPEQ6XF);
  526. p->addModel(modelPEQ14);
  527. p->addModel(modelPEQ14XF);
  528. p->addModel(modelDADSRH);
  529. p->addModel(modelDADSRHPlus);
  530. p->addModel(modelShaper);
  531. p->addModel(modelShaperPlus);
  532. p->addModel(modelAD);
  533. p->addModel(modelASR);
  534. p->addModel(modelADSR);
  535. p->addModel(modelVish);
  536. p->addModel(modelFollow);
  537. p->addModel(modelDGate);
  538. p->addModel(modelRGate);
  539. p->addModel(modelEdge);
  540. p->addModel(modelNoise);
  541. p->addModel(modelSampleHold);
  542. p->addModel(modelWalk2);
  543. p->addModel(modelWalk);
  544. p->addModel(modelMix8);
  545. p->addModel(modelMix8x);
  546. p->addModel(modelMix4);
  547. p->addModel(modelMix4x);
  548. p->addModel(modelMix2);
  549. p->addModel(modelMix1);
  550. p->addModel(modelVCM);
  551. p->addModel(modelMute8);
  552. p->addModel(modelPan);
  553. p->addModel(modelXFade);
  554. p->addModel(modelVCA);
  555. p->addModel(modelVCAmp);
  556. p->addModel(modelVelo);
  557. p->addModel(modelUMix);
  558. p->addModel(modelMumix);
  559. p->addModel(modelMatrix81);
  560. p->addModel(modelMatrix18);
  561. p->addModel(modelMatrix44);
  562. p->addModel(modelMatrix44Cvm);
  563. p->addModel(modelMatrix88);
  564. p->addModel(modelMatrix88Cv);
  565. p->addModel(modelMatrix88M);
  566. p->addModel(modelSwitch81);
  567. p->addModel(modelSwitch18);
  568. p->addModel(modelSwitch44);
  569. p->addModel(modelSwitch88);
  570. p->addModel(modelSwitch1616);
  571. p->addModel(modelAMRM);
  572. p->addModel(modelPressor);
  573. p->addModel(modelClpr);
  574. p->addModel(modelLmtr);
  575. p->addModel(modelNsgt);
  576. p->addModel(modelCmpDist);
  577. p->addModel(modelOneEight);
  578. p->addModel(modelEightOne);
  579. p->addModel(modelAddrSeq);
  580. p->addModel(modelAddrSeqX);
  581. p->addModel(modelPgmr);
  582. p->addModel(modelPgmrX);
  583. p->addModel(modelVU);
  584. p->addModel(modelAnalyzer);
  585. p->addModel(modelAnalyzerXL);
  586. p->addModel(modelRanalyzer);
  587. p->addModel(modelDetune);
  588. p->addModel(modelStack);
  589. p->addModel(modelReftone);
  590. p->addModel(modelMono);
  591. p->addModel(modelArp);
  592. p->addModel(modelAssign);
  593. p->addModel(modelUnison);
  594. p->addModel(modelPolyCon8);
  595. p->addModel(modelPolyCon16);
  596. p->addModel(modelPolyOff8);
  597. p->addModel(modelPolyOff16);
  598. p->addModel(modelPolyMult);
  599. p->addModel(modelBool);
  600. p->addModel(modelCmp);
  601. p->addModel(modelCVD);
  602. p->addModel(modelFlipFlop);
  603. p->addModel(modelInv);
  604. p->addModel(modelManual);
  605. p->addModel(modelFourMan);
  606. p->addModel(modelMult);
  607. p->addModel(modelOffset);
  608. p->addModel(modelSlew);
  609. p->addModel(modelSums);
  610. p->addModel(modelSwitch);
  611. p->addModel(modelLgsw);
  612. p->addModel(modelBlank3);
  613. p->addModel(modelBlank6);
  614. #ifdef EXPERIMENTAL
  615. p->addModel(modelLag);
  616. p->addModel(modelPEQ14XR);
  617. p->addModel(modelPEQ14XV);
  618. #endif
  619. #ifdef TEST
  620. p->addModel(modelTest);
  621. p->addModel(modelTest2);
  622. p->addModel(modelTestExpanderBase);
  623. p->addModel(modelTestExpanderExtension);
  624. p->addModel(modelTestGl);
  625. p->addModel(modelTestVCF);
  626. #endif
  627. #undef modelADSR
  628. #undef modelLFO
  629. #undef modelNoise
  630. #undef modelVCA
  631. #undef modelVCF
  632. #undef modelVCO
  633. }
  634. }
  635. static void initStatic__Cardinal()
  636. {
  637. Plugin* const p = new Plugin;
  638. pluginInstance__Cardinal = p;
  639. const StaticPluginLoader spl(p, "Cardinal");
  640. if (spl.ok())
  641. {
  642. // TODO implement these
  643. // p->addModel(modelHostParameters);
  644. // p->addModel(modelHostTime);
  645. }
  646. }
  647. static void initStatic__ESeries()
  648. {
  649. Plugin* const p = new Plugin;
  650. pluginInstance__ESeries = p;
  651. const StaticPluginLoader spl(p, "ESeries");
  652. if (spl.ok())
  653. {
  654. p->addModel(modelE340);
  655. }
  656. }
  657. static void initStatic__Fundamental()
  658. {
  659. Plugin* const p = new Plugin;
  660. pluginInstance__Fundamental = p;
  661. const StaticPluginLoader spl(p, "Fundamental");
  662. if (spl.ok())
  663. {
  664. p->addModel(modelVCO);
  665. p->addModel(modelVCO2);
  666. p->addModel(modelVCF);
  667. p->addModel(modelVCA_1);
  668. p->addModel(modelVCA);
  669. p->addModel(modelLFO);
  670. p->addModel(modelLFO2);
  671. p->addModel(modelDelay);
  672. p->addModel(modelADSR);
  673. p->addModel(modelVCMixer);
  674. p->addModel(model_8vert);
  675. p->addModel(modelUnity);
  676. p->addModel(modelMutes);
  677. p->addModel(modelPulses);
  678. p->addModel(modelScope);
  679. p->addModel(modelSEQ3);
  680. p->addModel(modelSequentialSwitch1);
  681. p->addModel(modelSequentialSwitch2);
  682. p->addModel(modelOctave);
  683. p->addModel(modelQuantizer);
  684. p->addModel(modelSplit);
  685. p->addModel(modelMerge);
  686. p->addModel(modelSum);
  687. p->addModel(modelViz);
  688. p->addModel(modelMidSide);
  689. p->addModel(modelNoise);
  690. p->addModel(modelRandom);
  691. }
  692. }
  693. static void initStatic__GrandeModular()
  694. {
  695. Plugin* const p = new Plugin;
  696. pluginInstance__GrandeModular = p;
  697. const StaticPluginLoader spl(p, "GrandeModular");
  698. if (spl.ok())
  699. {
  700. p->addModel(modelClip);
  701. p->addModel(modelMergeSplit4);
  702. p->addModel(modelMicrotonalChords);
  703. p->addModel(modelMicrotonalNotes);
  704. p->addModel(modelNoteMT);
  705. p->addModel(modelPolyMergeResplit);
  706. p->addModel(modelQuant);
  707. p->addModel(modelQuantIntervals);
  708. p->addModel(modelQuantMT);
  709. p->addModel(modelSampleDelays);
  710. p->addModel(modelScale);
  711. p->addModel(modelTails);
  712. p->addModel(modelVarSampleDelays);
  713. }
  714. }
  715. static void initStatic__JW()
  716. {
  717. Plugin* const p = new Plugin;
  718. pluginInstance__JW = p;
  719. const StaticPluginLoader spl(p, "JW-Modules");
  720. if (spl.ok())
  721. {
  722. p->addModel(modelAdd5);
  723. p->addModel(modelBouncyBalls);
  724. p->addModel(modelCat);
  725. p->addModel(modelTree);
  726. p->addModel(modelFullScope);
  727. p->addModel(modelGridSeq);
  728. p->addModel(modelEightSeq);
  729. p->addModel(modelDivSeq);
  730. p->addModel(modelMinMax);
  731. p->addModel(modelNoteSeq);
  732. p->addModel(modelNoteSeqFu);
  733. p->addModel(modelNoteSeq16);
  734. p->addModel(modelTrigs);
  735. p->addModel(modelOnePattern);
  736. p->addModel(modelPatterns);
  737. p->addModel(modelQuantizer);
  738. p->addModel(modelSimpleClock);
  739. p->addModel(modelStr1ker);
  740. p->addModel(modelD1v1de);
  741. p->addModel(modelPres1t);
  742. p->addModel(modelThingThing);
  743. p->addModel(modelWavHead);
  744. p->addModel(modelXYPad);
  745. p->addModel(modelBlankPanel1hp);
  746. p->addModel(modelBlankPanelSmall);
  747. p->addModel(modelBlankPanelMedium);
  748. p->addModel(modelBlankPanelLarge);
  749. p->addModel(modelCoolBreeze);
  750. p->addModel(modelPete);
  751. }
  752. }
  753. static void initStatic__rackwindows()
  754. {
  755. Plugin* const p = new Plugin;
  756. pluginInstance__rackwindows = p;
  757. const StaticPluginLoader spl(p, "rackwindows");
  758. if (spl.ok())
  759. {
  760. // p->addModel(modelAcceleration);
  761. p->addModel(modelBitshiftgain);
  762. p->addModel(modelCapacitor);
  763. p->addModel(modelCapacitor_stereo);
  764. p->addModel(modelChorus);
  765. p->addModel(modelConsole);
  766. p->addModel(modelConsole_mm);
  767. p->addModel(modelDistance);
  768. p->addModel(modelGolem);
  769. p->addModel(modelHolt);
  770. p->addModel(modelHombre);
  771. p->addModel(modelInterstage);
  772. p->addModel(modelMonitoring);
  773. p->addModel(modelMv);
  774. p->addModel(modelRasp);
  775. p->addModel(modelReseq);
  776. p->addModel(modelTape);
  777. p->addModel(modelTremolo);
  778. p->addModel(modelVibrato);
  779. }
  780. }
  781. /* does not build against v2
  782. static void initStatic__ValleyAudio()
  783. {
  784. Plugin* const p = new Plugin;
  785. pluginInstance__ValleyAudio = p;
  786. const StaticPluginLoader spl(p, "ValleyAudio");
  787. if (spl.ok())
  788. {
  789. p->addModel(modelTopograph);
  790. p->addModel(modelUGraph);
  791. p->addModel(modelDexter);
  792. p->addModel(modelPlateau);
  793. p->addModel(modelInterzone);
  794. p->addModel(modelAmalgam);
  795. p->addModel(modelFeline);
  796. p->addModel(modelTerrorform);
  797. }
  798. }
  799. */
  800. static void initStatic__ZetaCarinaeModules()
  801. {
  802. Plugin* p = new Plugin;
  803. pluginInstance__ZetaCarinaeModules = p;
  804. const StaticPluginLoader spl(p, "ZetaCarinaeModules");
  805. if (spl.ok())
  806. {
  807. p->addModel(modelBrownianBridge);
  808. p->addModel(modelOrnsteinUhlenbeck);
  809. p->addModel(modelIOU);
  810. p->addModel(modelWarbler);
  811. p->addModel(modelRosenchance);
  812. p->addModel(modelGuildensTurn);
  813. p->addModel(modelRosslerRustler);
  814. p->addModel(modelFirefly);
  815. }
  816. }
  817. void initStaticPlugins()
  818. {
  819. initStatic__Core();
  820. initStatic__AnimatedCircuits();
  821. initStatic__AS();
  822. initStatic__AudibleInstruments();
  823. initStatic__Befaco();
  824. initStatic__Bidoo();
  825. initStatic__BogaudioModules();
  826. initStatic__Cardinal();
  827. initStatic__ESeries();
  828. initStatic__Fundamental();
  829. initStatic__GrandeModular();
  830. initStatic__JW();
  831. initStatic__rackwindows();
  832. /* does not build against v2
  833. initStatic__ValleyAudio();
  834. */
  835. initStatic__ZetaCarinaeModules();
  836. }
  837. void destroyStaticPlugins()
  838. {
  839. for (Plugin* p : plugins)
  840. delete p;
  841. plugins.clear();
  842. }
  843. }
  844. }