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.

992 lines
29KB

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