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.

2627 lines
71KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021-2022 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 "rack.hpp"
  18. #include "plugin.hpp"
  19. #include "DistrhoUtils.hpp"
  20. // Cardinal (built-in)
  21. #include "Cardinal/src/plugin.hpp"
  22. #ifndef NOPLUGINS
  23. // 21kHz
  24. #include "21kHz/src/21kHz.hpp"
  25. // 8Mode
  26. #include "8Mode/src/8mode.hpp"
  27. // Aaron Static
  28. #include "AaronStatic/src/plugin.hpp"
  29. // Algoritmarte
  30. #include "Algoritmarte/src/plugin.hpp"
  31. // AmalgamatedHarmonics
  32. #include "AmalgamatedHarmonics/src/AH.hpp"
  33. // AnimatedCircuits
  34. #include "AnimatedCircuits/src/plugin.hpp"
  35. // Aria
  36. /* NOTE too much noise in original include, do this a different way
  37. // #include "AriaModules/src/plugin.hpp"
  38. */
  39. #define modelBlank modelAriaBlank
  40. extern Model* modelSplort;
  41. extern Model* modelSmerge;
  42. extern Model* modelSpleet;
  43. extern Model* modelSwerge;
  44. extern Model* modelSplirge;
  45. // extern Model* modelSrot;
  46. extern Model* modelQqqq;
  47. extern Model* modelQuack;
  48. extern Model* modelQ;
  49. extern Model* modelQuale;
  50. extern Model* modelDarius;
  51. extern Model* modelSolomon4;
  52. extern Model* modelSolomon8;
  53. extern Model* modelSolomon16;
  54. extern Model* modelPsychopump;
  55. extern Model* modelPokies4;
  56. extern Model* modelGrabby;
  57. extern Model* modelRotatoes4;
  58. extern Model* modelUndular;
  59. extern Model* modelBlank;
  60. #undef modelBlank
  61. // AudibleInstruments
  62. #include "AudibleInstruments/src/plugin.hpp"
  63. // Autinn
  64. /* NOTE too much noise in original include, do this a different way
  65. // #include "Autinn/src/Autinn.hpp"
  66. */
  67. #define modelChord modelAutinnChord
  68. #define modelVibrato modelAutinnVibrato
  69. extern Model* modelJette;
  70. extern Model* modelFlora;
  71. extern Model* modelOxcart;
  72. extern Model* modelDeadband;
  73. extern Model* modelDigi;
  74. extern Model* modelFlopper;
  75. extern Model* modelAmp;
  76. extern Model* modelDC;
  77. extern Model* modelSjip;
  78. extern Model* modelBass;
  79. extern Model* modelSquare;
  80. extern Model* modelSaw;
  81. extern Model* modelBoomerang;
  82. extern Model* modelVibrato;
  83. extern Model* modelVectorDriver; //deprecated
  84. extern Model* modelCVConverter;
  85. extern Model* modelZod;
  86. extern Model* modelTriBand;
  87. extern Model* modelMixer6;
  88. extern Model* modelNon;
  89. extern Model* modelFil;
  90. extern Model* modelNap;
  91. extern Model* modelMelody;
  92. extern Model* modelChord;
  93. #undef modelChord
  94. #undef modelVibrato
  95. // Axioma
  96. #include "Axioma/src/plugin.hpp"
  97. // BaconPlugs
  98. #define INCLUDE_COMPONENTS_HPP
  99. #include "BaconPlugs/src/BaconPlugs.hpp"
  100. #undef INCLUDE_COMPONENTS_HPP
  101. #undef SCREW_WIDTH
  102. #undef RACK_HEIGHT
  103. // Befaco
  104. #define modelADSR modelBefacoADSR
  105. #define modelMixer modelBefacoMixer
  106. #include "Befaco/src/plugin.hpp"
  107. #undef modelADSR
  108. #undef modelMixer
  109. // Bidoo
  110. #include "Bidoo/src/plugin.hpp"
  111. // BogaudioModules - force dark skin as default
  112. #include <mutex>
  113. #include <string>
  114. #include <unordered_map>
  115. #include <unordered_set>
  116. #include <vector>
  117. #define private public
  118. #include "BogaudioModules/src/skins.hpp"
  119. #undef private
  120. // BogaudioModules
  121. #define modelADSR modelBogaudioADSR
  122. #define modelLFO modelBogaudioLFO
  123. #define modelNoise modelBogaudioNoise
  124. #define modelVCA modelBogaudioVCA
  125. #define modelVCF modelBogaudioVCF
  126. #define modelVCO modelBogaudioVCO
  127. extern Model* modelVCO;
  128. extern Model* modelLVCO;
  129. extern Model* modelSine;
  130. extern Model* modelPulse;
  131. extern Model* modelXCO;
  132. extern Model* modelAdditator;
  133. extern Model* modelFMOp;
  134. extern Model* modelChirp;
  135. extern Model* modelLFO;
  136. extern Model* modelLLFO;
  137. extern Model* modelFourFO;
  138. extern Model* modelEightFO;
  139. extern Model* modelVCF;
  140. extern Model* modelLVCF;
  141. extern Model* modelFFB;
  142. extern Model* modelEQ;
  143. extern Model* modelEQS;
  144. extern Model* modelLPG;
  145. extern Model* modelLLPG;
  146. extern Model* modelMegaGate;
  147. extern Model* modelPEQ;
  148. extern Model* modelPEQ6;
  149. extern Model* modelPEQ6XF;
  150. extern Model* modelPEQ14;
  151. extern Model* modelPEQ14XF;
  152. extern Model* modelDADSRH;
  153. extern Model* modelDADSRHPlus;
  154. extern Model* modelShaper;
  155. extern Model* modelShaperPlus;
  156. extern Model* modelAD;
  157. extern Model* modelASR;
  158. extern Model* modelADSR;
  159. extern Model* modelVish;
  160. extern Model* modelFollow;
  161. extern Model* modelDGate;
  162. extern Model* modelRGate;
  163. extern Model* modelEdge;
  164. extern Model* modelNoise;
  165. extern Model* modelSampleHold;
  166. extern Model* modelWalk2;
  167. extern Model* modelWalk;
  168. extern Model* modelMix8;
  169. extern Model* modelMix8x;
  170. extern Model* modelMix4;
  171. extern Model* modelMix4x;
  172. extern Model* modelMix2;
  173. extern Model* modelMix1;
  174. extern Model* modelVCM;
  175. extern Model* modelMute8;
  176. extern Model* modelPan;
  177. extern Model* modelXFade;
  178. extern Model* modelVCA;
  179. extern Model* modelVCAmp;
  180. extern Model* modelVelo;
  181. extern Model* modelUMix;
  182. extern Model* modelMumix;
  183. extern Model* modelMatrix81;
  184. extern Model* modelMatrix18;
  185. extern Model* modelMatrix44;
  186. extern Model* modelMatrix44Cvm;
  187. extern Model* modelMatrix88;
  188. extern Model* modelMatrix88Cv;
  189. extern Model* modelMatrix88M;
  190. extern Model* modelSwitch81;
  191. extern Model* modelSwitch18;
  192. extern Model* modelSwitch44;
  193. extern Model* modelSwitch88;
  194. extern Model* modelSwitch1616;
  195. extern Model* modelAMRM;
  196. extern Model* modelPressor;
  197. extern Model* modelClpr;
  198. extern Model* modelLmtr;
  199. extern Model* modelNsgt;
  200. extern Model* modelCmpDist;
  201. extern Model* modelOneEight;
  202. extern Model* modelEightOne;
  203. extern Model* modelAddrSeq;
  204. extern Model* modelAddrSeqX;
  205. extern Model* modelPgmr;
  206. extern Model* modelPgmrX;
  207. extern Model* modelVU;
  208. extern Model* modelAnalyzer;
  209. extern Model* modelAnalyzerXL;
  210. extern Model* modelRanalyzer;
  211. extern Model* modelDetune;
  212. extern Model* modelStack;
  213. extern Model* modelReftone;
  214. extern Model* modelMono;
  215. extern Model* modelArp;
  216. extern Model* modelAssign;
  217. extern Model* modelUnison;
  218. extern Model* modelPolyCon8;
  219. extern Model* modelPolyCon16;
  220. extern Model* modelPolyOff8;
  221. extern Model* modelPolyOff16;
  222. extern Model* modelPolyMult;
  223. extern Model* modelBool;
  224. extern Model* modelCmp;
  225. extern Model* modelCVD;
  226. extern Model* modelFlipFlop;
  227. extern Model* modelInv;
  228. extern Model* modelManual;
  229. extern Model* modelFourMan;
  230. extern Model* modelMult;
  231. extern Model* modelOffset;
  232. extern Model* modelSlew;
  233. extern Model* modelSums;
  234. extern Model* modelSwitch;
  235. extern Model* modelLgsw;
  236. extern Model* modelBlank3;
  237. extern Model* modelBlank6;
  238. #ifdef EXPERIMENTAL
  239. extern Model* modelLag;
  240. extern Model* modelPEQ14XR;
  241. extern Model* modelPEQ14XV;
  242. #endif
  243. #ifdef TEST
  244. extern Model* modelTest;
  245. extern Model* modelTest2;
  246. extern Model* modelTestExpanderBase;
  247. extern Model* modelTestExpanderExtension;
  248. extern Model* modelTestGl;
  249. extern Model* modelTestVCF;
  250. #endif
  251. #undef modelADSR
  252. #undef modelLFO
  253. #undef modelNoise
  254. #undef modelVCA
  255. #undef modelVCF
  256. #undef modelVCO
  257. // CatroModulo
  258. #include "CatroModulo/src/CatroModulo.hpp"
  259. // cf
  260. #include "cf/src/plugin.hpp"
  261. // ChowDSP
  262. #include "ChowDSP/src/plugin.hpp"
  263. #define init initChowDSP
  264. #include "ChowDSP/src/plugin.cpp"
  265. #undef init
  266. // Dintree
  267. #include "Dintree/src/plugin.hpp"
  268. // DrumKit
  269. #include "DrumKit/src/DrumKit.hpp"
  270. void setupSamples();
  271. // ESeries
  272. #include "ESeries/src/plugin.hpp"
  273. // ExpertSleepers-Encoders
  274. #include "ExpertSleepers-Encoders/src/Encoders.hpp"
  275. // Extratone
  276. #include "Extratone/src/plugin.hpp"
  277. // FehlerFabrik
  278. #include "FehlerFabrik/src/plugin.hpp"
  279. // Fundamental
  280. #ifdef WITH_FUNDAMENTAL
  281. #include "Fundamental/src/plugin.hpp"
  282. #endif
  283. // GlueTheGiant
  284. #include "GlueTheGiant/src/plugin.hpp"
  285. bool audition_mixer = false;
  286. bool audition_depot = false;
  287. int gtg_default_theme = 1;
  288. int loadGtgPluginDefault(const char*, int) { return 1; }
  289. void saveGtgPluginDefault(const char*, int) {}
  290. // GoodSheperd
  291. #include "GoodSheperd/src/plugin.hpp"
  292. // GrandeModular
  293. #include "GrandeModular/src/plugin.hpp"
  294. // Hampton Harmonics
  295. #define modelArp modelHamptonHarmonicsArp
  296. #define modelProgress modelHamptonHarmonicsProgress
  297. #include "HamptonHarmonics/src/plugin.hpp"
  298. #undef modelProgress
  299. #undef modelArp
  300. // HetrickCV
  301. #define modelASR modelHetrickCVASR
  302. #define modelBlankPanel modelHetrickCVBlankPanel
  303. #define modelFlipFlop modelHetrickCVFlipFlop
  304. #define modelMidSide modelHetrickCVMidSide
  305. #define modelMinMax modelHetrickCVMinMax
  306. extern Model* modelTwoToFour;
  307. extern Model* modelAnalogToDigital;
  308. extern Model* modelASR;
  309. extern Model* modelBinaryGate;
  310. extern Model* modelBinaryNoise;
  311. extern Model* modelBitshift;
  312. extern Model* modelBlankPanel;
  313. extern Model* modelBoolean3;
  314. extern Model* modelChaos1Op;
  315. extern Model* modelChaos2Op;
  316. extern Model* modelChaos3Op;
  317. extern Model* modelChaoticAttractors;
  318. extern Model* modelClockedNoise;
  319. extern Model* modelComparator;
  320. extern Model* modelContrast;
  321. extern Model* modelCrackle;
  322. extern Model* modelDataCompander;
  323. extern Model* modelDelta;
  324. extern Model* modelDigitalToAnalog;
  325. extern Model* modelDust;
  326. extern Model* modelExponent;
  327. extern Model* modelFBSineChaos;
  328. extern Model* modelFlipFlop;
  329. extern Model* modelFlipPan;
  330. extern Model* modelGateJunction;
  331. extern Model* modelGingerbread;
  332. extern Model* modelLogicCombine;
  333. extern Model* modelMidSide;
  334. extern Model* modelMinMax;
  335. extern Model* modelRandomGates;
  336. extern Model* modelRotator;
  337. extern Model* modelRungler;
  338. extern Model* modelScanner;
  339. extern Model* modelWaveshape;
  340. extern Model* modelXYToPolar;
  341. #undef modelASR
  342. #undef modelBlankPanel
  343. #undef modelFlipFlop
  344. #undef modelMidSide
  345. #undef modelMinMax
  346. // ImpromptuModular
  347. /* NOTE too much noise in original include, do this a different way
  348. // #include "ImpromptuModular/src/ImpromptuModular.hpp"
  349. */
  350. extern Model* modelAdaptiveQuantizer;
  351. extern Model* modelBigButtonSeq;
  352. extern Model* modelBigButtonSeq2;
  353. extern Model* modelChordKey;
  354. extern Model* modelChordKeyExpander;
  355. extern Model* modelClocked;
  356. extern Model* modelClockedExpander;
  357. extern Model* modelClkd;
  358. extern Model* modelCvPad;
  359. extern Model* modelFoundry;
  360. extern Model* modelFoundryExpander;
  361. extern Model* modelFourView;
  362. extern Model* modelGateSeq64;
  363. extern Model* modelGateSeq64Expander;
  364. extern Model* modelHotkey;
  365. extern Model* modelPart;
  366. extern Model* modelPhraseSeq16;
  367. extern Model* modelPhraseSeq32;
  368. extern Model* modelPhraseSeqExpander;
  369. extern Model* modelProbKey;
  370. // extern Model* modelProbKeyExpander;
  371. extern Model* modelSemiModularSynth;
  372. extern Model* modelTact;
  373. extern Model* modelTact1;
  374. extern Model* modelTactG;
  375. extern Model* modelTwelveKey;
  376. extern Model* modelWriteSeq32;
  377. extern Model* modelWriteSeq64;
  378. extern Model* modelBlankPanel;
  379. // ihtsyn
  380. #include "ihtsyn/src/plugin.hpp"
  381. // JW-Modules
  382. #define modelQuantizer modelJWQuantizer
  383. #include "JW-Modules/src/JWModules.hpp"
  384. #undef modelQuantizer
  385. // kocmoc
  386. #include "kocmoc/src/plugin.hpp"
  387. // LifeFormModular
  388. /* NOTE too much noise in original include, do this a different way
  389. // #include "LifeFormModular/src/plugin.hpp"
  390. */
  391. extern Model* modelTimeDiktat;
  392. extern Model* modelSequenceModeler;
  393. extern Model* modelPitchDiktat;
  394. extern Model* modelPitchIntegrator;
  395. extern Model* modelBurstIntegrator;
  396. extern Model* modelQuadModulator;
  397. extern Model* modelImpulseControl;
  398. extern Model* modelQuadSteppedOffset;
  399. extern Model* modelPercussiveVibration;
  400. extern Model* modelQuadUtility;
  401. extern Model* modelAdditiveVibration;
  402. extern Model* modelComplexOsc;
  403. extern Model* modelDriftgen;
  404. // LittleUtils
  405. #include "LittleUtils/src/plugin.hpp"
  406. // Lilac Loop
  407. /* NOTE too much noise in original include, do this a different way
  408. // #include "LilacLoop/src/plugin.hpp"
  409. */
  410. extern Model* modelLooperOne;
  411. extern Model* modelLooperTwo;
  412. // LomasModules
  413. #include "LomasModules/src/plugin.hpp"
  414. #undef DR_WAV_IMPLEMENTATION
  415. // LyraeModules
  416. /* NOTE too much noise in original include, do this a different way
  417. // #include "LyraeModules/src/plugin.hpp"
  418. */
  419. #define modelDelta modelLyraeDelta
  420. extern Model* modelSulafat;
  421. extern Model* modelGamma;
  422. extern Model* modelDelta;
  423. extern Model* modelVega;
  424. extern Model* modelBD383238;
  425. extern Model* modelZeta;
  426. #undef modelDelta
  427. // MindMeldModular
  428. /* NOTE too much noise in original include, do this a different way
  429. // #include "MindMeldModular/src/MindMeldModular.hpp"
  430. */
  431. extern Model* modelMixMasterJr;
  432. extern Model* modelAuxExpanderJr;
  433. extern Model* modelMixMaster;
  434. extern Model* modelAuxExpander;
  435. extern Model* modelMeld;
  436. extern Model* modelUnmeld;
  437. extern Model* modelMSMelder;
  438. extern Model* modelEqMaster;
  439. extern Model* modelEqExpander;
  440. extern Model* modelBassMaster;
  441. extern Model* modelBassMasterJr;
  442. extern Model* modelShapeMaster;
  443. // ML_modules
  444. /* NOTE too much noise in original include, do this a different way
  445. // #include "ML_modules/src/ML_modules.hpp"
  446. */
  447. #define modelQuantizer modelMLQuantizer
  448. #define modelSH8 modelMLSH8
  449. extern Model* modelQuantizer;
  450. extern Model* modelQuantum;
  451. extern Model* modelTrigBuf;
  452. extern Model* modelSeqSwitch;
  453. extern Model* modelSeqSwitch2;
  454. extern Model* modelShiftRegister;
  455. extern Model* modelShiftRegister2;
  456. extern Model* modelFreeVerb;
  457. extern Model* modelSum8;
  458. extern Model* modelSum8mk2;
  459. extern Model* modelSum8mk3;
  460. extern Model* modelSH8;
  461. extern Model* modelConstants;
  462. extern Model* modelCounter;
  463. extern Model* modelTrigDelay;
  464. extern Model* modelBPMdetect;
  465. extern Model* modelVoltMeter;
  466. extern Model* modelOctaFlop;
  467. extern Model* modelOctaTrig;
  468. extern Model* modelOctaSwitch;
  469. extern Model* modelTrigSwitch;
  470. extern Model* modelTrigSwitch2;
  471. extern Model* modelTrigSwitch3;
  472. extern Model* modelTrigSwitch3_2;
  473. extern Model* modelOctaPlus;
  474. extern Model* modelOctaTimes;
  475. extern Model* modelCloner;
  476. extern Model* modelPolySplitter;
  477. extern Model* modelArpeggiator;
  478. #undef modelQuantizer
  479. #undef modelSH8
  480. // MockbaModular
  481. #define modelBlank modelMockbaModularBlank
  482. #define modelComparator modelMockbaModularComparator
  483. #include "MockbaModular/src/plugin.hpp"
  484. #undef modelBlank
  485. #undef modelComparator
  486. #include "MockbaModular/src/MockbaModular.hpp"
  487. #undef min
  488. #define saveBack ignoreMockbaModular1
  489. #define loadBack ignoreMockbaModular2
  490. #include "MockbaModular/src/MockbaModular.cpp"
  491. #undef saveBack
  492. #undef loadBack
  493. std::string loadBack(int) { return "res/Empty_gray.svg"; }
  494. // Mog
  495. #include "Mog/src/plugin.hpp"
  496. // mscHack
  497. /* NOTE too much noise in original include, do this a different way
  498. // #include "mscHack/src/mscHack.hpp"
  499. */
  500. extern Model* modelCompressor;
  501. extern Model* modelSynthDrums;
  502. extern Model* modelSEQ_6x32x16;
  503. extern Model* modelMasterClockx8;
  504. extern Model* modelMasterClockx4;
  505. extern Model* modelSEQ_Envelope_8;
  506. extern Model* modelSeq_Triad2;
  507. extern Model* modelARP700;
  508. extern Model* modelMix_24_4_4;
  509. extern Model* modelMix_16_4_4;
  510. extern Model* modelMix_9_3_4;
  511. extern Model* modelMix_4_0_4;
  512. extern Model* modelASAF8;
  513. extern Model* modelPingPong;
  514. extern Model* modelStepDelay;
  515. extern Model* modelOsc_3Ch;
  516. extern Model* modelDronez;
  517. extern Model* modelMorze;
  518. extern Model* modelWindz;
  519. extern Model* modelLorenz;
  520. extern Model* modelAlienz;
  521. extern Model* modelOSC_WaveMorph_3;
  522. extern Model* modelMaude_221;
  523. // MSM
  524. /* NOTE too much noise in original include, do this a different way
  525. // #include "MSM/src/MSM.hpp"
  526. */
  527. #define modelADSR modelMSMADSR
  528. #define modelBlankPanel modelMSMBlankPanel
  529. #define modelDelay modelMSMDelay
  530. #define modelLFO modelMSMLFO
  531. #define modelMult modelMSMMult
  532. #define modelNoise modelMSMNoise
  533. #define modelVCA modelMSMVCA
  534. #define modelVCO modelMSMVCO
  535. extern Model* modelVCO;
  536. extern Model* modelBVCO;
  537. extern Model* modelExperimentalVCO;
  538. extern Model* modelNoise;
  539. extern Model* modelLFO;
  540. extern Model* modelVCA;
  541. extern Model* modelADSR;
  542. extern Model* modelDelay;
  543. extern Model* modelWaveShaper;
  544. extern Model* modelWavefolder;
  545. extern Model* modelBitcrusher;
  546. extern Model* modelPhaserModule;
  547. extern Model* modelMorpher;
  548. extern Model* modelRingMod;
  549. extern Model* modelRandomSource;
  550. extern Model* modelMult;
  551. extern Model* modelCrazyMult;
  552. extern Model* modelFade;
  553. extern Model* modelSimpleSlider;
  554. extern Model* modelxseq;
  555. extern Model* modelBlankPanel;
  556. #undef modelADSR
  557. #undef modelBlankPanel
  558. #undef modelDelay
  559. #undef modelLFO
  560. #undef modelMult
  561. #undef modelNoise
  562. #undef modelVCA
  563. #undef modelVCO
  564. // Orbits
  565. #include "Orbits/src/plugin.hpp"
  566. // Path Set
  567. # include "PathSet/src/plugin.hpp"
  568. // Prism
  569. # include "Prism/src/plugin.hpp"
  570. // rackwindows
  571. #include "rackwindows/src/plugin.hpp"
  572. // repelzen
  573. #define modelBlank modelrepelzenBlank
  574. #define modelMixer modelrepelzenMixer
  575. #define modelWerner modelrepelzenWerner
  576. #define tanh_pade repelzentanh_pade
  577. #include "repelzen/src/repelzen.hpp"
  578. #undef modelBlank
  579. #undef modelMixer
  580. #undef modelWerner
  581. #undef tanh_pade
  582. // sonusmodular
  583. #include "sonusmodular/src/sonusmodular.hpp"
  584. // stocaudio
  585. #include "stocaudio/src/plugin.hpp"
  586. // substation
  587. /* NOTE too much noise in original include, do this a different way
  588. // #include "substation-opensource/src/_plugin.hpp"
  589. */
  590. namespace slime {
  591. namespace plugin {
  592. namespace substation {
  593. extern Model* modelClock;
  594. extern Model* modelPolySequencer;
  595. extern Model* modelSubOscillator;
  596. extern Model* modelMixer;
  597. extern Model* modelFilter;
  598. extern Model* modelEnvelopes;
  599. extern Model* modelQuantizer;
  600. extern Model* modelVCA;
  601. extern Model* modelBlank4;
  602. extern Model* modelBlank7;
  603. extern Model* modelFilterPlus;
  604. }}}
  605. // TheXOR
  606. /* NOTE custom implementation, no header file definition possible to include */
  607. namespace TheXOR {
  608. extern Model* modelKlee;
  609. extern Model* modelkExp;
  610. extern Model* modelM581;
  611. extern Model* modelM581TExp;
  612. extern Model* modelM581CExp;
  613. extern Model* modelM581MExp;
  614. extern Model* modelM581VExp;
  615. extern Model* modelZ8K;
  616. extern Model* modelZ8KVExp;
  617. extern Model* modelZ8KCExp;
  618. extern Model* modelZ8KMExp;
  619. extern Model* modelZ8KTExp;
  620. extern Model* modelZ8KXExp;
  621. extern Model* modelRenato;
  622. extern Model* modelSpiralone;
  623. extern Model* modelBurst;
  624. extern Model* modelUncertain;
  625. extern Model* modelPWMClock;
  626. extern Model* modelQuantizer;
  627. extern Model* modelAttAmp;
  628. extern Model* modelXSwitch;
  629. extern Model* modelBoole;
  630. extern Model* modelMplex;
  631. extern Model* modelDmplex;
  632. extern Model* modelCounter;
  633. extern Model* modelmidyQuant;
  634. extern Model* modelnag;
  635. extern Model* modelempty;
  636. extern Model* modelascii;
  637. extern Model* modelquattro;
  638. extern Model* modelflop;
  639. extern Model* modelo88o;
  640. extern Model* modelvolt;
  641. extern Model* modelNordschleife;
  642. extern Model* modelRR;
  643. extern Model* modelchords;
  644. extern Model* modelc2v;
  645. extern Model* modelc3v;
  646. extern Model* modeldice;
  647. extern Model* modelgate;
  648. extern Model* modelPWC;
  649. extern Model* modelcclk;
  650. }
  651. // ValleyAudio
  652. #include "ValleyAudio/src/Valley.hpp"
  653. // ZetaCarinaeModules
  654. #include "ZetaCarinaeModules/src/plugin.hpp"
  655. // ZZC
  656. #define DISPLAYS_H
  657. #define ZZC_SHARED_H
  658. #define ZZC_WIDGETS_H
  659. #define modelClock modelZZCClock
  660. #include "ZZC/src/ZZC.hpp"
  661. #undef modelClock
  662. #endif // NOPLUGINS
  663. // known terminal modules
  664. std::vector<Model*> hostTerminalModels;
  665. // stuff that reads config files, we dont want that
  666. int loadConsoleType() { return 0; }
  667. int loadDirectOutMode() { return 0; }
  668. void saveConsoleType(int) {}
  669. void saveDarkAsDefault(bool) {}
  670. void saveDirectOutMode(bool) {}
  671. void saveHighQualityAsDefault(bool) {}
  672. // plugin instances
  673. Plugin* pluginInstance__Cardinal;
  674. #ifndef NOPLUGINS
  675. Plugin* pluginInstance__21kHz;
  676. Plugin* pluginInstance__8Mode;
  677. extern Plugin* pluginInstance__AaronStatic;
  678. Plugin* pluginInstance__Algoritmarte;
  679. Plugin* pluginInstance__AmalgamatedHarmonics;
  680. Plugin* pluginInstance__AnimatedCircuits;
  681. Plugin* pluginInstance__Aria;
  682. Plugin* pluginInstance__AudibleInstruments;
  683. extern Plugin* pluginInstance__Autinn;
  684. Plugin* pluginInstance__Axioma;
  685. Plugin* pluginInstance__Bacon;
  686. Plugin* pluginInstance__Befaco;
  687. Plugin* pluginInstance__Bidoo;
  688. Plugin* pluginInstance__BogaudioModules;
  689. Plugin* pluginInstance__CatroModulo;
  690. Plugin* pluginInstance__cf;
  691. Plugin* pluginInstance__ChowDSP;
  692. Plugin* pluginInstance__Dintree;
  693. extern Plugin* pluginInstance__DrumKit;
  694. Plugin* pluginInstance__ESeries;
  695. Plugin* pluginInstance__ExpertSleepersEncoders;
  696. Plugin* pluginInstance__Extratone;
  697. Plugin* pluginInstance__FehlerFabrik;
  698. #ifdef WITH_FUNDAMENTAL
  699. Plugin* pluginInstance__Fundamental;
  700. #endif
  701. Plugin* pluginInstance__GlueTheGiant;
  702. Plugin* pluginInstance__GoodSheperd;
  703. Plugin* pluginInstance__GrandeModular;
  704. Plugin* pluginInstance__HamptonHarmonics;
  705. Plugin* pluginInstance__HetrickCV;
  706. extern Plugin* pluginInstance__ImpromptuModular;
  707. Plugin* pluginInstance__ihtsyn;
  708. Plugin* pluginInstance__JW;
  709. Plugin* pluginInstance__kocmoc;
  710. Plugin* pluginInstance__LifeFormModular;
  711. Plugin* pluginInstance__LilacLoop;
  712. Plugin* pluginInstance__LittleUtils;
  713. Plugin* pluginInstance__Lomas;
  714. Plugin* pluginInstance__Lyrae;
  715. extern Plugin* pluginInstance__MindMeld;
  716. Plugin* pluginInstance__ML;
  717. Plugin* pluginInstance__MockbaModular;
  718. Plugin* pluginInstance__Mog;
  719. extern Plugin* pluginInstance__mscHack;
  720. Plugin* pluginInstance__MSM;
  721. Plugin* pluginInstance__Orbits;
  722. Plugin* pluginInstance__PathSet;
  723. Plugin* pluginInstance__Prism;
  724. Plugin* pluginInstance__rackwindows;
  725. Plugin* pluginInstance__repelzen;
  726. Plugin* pluginInstance__sonusmodular;
  727. Plugin* pluginInstance__stocaudio;
  728. Plugin* pluginInstance__substation;
  729. Plugin* pluginInstance__TheXOR;
  730. Plugin* pluginInstance__ValleyAudio;
  731. Plugin* pluginInstance__ZetaCarinaeModules;
  732. Plugin* pluginInstance__ZZC;
  733. #endif // NOPLUGINS
  734. namespace rack {
  735. namespace asset {
  736. std::string pluginManifest(const std::string& dirname);
  737. std::string pluginPath(const std::string& dirname);
  738. }
  739. namespace plugin {
  740. struct StaticPluginLoader {
  741. Plugin* const plugin;
  742. FILE* file;
  743. json_t* rootJ;
  744. StaticPluginLoader(Plugin* const p, const char* const name)
  745. : plugin(p),
  746. file(nullptr),
  747. rootJ(nullptr)
  748. {
  749. #ifdef DEBUG
  750. DEBUG("Loading plugin module %s", name);
  751. #endif
  752. p->path = asset::pluginPath(name);
  753. const std::string manifestFilename = asset::pluginManifest(name);
  754. if ((file = std::fopen(manifestFilename.c_str(), "r")) == nullptr)
  755. {
  756. d_stderr2("Manifest file %s does not exist", manifestFilename.c_str());
  757. return;
  758. }
  759. json_error_t error;
  760. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  761. {
  762. d_stderr2("JSON parsing error at %s %d:%d %s", manifestFilename.c_str(), error.line, error.column, error.text);
  763. return;
  764. }
  765. // force ABI, we use static plugins so this doesnt matter as long as it builds
  766. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  767. json_object_set(rootJ, "version", version);
  768. json_decref(version);
  769. }
  770. ~StaticPluginLoader()
  771. {
  772. if (rootJ != nullptr)
  773. {
  774. plugin->fromJson(rootJ);
  775. json_decref(rootJ);
  776. plugins.push_back(plugin);
  777. }
  778. if (file != nullptr)
  779. std::fclose(file);
  780. }
  781. bool ok() const noexcept
  782. {
  783. return rootJ != nullptr;
  784. }
  785. void removeModule(const char* const slugToRemove) const noexcept
  786. {
  787. json_t* const modules = json_object_get(rootJ, "modules");
  788. DISTRHO_SAFE_ASSERT_RETURN(modules != nullptr,);
  789. size_t i;
  790. json_t* v;
  791. json_array_foreach(modules, i, v)
  792. {
  793. if (json_t* const slug = json_object_get(v, "slug"))
  794. {
  795. if (const char* const value = json_string_value(slug))
  796. {
  797. if (std::strcmp(value, slugToRemove) == 0)
  798. {
  799. json_array_remove(modules, i);
  800. break;
  801. }
  802. }
  803. }
  804. }
  805. }
  806. };
  807. static void initStatic__Cardinal()
  808. {
  809. Plugin* const p = new Plugin;
  810. pluginInstance__Cardinal = p;
  811. const StaticPluginLoader spl(p, "Cardinal");
  812. if (spl.ok())
  813. {
  814. p->addModel(modelCardinalBlank);
  815. p->addModel(modelExpanderInputMIDI);
  816. p->addModel(modelExpanderOutputMIDI);
  817. p->addModel(modelGlBars);
  818. p->addModel(modelHostAudio2);
  819. p->addModel(modelHostAudio8);
  820. p->addModel(modelHostCV);
  821. p->addModel(modelHostMIDI);
  822. p->addModel(modelHostMIDICC);
  823. p->addModel(modelHostMIDIGate);
  824. p->addModel(modelHostMIDIMap);
  825. p->addModel(modelHostParameters);
  826. p->addModel(modelHostTime);
  827. p->addModel(modelTextEditor);
  828. #ifndef STATIC_BUILD
  829. p->addModel(modelAudioFile);
  830. p->addModel(modelCarla);
  831. p->addModel(modelIldaeil);
  832. #else
  833. spl.removeModule("AudioFile");
  834. spl.removeModule("Carla");
  835. spl.removeModule("Ildaeil");
  836. #endif
  837. #if defined(HAVE_X11) && !defined(HEADLESS) && !defined(STATIC_BUILD)
  838. p->addModel(modelMPV);
  839. #else
  840. spl.removeModule("MPV");
  841. #endif
  842. hostTerminalModels = {
  843. modelHostAudio2,
  844. modelHostAudio8,
  845. modelHostCV,
  846. modelHostMIDI,
  847. modelHostMIDICC,
  848. modelHostMIDIGate,
  849. modelHostMIDIMap,
  850. modelHostParameters,
  851. modelHostTime,
  852. };
  853. }
  854. }
  855. #ifndef NOPLUGINS
  856. static void initStatic__21kHz()
  857. {
  858. Plugin* const p = new Plugin;
  859. pluginInstance__21kHz = p;
  860. const StaticPluginLoader spl(p, "21kHz");
  861. if (spl.ok())
  862. {
  863. p->addModel(modelPalmLoop);
  864. p->addModel(modelD_Inf);
  865. p->addModel(modelTachyonEntangler);
  866. }
  867. }
  868. static void initStatic__8Mode()
  869. {
  870. Plugin* const p = new Plugin;
  871. pluginInstance__8Mode = p;
  872. const StaticPluginLoader spl(p, "8Mode");
  873. if (spl.ok())
  874. {
  875. p->addModel(modelsoftSN);
  876. }
  877. }
  878. static void initStatic__AaronStatic()
  879. {
  880. Plugin* const p = new Plugin;
  881. pluginInstance__AaronStatic = p;
  882. const StaticPluginLoader spl(p, "AaronStatic");
  883. if (spl.ok())
  884. {
  885. p->addModel(modelChordCV);
  886. p->addModel(modelScaleCV);
  887. p->addModel(modelRandomNoteCV);
  888. p->addModel(modelDiatonicCV);
  889. }
  890. }
  891. static void initStatic__Algoritmarte()
  892. {
  893. Plugin* const p = new Plugin;
  894. pluginInstance__Algoritmarte = p;
  895. const StaticPluginLoader spl(p, "Algoritmarte");
  896. if (spl.ok())
  897. {
  898. p->addModel(modelClockkky);
  899. p->addModel(modelPlanetz);
  900. p->addModel(modelMusiFrog);
  901. p->addModel(modelZefiro);
  902. p->addModel(modelHoldMeTight);
  903. p->addModel(modelCyclicCA);
  904. p->addModel(modelMusiMath);
  905. }
  906. }
  907. static void initStatic__AmalgamatedHarmonics()
  908. {
  909. Plugin* const p = new Plugin;
  910. pluginInstance__AmalgamatedHarmonics = p;
  911. const StaticPluginLoader spl(p, "AmalgamatedHarmonics");
  912. if (spl.ok())
  913. {
  914. p->addModel(modelArp31);
  915. p->addModel(modelArp32);
  916. p->addModel(modelBombe);
  917. p->addModel(modelChord);
  918. p->addModel(modelCircle);
  919. p->addModel(modelGalaxy);
  920. p->addModel(modelGenerative);
  921. p->addModel(modelImp);
  922. p->addModel(modelImperfect2);
  923. p->addModel(modelProgress2);
  924. p->addModel(modelRuckus);
  925. p->addModel(modelScaleQuantizer2);
  926. p->addModel(modelSLN);
  927. p->addModel(modelMuxDeMux);
  928. p->addModel(modelPolyProbe);
  929. p->addModel(modelPolyScope);
  930. p->addModel(modelPolyUtils);
  931. p->addModel(modelPolyVolt);
  932. p->addModel(modelScaleQuantizer);
  933. p->addModel(modelArpeggiator2);
  934. p->addModel(modelProgress);
  935. }
  936. }
  937. static void initStatic__AnimatedCircuits()
  938. {
  939. Plugin* const p = new Plugin;
  940. pluginInstance__AnimatedCircuits = p;
  941. const StaticPluginLoader spl(p, "AnimatedCircuits");
  942. if (spl.ok())
  943. {
  944. p->addModel(model_AC_Folding);
  945. p->addModel(model_AC_LFold);
  946. }
  947. }
  948. static void initStatic__Aria()
  949. {
  950. Plugin* const p = new Plugin;
  951. pluginInstance__Aria = p;
  952. const StaticPluginLoader spl(p, "AriaModules");
  953. if (spl.ok())
  954. {
  955. #define modelBlank modelAriaBlank
  956. p->addModel(modelSplort);
  957. p->addModel(modelSmerge);
  958. p->addModel(modelSpleet);
  959. p->addModel(modelSwerge);
  960. p->addModel(modelSplirge);
  961. p->addModel(modelQqqq);
  962. p->addModel(modelQuack);
  963. p->addModel(modelQ);
  964. p->addModel(modelQuale);
  965. p->addModel(modelDarius);
  966. p->addModel(modelSolomon4);
  967. p->addModel(modelSolomon8);
  968. p->addModel(modelSolomon16);
  969. p->addModel(modelPsychopump);
  970. p->addModel(modelPokies4);
  971. p->addModel(modelGrabby);
  972. p->addModel(modelRotatoes4);
  973. p->addModel(modelUndular);
  974. p->addModel(modelBlank);
  975. #undef modelBlank
  976. // NOTE disabled in Cardinal due to online requirement
  977. spl.removeModule("Arcane");
  978. spl.removeModule("Atout");
  979. spl.removeModule("Aleister");
  980. }
  981. }
  982. static void initStatic__AudibleInstruments()
  983. {
  984. Plugin* const p = new Plugin;
  985. pluginInstance__AudibleInstruments = p;
  986. const StaticPluginLoader spl(p, "AudibleInstruments");
  987. if (spl.ok())
  988. {
  989. p->addModel(modelBraids);
  990. p->addModel(modelPlaits);
  991. p->addModel(modelElements);
  992. p->addModel(modelTides);
  993. p->addModel(modelTides2);
  994. p->addModel(modelClouds);
  995. p->addModel(modelWarps);
  996. p->addModel(modelRings);
  997. p->addModel(modelLinks);
  998. p->addModel(modelKinks);
  999. p->addModel(modelShades);
  1000. p->addModel(modelBranches);
  1001. p->addModel(modelBlinds);
  1002. p->addModel(modelVeils);
  1003. p->addModel(modelFrames);
  1004. p->addModel(modelMarbles);
  1005. p->addModel(modelStages);
  1006. p->addModel(modelRipples);
  1007. p->addModel(modelShelves);
  1008. p->addModel(modelStreams);
  1009. }
  1010. }
  1011. static void initStatic__Autinn()
  1012. {
  1013. Plugin* const p = new Plugin;
  1014. pluginInstance__Autinn = p;
  1015. const StaticPluginLoader spl(p, "Autinn");
  1016. if (spl.ok())
  1017. {
  1018. #define modelChord modelAutinnChord
  1019. #define modelVibrato modelAutinnVibrato
  1020. p->addModel(modelAmp);
  1021. p->addModel(modelDeadband);
  1022. p->addModel(modelBass);
  1023. p->addModel(modelCVConverter);
  1024. p->addModel(modelDC);
  1025. p->addModel(modelDigi);
  1026. p->addModel(modelFlopper);
  1027. p->addModel(modelFlora);
  1028. p->addModel(modelJette);
  1029. p->addModel(modelBoomerang);
  1030. p->addModel(modelOxcart);
  1031. p->addModel(modelSaw);
  1032. p->addModel(modelSjip);
  1033. p->addModel(modelSquare);
  1034. p->addModel(modelVibrato);
  1035. p->addModel(modelVectorDriver);
  1036. p->addModel(modelZod);
  1037. p->addModel(modelTriBand);
  1038. p->addModel(modelMixer6);
  1039. p->addModel(modelNon);
  1040. p->addModel(modelFil);
  1041. p->addModel(modelNap);
  1042. p->addModel(modelMelody);
  1043. p->addModel(modelChord);
  1044. #undef modelChord
  1045. #undef modelVibrato
  1046. }
  1047. }
  1048. static void initStatic__Axioma()
  1049. {
  1050. Plugin* const p = new Plugin;
  1051. pluginInstance__Axioma = p;
  1052. const StaticPluginLoader spl(p, "Axioma");
  1053. if (spl.ok())
  1054. {
  1055. p->addModel(modelTheBifurcator);
  1056. p->addModel(modelTesseract);
  1057. p->addModel(modelIkeda);
  1058. p->addModel(modelRhodonea);
  1059. }
  1060. }
  1061. static void initStatic__Bacon()
  1062. {
  1063. Plugin* const p = new Plugin;
  1064. pluginInstance__Bacon = p;
  1065. const StaticPluginLoader spl(p, "BaconPlugs");
  1066. if (spl.ok())
  1067. {
  1068. p->addModel(modelHarMoNee);
  1069. p->addModel(modelGlissinator);
  1070. p->addModel(modelPolyGnome);
  1071. p->addModel(modelQuantEyes);
  1072. p->addModel(modelSampleDelay);
  1073. #ifdef BUILD_SORTACHORUS
  1074. p->addModel(modelSortaChorus);
  1075. #endif
  1076. p->addModel(modelChipNoise);
  1077. p->addModel(modelChipWaves);
  1078. p->addModel(modelChipYourWave);
  1079. p->addModel(modelOpen303);
  1080. #ifdef BUILD_GENERICLSFR
  1081. p->addModel(modelGenericLFSR);
  1082. #endif
  1083. p->addModel(modelKarplusStrongPoly);
  1084. p->addModel(modelALingADing);
  1085. p->addModel(modelBitulator);
  1086. #ifdef BUILD_PHASER
  1087. p->addModel(modelPhaser);
  1088. #endif
  1089. p->addModel(modelPolyGenerator);
  1090. }
  1091. }
  1092. static void initStatic__Befaco()
  1093. {
  1094. Plugin* const p = new Plugin;
  1095. pluginInstance__Befaco = p;
  1096. const StaticPluginLoader spl(p, "Befaco");
  1097. if (spl.ok())
  1098. {
  1099. #define modelADSR modelBefacoADSR
  1100. #define modelMixer modelBefacoMixer
  1101. p->addModel(modelEvenVCO);
  1102. p->addModel(modelRampage);
  1103. p->addModel(modelABC);
  1104. p->addModel(modelSpringReverb);
  1105. p->addModel(modelMixer);
  1106. p->addModel(modelSlewLimiter);
  1107. p->addModel(modelDualAtenuverter);
  1108. p->addModel(modelPercall);
  1109. p->addModel(modelHexmixVCA);
  1110. p->addModel(modelChoppingKinky);
  1111. p->addModel(modelKickall);
  1112. p->addModel(modelSamplingModulator);
  1113. p->addModel(modelMorphader);
  1114. p->addModel(modelADSR);
  1115. p->addModel(modelSTMix);
  1116. p->addModel(modelMuxlicer);
  1117. p->addModel(modelMex);
  1118. #undef modelADSR
  1119. #undef modelMixer
  1120. }
  1121. }
  1122. static void initStatic__Bidoo()
  1123. {
  1124. Plugin* const p = new Plugin;
  1125. pluginInstance__Bidoo = p;
  1126. const StaticPluginLoader spl(p, "Bidoo");
  1127. if (spl.ok())
  1128. {
  1129. p->addModel(modelTOCANTE);
  1130. p->addModel(modelLATE);
  1131. p->addModel(modelDIKTAT);
  1132. p->addModel(modelDTROY);
  1133. p->addModel(modelBORDL);
  1134. p->addModel(modelZOUMAI);
  1135. p->addModel(modelMU);
  1136. p->addModel(modelCHUTE);
  1137. p->addModel(modelLOURDE);
  1138. p->addModel(modelDILEMO);
  1139. p->addModel(modelLAMBDA);
  1140. p->addModel(modelBANCAU);
  1141. p->addModel(modelACNE);
  1142. p->addModel(modelMS);
  1143. p->addModel(modelDUKE);
  1144. p->addModel(modelMOIRE);
  1145. p->addModel(modelPILOT);
  1146. p->addModel(modelHUITRE);
  1147. p->addModel(modelOUAIVE);
  1148. p->addModel(modelEDSAROS);
  1149. p->addModel(modelPOUPRE);
  1150. p->addModel(modelMAGMA);
  1151. p->addModel(modelOAI);
  1152. p->addModel(modelCANARD);
  1153. p->addModel(modelEMILE);
  1154. p->addModel(modelFORK);
  1155. p->addModel(modelTIARE);
  1156. p->addModel(modelLIMONADE);
  1157. p->addModel(modelLIMBO);
  1158. p->addModel(modelPERCO);
  1159. p->addModel(modelBAFIS);
  1160. p->addModel(modelBAR);
  1161. p->addModel(modelMINIBAR);
  1162. p->addModel(modelZINC);
  1163. p->addModel(modelFREIN);
  1164. p->addModel(modelHCTIP);
  1165. p->addModel(modelSPORE);
  1166. p->addModel(modelDFUZE);
  1167. p->addModel(modelREI);
  1168. p->addModel(modelRABBIT);
  1169. p->addModel(modelBISTROT);
  1170. p->addModel(modelSIGMA);
  1171. p->addModel(modelFLAME);
  1172. p->addModel(modelVOID);
  1173. // NOTE disabled in Cardinal due to curl usage
  1174. // p->addModel(modelANTN);
  1175. spl.removeModule("antN");
  1176. }
  1177. }
  1178. static void initStatic__BogaudioModules()
  1179. {
  1180. Plugin* const p = new Plugin;
  1181. pluginInstance__BogaudioModules = p;
  1182. const StaticPluginLoader spl(p, "BogaudioModules");
  1183. if (spl.ok())
  1184. {
  1185. // Make sure to use dark theme as default
  1186. Skins& skins(Skins::skins());
  1187. skins._default = "dark";
  1188. #define modelADSR modelBogaudioADSR
  1189. #define modelLFO modelBogaudioLFO
  1190. #define modelNoise modelBogaudioNoise
  1191. #define modelVCA modelBogaudioVCA
  1192. #define modelVCF modelBogaudioVCF
  1193. #define modelVCO modelBogaudioVCO
  1194. p->addModel(modelVCO);
  1195. p->addModel(modelLVCO);
  1196. p->addModel(modelSine);
  1197. p->addModel(modelPulse);
  1198. p->addModel(modelXCO);
  1199. p->addModel(modelAdditator);
  1200. p->addModel(modelFMOp);
  1201. p->addModel(modelChirp);
  1202. p->addModel(modelLFO);
  1203. p->addModel(modelLLFO);
  1204. p->addModel(modelFourFO);
  1205. p->addModel(modelEightFO);
  1206. p->addModel(modelVCF);
  1207. p->addModel(modelLVCF);
  1208. p->addModel(modelFFB);
  1209. p->addModel(modelEQ);
  1210. p->addModel(modelEQS);
  1211. p->addModel(modelLPG);
  1212. p->addModel(modelLLPG);
  1213. p->addModel(modelMegaGate);
  1214. p->addModel(modelPEQ);
  1215. p->addModel(modelPEQ6);
  1216. p->addModel(modelPEQ6XF);
  1217. p->addModel(modelPEQ14);
  1218. p->addModel(modelPEQ14XF);
  1219. p->addModel(modelDADSRH);
  1220. p->addModel(modelDADSRHPlus);
  1221. p->addModel(modelShaper);
  1222. p->addModel(modelShaperPlus);
  1223. p->addModel(modelAD);
  1224. p->addModel(modelASR);
  1225. p->addModel(modelADSR);
  1226. p->addModel(modelVish);
  1227. p->addModel(modelFollow);
  1228. p->addModel(modelDGate);
  1229. p->addModel(modelRGate);
  1230. p->addModel(modelEdge);
  1231. p->addModel(modelNoise);
  1232. p->addModel(modelSampleHold);
  1233. p->addModel(modelWalk2);
  1234. p->addModel(modelWalk);
  1235. p->addModel(modelMix8);
  1236. p->addModel(modelMix8x);
  1237. p->addModel(modelMix4);
  1238. p->addModel(modelMix4x);
  1239. p->addModel(modelMix2);
  1240. p->addModel(modelMix1);
  1241. p->addModel(modelVCM);
  1242. p->addModel(modelMute8);
  1243. p->addModel(modelPan);
  1244. p->addModel(modelXFade);
  1245. p->addModel(modelVCA);
  1246. p->addModel(modelVCAmp);
  1247. p->addModel(modelVelo);
  1248. p->addModel(modelUMix);
  1249. p->addModel(modelMumix);
  1250. p->addModel(modelMatrix81);
  1251. p->addModel(modelMatrix18);
  1252. p->addModel(modelMatrix44);
  1253. p->addModel(modelMatrix44Cvm);
  1254. p->addModel(modelMatrix88);
  1255. p->addModel(modelMatrix88Cv);
  1256. p->addModel(modelMatrix88M);
  1257. p->addModel(modelSwitch81);
  1258. p->addModel(modelSwitch18);
  1259. p->addModel(modelSwitch44);
  1260. p->addModel(modelSwitch88);
  1261. p->addModel(modelSwitch1616);
  1262. p->addModel(modelAMRM);
  1263. p->addModel(modelPressor);
  1264. p->addModel(modelClpr);
  1265. p->addModel(modelLmtr);
  1266. p->addModel(modelNsgt);
  1267. p->addModel(modelCmpDist);
  1268. p->addModel(modelOneEight);
  1269. p->addModel(modelEightOne);
  1270. p->addModel(modelAddrSeq);
  1271. p->addModel(modelAddrSeqX);
  1272. p->addModel(modelPgmr);
  1273. p->addModel(modelPgmrX);
  1274. p->addModel(modelVU);
  1275. p->addModel(modelAnalyzer);
  1276. p->addModel(modelAnalyzerXL);
  1277. p->addModel(modelRanalyzer);
  1278. p->addModel(modelDetune);
  1279. p->addModel(modelStack);
  1280. p->addModel(modelReftone);
  1281. p->addModel(modelMono);
  1282. p->addModel(modelArp);
  1283. p->addModel(modelAssign);
  1284. p->addModel(modelUnison);
  1285. p->addModel(modelPolyCon8);
  1286. p->addModel(modelPolyCon16);
  1287. p->addModel(modelPolyOff8);
  1288. p->addModel(modelPolyOff16);
  1289. p->addModel(modelPolyMult);
  1290. p->addModel(modelBool);
  1291. p->addModel(modelCmp);
  1292. p->addModel(modelCVD);
  1293. p->addModel(modelFlipFlop);
  1294. p->addModel(modelInv);
  1295. p->addModel(modelManual);
  1296. p->addModel(modelFourMan);
  1297. p->addModel(modelMult);
  1298. p->addModel(modelOffset);
  1299. p->addModel(modelSlew);
  1300. p->addModel(modelSums);
  1301. p->addModel(modelSwitch);
  1302. p->addModel(modelLgsw);
  1303. p->addModel(modelBlank3);
  1304. p->addModel(modelBlank6);
  1305. #ifdef EXPERIMENTAL
  1306. p->addModel(modelLag);
  1307. p->addModel(modelPEQ14XR);
  1308. p->addModel(modelPEQ14XV);
  1309. #endif
  1310. #ifdef TEST
  1311. p->addModel(modelTest);
  1312. p->addModel(modelTest2);
  1313. p->addModel(modelTestExpanderBase);
  1314. p->addModel(modelTestExpanderExtension);
  1315. p->addModel(modelTestGl);
  1316. p->addModel(modelTestVCF);
  1317. #endif
  1318. #undef modelADSR
  1319. #undef modelLFO
  1320. #undef modelNoise
  1321. #undef modelVCA
  1322. #undef modelVCF
  1323. #undef modelVCO
  1324. }
  1325. }
  1326. static void initStatic__CatroModulo()
  1327. {
  1328. Plugin* const p = new Plugin;
  1329. pluginInstance__CatroModulo = p;
  1330. const StaticPluginLoader spl(p, "CatroModulo");
  1331. if (spl.ok())
  1332. {
  1333. p->addModel(modelCM1Module);
  1334. p->addModel(modelCM2Module);
  1335. p->addModel(modelCM3Module);
  1336. p->addModel(modelCM4Module);
  1337. p->addModel(modelCM5Module);
  1338. p->addModel(modelCM6Module);
  1339. p->addModel(modelCM7Module);
  1340. p->addModel(modelCM8Module);
  1341. p->addModel(modelCM9Module);
  1342. p->addModel(modelCM10Module);
  1343. }
  1344. }
  1345. static void initStatic__cf()
  1346. {
  1347. Plugin* const p = new Plugin;
  1348. pluginInstance__cf = p;
  1349. const StaticPluginLoader spl(p, "cf");
  1350. if (spl.ok())
  1351. {
  1352. p->addModel(modelMETRO);
  1353. p->addModel(modelEACH);
  1354. p->addModel(modeltrSEQ);
  1355. p->addModel(modelLEDSEQ);
  1356. p->addModel(modelL3DS3Q);
  1357. p->addModel(modelSLIDERSEQ);
  1358. p->addModel(modelPLAYER);
  1359. p->addModel(modelPLAY);
  1360. p->addModel(modelMONO);
  1361. p->addModel(modelSTEREO);
  1362. p->addModel(modelSUB);
  1363. p->addModel(modelMASTER);
  1364. p->addModel(modelVARIABLE);
  1365. p->addModel(modelALGEBRA);
  1366. p->addModel(modelFUNKTION);
  1367. p->addModel(modelCHOKE);
  1368. p->addModel(modelFOUR);
  1369. p->addModel(modelSTEPS);
  1370. p->addModel(modelPEAK);
  1371. p->addModel(modelCUTS);
  1372. p->addModel(modelBUFFER);
  1373. p->addModel(modelDISTO);
  1374. p->addModel(modelCUBE);
  1375. p->addModel(modelPATCH);
  1376. p->addModel(modelLABEL);
  1377. p->addModel(modelDAVE);
  1378. }
  1379. }
  1380. static void initStatic__ChowDSP()
  1381. {
  1382. Plugin* const p = new Plugin;
  1383. pluginInstance__ChowDSP = p;
  1384. const StaticPluginLoader spl(p, "ChowDSP");
  1385. if (spl.ok())
  1386. {
  1387. p->addModel(modelChowTape);
  1388. p->addModel(modelChowPhaserFeedback);
  1389. p->addModel(modelChowPhaserMod);
  1390. p->addModel(modelChowFDN);
  1391. p->addModel(modelChowRNN);
  1392. p->addModel(modelChowModal);
  1393. p->addModel(modelChowDer);
  1394. p->addModel(modelWarp);
  1395. p->addModel(modelWerner);
  1396. p->addModel(modelChowPulse);
  1397. p->addModel(modelChowTapeCompression);
  1398. p->addModel(modelChowTapeChew);
  1399. p->addModel(modelChowTapeDegrade);
  1400. p->addModel(modelChowTapeLoss);
  1401. p->addModel(modelChowChorus);
  1402. // Credit crashes on save, see https://github.com/DISTRHO/Cardinal/issues/98
  1403. // p->addModel(modelCredit);
  1404. spl.removeModule("Credit");
  1405. }
  1406. }
  1407. static void initStatic__Dintree()
  1408. {
  1409. Plugin* const p = new Plugin;
  1410. pluginInstance__Dintree = p;
  1411. const StaticPluginLoader spl(p, "Dintree");
  1412. if (spl.ok())
  1413. {
  1414. p->addModel(modelV100_Scanner);
  1415. p->addModel(modelV101_Dual_Envelope);
  1416. p->addModel(modelV102_Output_Mixer);
  1417. p->addModel(modelV103_Reverb_Delay);
  1418. p->addModel(modelV104_Four_Vs);
  1419. p->addModel(modelV105_Quad_CV_Proc);
  1420. p->addModel(modelV107_Dual_Slew);
  1421. p->addModel(modelV201_Tri_Comparator);
  1422. p->addModel(modelV218_SH_Clock_Noise);
  1423. }
  1424. }
  1425. static void initStatic__DrumKit()
  1426. {
  1427. Plugin* const p = new Plugin;
  1428. pluginInstance__DrumKit = p;
  1429. const StaticPluginLoader spl(p, "DrumKit");
  1430. if (spl.ok())
  1431. {
  1432. setupSamples();
  1433. p->addModel(modelBD9);
  1434. p->addModel(modelSnare);
  1435. p->addModel(modelClosedHH);
  1436. p->addModel(modelOpenHH);
  1437. p->addModel(modelDMX);
  1438. p->addModel(modelCR78);
  1439. p->addModel(modelSBD);
  1440. p->addModel(modelGnome);
  1441. p->addModel(modelSequencer);
  1442. p->addModel(modelTomi);
  1443. p->addModel(modelBaronial);
  1444. p->addModel(modelMarionette);
  1445. }
  1446. }
  1447. static void initStatic__ESeries()
  1448. {
  1449. Plugin* const p = new Plugin;
  1450. pluginInstance__ESeries = p;
  1451. const StaticPluginLoader spl(p, "ESeries");
  1452. if (spl.ok())
  1453. {
  1454. p->addModel(modelE340);
  1455. }
  1456. }
  1457. static void initStatic__ExpertSleepersEncoders()
  1458. {
  1459. Plugin* const p = new Plugin;
  1460. pluginInstance__ExpertSleepersEncoders = p;
  1461. const StaticPluginLoader spl(p, "ExpertSleepers-Encoders");
  1462. if (spl.ok())
  1463. {
  1464. p->addModel(model8GT);
  1465. p->addModel(model8CV);
  1466. p->addModel(modelES40);
  1467. p->addModel(modelES5);
  1468. p->addModel(modelSMUX);
  1469. p->addModel(modelCalibrator);
  1470. }
  1471. }
  1472. static void initStatic__Extratone()
  1473. {
  1474. Plugin* const p = new Plugin;
  1475. pluginInstance__Extratone = p;
  1476. const StaticPluginLoader spl(p, "Extratone");
  1477. if (spl.ok())
  1478. {
  1479. p->addModel(modelModulo);
  1480. p->addModel(modelMesoglea);
  1481. p->addModel(modelMesoglea2);
  1482. p->addModel(modelOpabinia);
  1483. p->addModel(modelSplitterburst);
  1484. p->addModel(modelPuzzlebox);
  1485. p->addModel(modelDarwinism);
  1486. // p->addModel(modelHalluciMemory);
  1487. p->addModel(modelIchneumonid);
  1488. p->addModel(modelMeganeura);
  1489. p->addModel(modelPureneura);
  1490. p->addModel(modelMesohyl);
  1491. p->addModel(modelXtrtnBlank);
  1492. }
  1493. }
  1494. static void initStatic__FehlerFabrik()
  1495. {
  1496. Plugin* const p = new Plugin;
  1497. pluginInstance__FehlerFabrik = p;
  1498. const StaticPluginLoader spl(p, "FehlerFabrik");
  1499. if (spl.ok())
  1500. {
  1501. p->addModel(modelPSIOP);
  1502. p->addModel(modelPlanck);
  1503. p->addModel(modelLuigi);
  1504. p->addModel(modelAspect);
  1505. p->addModel(modelMonte);
  1506. p->addModel(modelArpanet);
  1507. p->addModel(modelSigma);
  1508. p->addModel(modelFax);
  1509. p->addModel(modelRasoir);
  1510. p->addModel(modelChi);
  1511. p->addModel(modelNova);
  1512. p->addModel(modelLilt);
  1513. p->addModel(modelBotzinger);
  1514. }
  1515. }
  1516. #ifdef WITH_FUNDAMENTAL
  1517. static void initStatic__Fundamental()
  1518. {
  1519. Plugin* const p = new Plugin;
  1520. pluginInstance__Fundamental = p;
  1521. const StaticPluginLoader spl(p, "Fundamental");
  1522. if (spl.ok())
  1523. {
  1524. p->addModel(modelVCO);
  1525. p->addModel(modelVCO2);
  1526. p->addModel(modelVCF);
  1527. p->addModel(modelVCA_1);
  1528. p->addModel(modelVCA);
  1529. p->addModel(modelLFO);
  1530. p->addModel(modelLFO2);
  1531. p->addModel(modelDelay);
  1532. p->addModel(modelADSR);
  1533. p->addModel(modelMixer);
  1534. p->addModel(modelVCMixer);
  1535. p->addModel(model_8vert);
  1536. p->addModel(modelUnity);
  1537. p->addModel(modelMutes);
  1538. p->addModel(modelPulses);
  1539. p->addModel(modelScope);
  1540. p->addModel(modelSEQ3);
  1541. p->addModel(modelSequentialSwitch1);
  1542. p->addModel(modelSequentialSwitch2);
  1543. p->addModel(modelOctave);
  1544. p->addModel(modelQuantizer);
  1545. p->addModel(modelSplit);
  1546. p->addModel(modelMerge);
  1547. p->addModel(modelSum);
  1548. p->addModel(modelViz);
  1549. p->addModel(modelMidSide);
  1550. p->addModel(modelNoise);
  1551. p->addModel(modelRandom);
  1552. // show all plugins, helping those familiar with v1 Rack modules
  1553. if (json_t* const modules = json_object_get(spl.rootJ, "modules"))
  1554. {
  1555. size_t i;
  1556. json_t* v;
  1557. json_array_foreach(modules, i, v)
  1558. {
  1559. json_object_set(v, "hidden", json_false());
  1560. }
  1561. }
  1562. }
  1563. }
  1564. #endif
  1565. static void initStatic__GlueTheGiant()
  1566. {
  1567. Plugin* const p = new Plugin;
  1568. pluginInstance__GlueTheGiant = p;
  1569. const StaticPluginLoader spl(p, "GlueTheGiant");
  1570. if (spl.ok())
  1571. {
  1572. p->addModel(modelGigBus);
  1573. p->addModel(modelMiniBus);
  1574. p->addModel(modelSchoolBus);
  1575. p->addModel(modelMetroCityBus);
  1576. p->addModel(modelBusDepot);
  1577. p->addModel(modelBusRoute);
  1578. p->addModel(modelRoad);
  1579. p->addModel(modelEnterBus);
  1580. p->addModel(modelExitBus);
  1581. }
  1582. }
  1583. static void initStatic__GoodSheperd()
  1584. {
  1585. Plugin* const p = new Plugin;
  1586. pluginInstance__GoodSheperd = p;
  1587. const StaticPluginLoader spl(p, "GoodSheperd");
  1588. if (spl.ok())
  1589. {
  1590. p->addModel(modelHurdle);
  1591. p->addModel(modelSEQ3st);
  1592. p->addModel(modelStable16);
  1593. p->addModel(modelStall);
  1594. p->addModel(modelSwitch1);
  1595. p->addModel(modelSeqtrol);
  1596. }
  1597. }
  1598. static void initStatic__GrandeModular()
  1599. {
  1600. Plugin* const p = new Plugin;
  1601. pluginInstance__GrandeModular = p;
  1602. const StaticPluginLoader spl(p, "GrandeModular");
  1603. if (spl.ok())
  1604. {
  1605. p->addModel(modelClip);
  1606. p->addModel(modelLFO3);
  1607. p->addModel(modelLogic);
  1608. p->addModel(modelMerge8);
  1609. p->addModel(modelMergeSplit4);
  1610. p->addModel(modelMicrotonalChords);
  1611. p->addModel(modelMicrotonalNotes);
  1612. p->addModel(modelNoteMT);
  1613. p->addModel(modelPeak);
  1614. p->addModel(modelPolyMergeResplit);
  1615. p->addModel(modelPolySplit);
  1616. p->addModel(modelQuant);
  1617. p->addModel(modelQuantIntervals);
  1618. p->addModel(modelQuantMT);
  1619. p->addModel(modelSampleDelays);
  1620. p->addModel(modelScale);
  1621. p->addModel(modelSplit8);
  1622. p->addModel(modelTails);
  1623. p->addModel(modelVarSampleDelays);
  1624. p->addModel(modelVCA3);
  1625. }
  1626. }
  1627. static void initStatic__HamptonHarmonics()
  1628. {
  1629. Plugin* const p = new Plugin;
  1630. pluginInstance__HamptonHarmonics = p;
  1631. const StaticPluginLoader spl(p, "HamptonHarmonics");
  1632. if (spl.ok())
  1633. {
  1634. #define modelArp modelHamptonHarmonicsArp
  1635. #define modelProgress modelHamptonHarmonicsProgress
  1636. p->addModel(modelArp);
  1637. p->addModel(modelProgress);
  1638. #undef modelProgress
  1639. #undef modelArp
  1640. }
  1641. }
  1642. static void initStatic__HetrickCV()
  1643. {
  1644. Plugin* const p = new Plugin;
  1645. pluginInstance__HetrickCV = p;
  1646. const StaticPluginLoader spl(p, "HetrickCV");
  1647. if (spl.ok())
  1648. {
  1649. #define modelASR modelHetrickCVASR
  1650. #define modelBlankPanel modelHetrickCVBlankPanel
  1651. #define modelFlipFlop modelHetrickCVFlipFlop
  1652. #define modelMidSide modelHetrickCVMidSide
  1653. #define modelMinMax modelHetrickCVMinMax
  1654. p->addModel(modelTwoToFour);
  1655. p->addModel(modelAnalogToDigital);
  1656. p->addModel(modelASR);
  1657. p->addModel(modelBinaryGate);
  1658. p->addModel(modelBinaryNoise);
  1659. p->addModel(modelBitshift);
  1660. p->addModel(modelBlankPanel);
  1661. p->addModel(modelBoolean3);
  1662. p->addModel(modelChaos1Op);
  1663. p->addModel(modelChaos2Op);
  1664. p->addModel(modelChaos3Op);
  1665. p->addModel(modelChaoticAttractors);
  1666. p->addModel(modelClockedNoise);
  1667. p->addModel(modelComparator);
  1668. p->addModel(modelContrast);
  1669. p->addModel(modelCrackle);
  1670. p->addModel(modelDataCompander);
  1671. p->addModel(modelDelta);
  1672. p->addModel(modelDigitalToAnalog);
  1673. p->addModel(modelDust);
  1674. p->addModel(modelExponent);
  1675. p->addModel(modelFBSineChaos);
  1676. p->addModel(modelFlipFlop);
  1677. p->addModel(modelFlipPan);
  1678. p->addModel(modelGateJunction);
  1679. p->addModel(modelGingerbread);
  1680. p->addModel(modelLogicCombine);
  1681. p->addModel(modelMidSide);
  1682. p->addModel(modelMinMax);
  1683. p->addModel(modelRandomGates);
  1684. p->addModel(modelRotator);
  1685. p->addModel(modelRungler);
  1686. p->addModel(modelScanner);
  1687. p->addModel(modelWaveshape);
  1688. p->addModel(modelXYToPolar);
  1689. #undef modelASR
  1690. #undef modelBlankPanel
  1691. #undef modelFlipFlop
  1692. #undef modelMidSide
  1693. #undef modelMinMax
  1694. }
  1695. }
  1696. static void initStatic__ImpromptuModular()
  1697. {
  1698. Plugin* const p = new Plugin;
  1699. pluginInstance__ImpromptuModular = p;
  1700. const StaticPluginLoader spl(p, "ImpromptuModular");
  1701. if (spl.ok())
  1702. {
  1703. p->addModel(modelAdaptiveQuantizer);
  1704. p->addModel(modelBigButtonSeq);
  1705. p->addModel(modelBigButtonSeq2);
  1706. p->addModel(modelChordKey);
  1707. p->addModel(modelChordKeyExpander);
  1708. p->addModel(modelClocked);
  1709. p->addModel(modelClockedExpander);
  1710. p->addModel(modelClkd);
  1711. p->addModel(modelCvPad);
  1712. p->addModel(modelFoundry);
  1713. p->addModel(modelFoundryExpander);
  1714. p->addModel(modelFourView);
  1715. p->addModel(modelGateSeq64);
  1716. p->addModel(modelGateSeq64Expander);
  1717. p->addModel(modelHotkey);
  1718. p->addModel(modelPart);
  1719. p->addModel(modelPhraseSeq16);
  1720. p->addModel(modelPhraseSeq32);
  1721. p->addModel(modelPhraseSeqExpander);
  1722. p->addModel(modelProbKey);
  1723. // p->addModel(modelProbKeyExpander);
  1724. p->addModel(modelSemiModularSynth);
  1725. p->addModel(modelTact);
  1726. p->addModel(modelTact1);
  1727. p->addModel(modelTactG);
  1728. p->addModel(modelTwelveKey);
  1729. p->addModel(modelWriteSeq32);
  1730. p->addModel(modelWriteSeq64);
  1731. p->addModel(modelBlankPanel);
  1732. }
  1733. }
  1734. static void initStatic__ihtsyn()
  1735. {
  1736. Plugin* const p = new Plugin;
  1737. pluginInstance__ihtsyn = p;
  1738. const StaticPluginLoader spl(p, "ihtsyn");
  1739. if (spl.ok())
  1740. {
  1741. p->addModel(modelPitchMangler);
  1742. p->addModel(modelTwistedVerb);
  1743. p->addModel(modelHiVerb);
  1744. p->addModel(modelMVerb);
  1745. }
  1746. }
  1747. static void initStatic__JW()
  1748. {
  1749. Plugin* const p = new Plugin;
  1750. pluginInstance__JW = p;
  1751. const StaticPluginLoader spl(p, "JW-Modules");
  1752. if (spl.ok())
  1753. {
  1754. #define modelQuantizer modelJWQuantizer
  1755. p->addModel(modelAdd5);
  1756. p->addModel(modelBouncyBalls);
  1757. p->addModel(modelCat);
  1758. p->addModel(modelTree);
  1759. p->addModel(modelFullScope);
  1760. p->addModel(modelGridSeq);
  1761. p->addModel(modelEightSeq);
  1762. p->addModel(modelDivSeq);
  1763. p->addModel(modelMinMax);
  1764. p->addModel(modelNoteSeq);
  1765. p->addModel(modelNoteSeqFu);
  1766. p->addModel(modelNoteSeq16);
  1767. p->addModel(modelTrigs);
  1768. p->addModel(modelOnePattern);
  1769. p->addModel(modelPatterns);
  1770. p->addModel(modelQuantizer);
  1771. p->addModel(modelSimpleClock);
  1772. p->addModel(modelD1v1de);
  1773. p->addModel(modelPres1t);
  1774. p->addModel(modelThingThing);
  1775. p->addModel(modelWavHead);
  1776. p->addModel(modelXYPad);
  1777. p->addModel(modelBlankPanel1hp);
  1778. p->addModel(modelBlankPanelSmall);
  1779. p->addModel(modelBlankPanelMedium);
  1780. p->addModel(modelBlankPanelLarge);
  1781. p->addModel(modelCoolBreeze);
  1782. p->addModel(modelPete);
  1783. #ifndef STATIC_BUILD
  1784. p->addModel(modelStr1ker);
  1785. #else
  1786. spl.removeModule("Str1ker");
  1787. #endif
  1788. #undef modelQuantizer
  1789. }
  1790. }
  1791. static void initStatic__kocmoc()
  1792. {
  1793. Plugin* const p = new Plugin;
  1794. pluginInstance__kocmoc= p;
  1795. const StaticPluginLoader spl(p, "kocmoc");
  1796. if (spl.ok())
  1797. {
  1798. p->addModel(modelSVF_1);
  1799. p->addModel(modelTRG);
  1800. p->addModel(modelLADR);
  1801. p->addModel(modelOP);
  1802. p->addModel(modelPHASR);
  1803. p->addModel(modelMUL);
  1804. p->addModel(modelSKF);
  1805. p->addModel(modelDDLY);
  1806. }
  1807. }
  1808. static void initStatic__LifeFormModular()
  1809. {
  1810. Plugin* const p = new Plugin;
  1811. pluginInstance__LifeFormModular= p;
  1812. const StaticPluginLoader spl(p, "LifeFormModular");
  1813. if (spl.ok())
  1814. {
  1815. p->addModel(modelTimeDiktat);
  1816. p->addModel(modelSequenceModeler);
  1817. p->addModel(modelPitchDiktat);
  1818. p->addModel(modelPitchIntegrator);
  1819. p->addModel(modelBurstIntegrator);
  1820. p->addModel(modelQuadModulator);
  1821. p->addModel(modelImpulseControl);
  1822. p->addModel(modelQuadSteppedOffset);
  1823. p->addModel(modelPercussiveVibration);
  1824. p->addModel(modelQuadUtility);
  1825. p->addModel(modelAdditiveVibration);
  1826. p->addModel(modelComplexOsc);
  1827. p->addModel(modelDriftgen);
  1828. }
  1829. }
  1830. static void initStatic__LilacLoop()
  1831. {
  1832. Plugin* const p = new Plugin;
  1833. pluginInstance__LilacLoop = p;
  1834. const StaticPluginLoader spl(p, "LilacLoop");
  1835. if (spl.ok())
  1836. {
  1837. p->addModel(modelLooperOne);
  1838. }
  1839. }
  1840. static void initStatic__LittleUtils()
  1841. {
  1842. Plugin* const p = new Plugin;
  1843. pluginInstance__LittleUtils = p;
  1844. const StaticPluginLoader spl(p, "LittleUtils");
  1845. if (spl.ok())
  1846. {
  1847. p->addModel(modelButtonModule);
  1848. p->addModel(modelPulseGenerator);
  1849. p->addModel(modelBias_Semitone);
  1850. p->addModel(modelMulDiv);
  1851. p->addModel(modelTeleportInModule);
  1852. p->addModel(modelTeleportOutModule);
  1853. }
  1854. }
  1855. static void initStatic__Lomas()
  1856. {
  1857. Plugin* const p = new Plugin;
  1858. pluginInstance__Lomas = p;
  1859. const StaticPluginLoader spl(p, "LomasModules");
  1860. if (spl.ok())
  1861. {
  1862. p->addModel(modelAdvancedSampler);
  1863. p->addModel(modelGateSequencer);
  1864. }
  1865. }
  1866. static void initStatic__Lyrae()
  1867. {
  1868. Plugin* const p = new Plugin;
  1869. pluginInstance__Lyrae = p;
  1870. const StaticPluginLoader spl(p, "LyraeModules");
  1871. if (spl.ok())
  1872. {
  1873. #define modelDelta modelLyraeDelta
  1874. p->addModel(modelSulafat);
  1875. p->addModel(modelGamma);
  1876. p->addModel(modelDelta);
  1877. p->addModel(modelVega);
  1878. p->addModel(modelBD383238);
  1879. p->addModel(modelZeta);
  1880. #undef modelDelta
  1881. }
  1882. }
  1883. static void initStatic__MindMeld()
  1884. {
  1885. Plugin* const p = new Plugin;
  1886. pluginInstance__MindMeld = p;
  1887. const StaticPluginLoader spl(p, "MindMeldModular");
  1888. if (spl.ok())
  1889. {
  1890. p->addModel(modelMixMasterJr);
  1891. p->addModel(modelAuxExpanderJr);
  1892. p->addModel(modelMixMaster);
  1893. p->addModel(modelAuxExpander);
  1894. p->addModel(modelMeld);
  1895. p->addModel(modelUnmeld);
  1896. p->addModel(modelMSMelder);
  1897. p->addModel(modelEqMaster);
  1898. p->addModel(modelEqExpander);
  1899. p->addModel(modelBassMaster);
  1900. p->addModel(modelBassMasterJr);
  1901. p->addModel(modelShapeMaster);
  1902. }
  1903. }
  1904. static void initStatic__ML()
  1905. {
  1906. Plugin* const p = new Plugin;
  1907. pluginInstance__ML = p;
  1908. const StaticPluginLoader spl(p, "ML_modules");
  1909. if (spl.ok())
  1910. {
  1911. #define modelQuantizer modelMLQuantizer
  1912. #define modelSH8 modelMLSH8
  1913. p->addModel(modelQuantizer);
  1914. p->addModel(modelQuantum);
  1915. p->addModel(modelTrigBuf);
  1916. p->addModel(modelSeqSwitch);
  1917. p->addModel(modelSeqSwitch2);
  1918. p->addModel(modelShiftRegister);
  1919. p->addModel(modelShiftRegister2);
  1920. p->addModel(modelFreeVerb);
  1921. p->addModel(modelSum8);
  1922. p->addModel(modelSum8mk2);
  1923. p->addModel(modelSum8mk3);
  1924. p->addModel(modelSH8);
  1925. p->addModel(modelConstants);
  1926. p->addModel(modelCounter);
  1927. p->addModel(modelTrigDelay);
  1928. p->addModel(modelBPMdetect);
  1929. p->addModel(modelVoltMeter);
  1930. p->addModel(modelOctaFlop);
  1931. p->addModel(modelOctaTrig);
  1932. p->addModel(modelOctaSwitch);
  1933. p->addModel(modelTrigSwitch);
  1934. p->addModel(modelTrigSwitch2);
  1935. p->addModel(modelTrigSwitch3);
  1936. p->addModel(modelTrigSwitch3_2);
  1937. p->addModel(modelOctaPlus);
  1938. p->addModel(modelOctaTimes);
  1939. p->addModel(modelCloner);
  1940. p->addModel(modelPolySplitter);
  1941. p->addModel(modelArpeggiator);
  1942. #undef modelQuantizer
  1943. #undef modelSH8
  1944. }
  1945. }
  1946. static void initStatic__MockbaModular()
  1947. {
  1948. Plugin* const p = new Plugin;
  1949. pluginInstance__MockbaModular = p;
  1950. const StaticPluginLoader spl(p, "MockbaModular");
  1951. if (spl.ok())
  1952. {
  1953. #define modelBlank modelMockbaModularBlank
  1954. #define modelComparator modelMockbaModularComparator
  1955. p->addModel(modelBlank);
  1956. p->addModel(modelFeidah);
  1957. p->addModel(modelFeidahS);
  1958. p->addModel(modelFiltah);
  1959. p->addModel(modelMixah);
  1960. p->addModel(modelMixah3);
  1961. p->addModel(modelDividah);
  1962. p->addModel(modelCountah);
  1963. p->addModel(modelSelectah);
  1964. p->addModel(modelShapah);
  1965. p->addModel(modelHoldah);
  1966. p->addModel(modelPannah);
  1967. p->addModel(modelReVoltah);
  1968. p->addModel(modelCZSaw);
  1969. p->addModel(modelCZSquare);
  1970. p->addModel(modelCZPulse);
  1971. p->addModel(modelCZDblSine);
  1972. p->addModel(modelCZSawPulse);
  1973. p->addModel(modelCZReso1);
  1974. p->addModel(modelCZReso2);
  1975. p->addModel(modelCZReso3);
  1976. p->addModel(modelCZOsc);
  1977. p->addModel(modelMaugTriangle);
  1978. p->addModel(modelMaugShark);
  1979. p->addModel(modelMaugSaw);
  1980. p->addModel(modelMaugSaw2);
  1981. p->addModel(modelMaugSquare);
  1982. p->addModel(modelMaugSquare2);
  1983. p->addModel(modelMaugSquare3);
  1984. p->addModel(modelMaugOsc);
  1985. p->addModel(modelComparator);
  1986. p->addModel(modelDualBUFFER);
  1987. p->addModel(modelDualNOT);
  1988. p->addModel(modelDualOR);
  1989. p->addModel(modelDualNOR);
  1990. p->addModel(modelDualAND);
  1991. p->addModel(modelDualNAND);
  1992. p->addModel(modelDualXOR);
  1993. p->addModel(modelDualXNOR);
  1994. p->addModel(modelPSelectah);
  1995. // require input files to work
  1996. spl.removeModule("UDPClockMaster");
  1997. spl.removeModule("UDPClockSlave");
  1998. #undef modelBlank
  1999. #undef modelComparator
  2000. }
  2001. }
  2002. static void initStatic__Mog()
  2003. {
  2004. Plugin* const p = new Plugin;
  2005. pluginInstance__Mog = p;
  2006. const StaticPluginLoader spl(p, "Mog");
  2007. if (spl.ok())
  2008. {
  2009. p->addModel(modelNetwork);
  2010. p->addModel(modelNexus);
  2011. }
  2012. }
  2013. static void initStatic__mscHack()
  2014. {
  2015. Plugin* const p = new Plugin;
  2016. pluginInstance__mscHack = p;
  2017. const StaticPluginLoader spl(p, "mscHack");
  2018. if (spl.ok())
  2019. {
  2020. p->addModel(modelCompressor);
  2021. p->addModel(modelSynthDrums);
  2022. p->addModel(modelSEQ_6x32x16);
  2023. p->addModel(modelMasterClockx4);
  2024. //p->addModel(modelMasterClockx8);
  2025. p->addModel(modelSEQ_Envelope_8);
  2026. p->addModel(modelSeq_Triad2);
  2027. p->addModel(modelARP700);
  2028. p->addModel(modelMix_4_0_4);
  2029. p->addModel(modelMix_9_3_4);
  2030. p->addModel(modelMix_16_4_4);
  2031. p->addModel(modelMix_24_4_4);
  2032. p->addModel(modelASAF8);
  2033. p->addModel(modelPingPong);
  2034. p->addModel(modelStepDelay);
  2035. p->addModel(modelOsc_3Ch);
  2036. p->addModel(modelDronez);
  2037. p->addModel(modelMorze);
  2038. p->addModel(modelWindz);
  2039. p->addModel(modelLorenz);
  2040. p->addModel(modelAlienz);
  2041. p->addModel(modelOSC_WaveMorph_3);
  2042. p->addModel(modelMaude_221);
  2043. }
  2044. }
  2045. static void initStatic__MSM()
  2046. {
  2047. Plugin* const p = new Plugin;
  2048. pluginInstance__MSM = p;
  2049. const StaticPluginLoader spl(p, "MSM");
  2050. if (spl.ok())
  2051. {
  2052. #define modelADSR modelMSMADSR
  2053. #define modelBlankPanel modelMSMBlankPanel
  2054. #define modelDelay modelMSMDelay
  2055. #define modelLFO modelMSMLFO
  2056. #define modelMult modelMSMMult
  2057. #define modelNoise modelMSMNoise
  2058. #define modelVCA modelMSMVCA
  2059. #define modelVCO modelMSMVCO
  2060. p->addModel(modelVCO);
  2061. p->addModel(modelBVCO);
  2062. p->addModel(modelExperimentalVCO);
  2063. p->addModel(modelNoise);
  2064. p->addModel(modelLFO);
  2065. p->addModel(modelVCA);
  2066. p->addModel(modelADSR);
  2067. p->addModel(modelDelay);
  2068. p->addModel(modelWaveShaper);
  2069. p->addModel(modelWavefolder);
  2070. p->addModel(modelBitcrusher);
  2071. p->addModel(modelPhaserModule);
  2072. p->addModel(modelMorpher);
  2073. p->addModel(modelRingMod);
  2074. p->addModel(modelRandomSource);
  2075. p->addModel(modelMult);
  2076. p->addModel(modelCrazyMult);
  2077. p->addModel(modelFade);
  2078. p->addModel(modelSimpleSlider);
  2079. p->addModel(modelxseq);
  2080. p->addModel(modelBlankPanel);
  2081. #undef modelADSR
  2082. #undef modelBlankPanel
  2083. #undef modelDelay
  2084. #undef modelLFO
  2085. #undef modelMult
  2086. #undef modelNoise
  2087. #undef modelVCA
  2088. #undef modelVCO
  2089. }
  2090. }
  2091. static void initStatic__Orbits()
  2092. {
  2093. Plugin* const p = new Plugin;
  2094. pluginInstance__Orbits = p;
  2095. const StaticPluginLoader spl(p, "Orbits");
  2096. if (spl.ok())
  2097. {
  2098. p->addModel(modelRareBreeds_Orbits_Eugene);
  2099. p->addModel(modelRareBreeds_Orbits_Polygene);
  2100. }
  2101. }
  2102. static void initStatic__PathSet()
  2103. {
  2104. Plugin* const p = new Plugin;
  2105. pluginInstance__PathSet = p;
  2106. const StaticPluginLoader spl(p, "PathSet");
  2107. if (spl.ok())
  2108. {
  2109. p->addModel(modelShiftyMod);
  2110. p->addModel(modelIceTray);
  2111. p->addModel(modelAstroVibe);
  2112. }
  2113. }
  2114. static void initStatic__Prism()
  2115. {
  2116. Plugin* const p = new Plugin;
  2117. pluginInstance__Prism = p;
  2118. const StaticPluginLoader spl(p, "Prism");
  2119. if (spl.ok())
  2120. {
  2121. p->addModel(modelRainbow);
  2122. p->addModel(modelRainbowScaleExpander);
  2123. p->addModel(modelDroplet);
  2124. }
  2125. }
  2126. static void initStatic__rackwindows()
  2127. {
  2128. Plugin* const p = new Plugin;
  2129. pluginInstance__rackwindows = p;
  2130. const StaticPluginLoader spl(p, "rackwindows");
  2131. if (spl.ok())
  2132. {
  2133. // p->addModel(modelAcceleration);
  2134. p->addModel(modelBitshiftgain);
  2135. p->addModel(modelCapacitor);
  2136. p->addModel(modelCapacitor_stereo);
  2137. p->addModel(modelChorus);
  2138. p->addModel(modelConsole);
  2139. p->addModel(modelConsole_mm);
  2140. p->addModel(modelDistance);
  2141. p->addModel(modelGolem);
  2142. p->addModel(modelHolt);
  2143. p->addModel(modelHombre);
  2144. p->addModel(modelInterstage);
  2145. p->addModel(modelMonitoring);
  2146. p->addModel(modelMv);
  2147. p->addModel(modelRasp);
  2148. p->addModel(modelReseq);
  2149. p->addModel(modelTape);
  2150. p->addModel(modelTremolo);
  2151. p->addModel(modelVibrato);
  2152. }
  2153. }
  2154. static void initStatic__repelzen()
  2155. {
  2156. Plugin* const p = new Plugin;
  2157. pluginInstance__repelzen = p;
  2158. const StaticPluginLoader spl(p, "repelzen");
  2159. if (spl.ok())
  2160. {
  2161. #define modelBlank modelrepelzenBlank
  2162. #define modelMixer modelrepelzenMixer
  2163. #define modelWerner modelrepelzenWerner
  2164. p->addModel(modelBlank);
  2165. p->addModel(modelBurst);
  2166. p->addModel(modelFolder);
  2167. p->addModel(modelErwin);
  2168. p->addModel(modelWerner);
  2169. p->addModel(modelMixer);
  2170. #undef modelBlank
  2171. #undef modelMixer
  2172. #undef modelWerner
  2173. }
  2174. }
  2175. static void initStatic__sonusmodular()
  2176. {
  2177. Plugin* const p = new Plugin;
  2178. pluginInstance__sonusmodular = p;
  2179. const StaticPluginLoader spl(p, "sonusmodular");
  2180. if (spl.ok())
  2181. {
  2182. p->addModel(modelAddiction);
  2183. p->addModel(modelBitter);
  2184. p->addModel(modelBymidside);
  2185. p->addModel(modelCampione);
  2186. p->addModel(modelChainsaw);
  2187. p->addModel(modelCtrl);
  2188. p->addModel(modelDeathcrush);
  2189. p->addModel(modelFraction);
  2190. p->addModel(modelHarmony);
  2191. p->addModel(modelLadrone);
  2192. p->addModel(modelLuppolo);
  2193. p->addModel(modelLuppolo3);
  2194. p->addModel(modelMicromacro);
  2195. p->addModel(modelMrcheb);
  2196. p->addModel(modelMultimulti);
  2197. p->addModel(modelNeurosc);
  2198. p->addModel(modelOktagon);
  2199. p->addModel(modelOsculum);
  2200. p->addModel(modelParamath);
  2201. p->addModel(modelPiconoise);
  2202. p->addModel(modelPith);
  2203. p->addModel(modelPusher);
  2204. p->addModel(modelRingo);
  2205. p->addModel(modelScramblase);
  2206. p->addModel(modelTropicana);
  2207. p->addModel(modelTwoff);
  2208. p->addModel(modelYabp);
  2209. }
  2210. }
  2211. static void initStatic__stocaudio()
  2212. {
  2213. Plugin* const p = new Plugin;
  2214. pluginInstance__stocaudio = p;
  2215. const StaticPluginLoader spl(p, "stocaudio");
  2216. if (spl.ok())
  2217. {
  2218. p->addModel(modelPolyturing);
  2219. p->addModel(modelPolydelay);
  2220. p->addModel(modelSpread);
  2221. }
  2222. }
  2223. static void initStatic__substation()
  2224. {
  2225. Plugin* const p = new Plugin;
  2226. pluginInstance__substation = p;
  2227. const StaticPluginLoader spl(p, "substation-opensource");
  2228. if (spl.ok())
  2229. {
  2230. p->addModel(slime::plugin::substation::modelClock);
  2231. p->addModel(slime::plugin::substation::modelEnvelopes);
  2232. p->addModel(slime::plugin::substation::modelFilter);
  2233. p->addModel(slime::plugin::substation::modelMixer);
  2234. p->addModel(slime::plugin::substation::modelQuantizer);
  2235. p->addModel(slime::plugin::substation::modelPolySequencer);
  2236. p->addModel(slime::plugin::substation::modelVCA);
  2237. p->addModel(slime::plugin::substation::modelSubOscillator);
  2238. p->addModel(slime::plugin::substation::modelBlank4);
  2239. p->addModel(slime::plugin::substation::modelBlank7);
  2240. p->addModel(slime::plugin::substation::modelFilterPlus);
  2241. }
  2242. }
  2243. static void initStatic__TheXOR()
  2244. {
  2245. Plugin* const p = new Plugin;
  2246. pluginInstance__TheXOR = p;
  2247. const StaticPluginLoader spl(p, "TheXOR");
  2248. if (spl.ok())
  2249. {
  2250. p->addModel(TheXOR::modelempty);
  2251. p->addModel(TheXOR::modelascii);
  2252. /*
  2253. p->addModel(TheXOR::modelKlee);
  2254. p->addModel(TheXOR::modelkExp);
  2255. p->addModel(TheXOR::modelM581);
  2256. p->addModel(TheXOR::modelM581TExp);
  2257. p->addModel(TheXOR::modelM581CExp);
  2258. p->addModel(TheXOR::modelM581MExp);
  2259. p->addModel(TheXOR::modelM581VExp);
  2260. p->addModel(TheXOR::modelZ8K);
  2261. p->addModel(TheXOR::modelZ8KVExp);
  2262. p->addModel(TheXOR::modelZ8KCExp);
  2263. p->addModel(TheXOR::modelZ8KMExp);
  2264. p->addModel(TheXOR::modelZ8KTExp);
  2265. p->addModel(TheXOR::modelZ8KXExp);
  2266. p->addModel(TheXOR::modelRenato);
  2267. p->addModel(TheXOR::modelSpiralone);
  2268. p->addModel(TheXOR::modelBurst);
  2269. p->addModel(TheXOR::modelUncertain);
  2270. p->addModel(TheXOR::modelPWMClock);
  2271. p->addModel(TheXOR::modelQuantizer);
  2272. p->addModel(TheXOR::modelAttAmp);
  2273. p->addModel(TheXOR::modelXSwitch);
  2274. p->addModel(TheXOR::modelBoole);
  2275. p->addModel(TheXOR::modelMplex);
  2276. p->addModel(TheXOR::modelDmplex);
  2277. p->addModel(TheXOR::modelCounter);
  2278. p->addModel(TheXOR::modelmidyQuant);
  2279. p->addModel(TheXOR::modelnag);
  2280. p->addModel(TheXOR::modelempty);
  2281. p->addModel(TheXOR::modelascii);
  2282. p->addModel(TheXOR::modelquattro);
  2283. p->addModel(TheXOR::modelflop);
  2284. p->addModel(TheXOR::modelo88o);
  2285. p->addModel(TheXOR::modelvolt);
  2286. p->addModel(TheXOR::modelNordschleife);
  2287. p->addModel(TheXOR::modelRR);
  2288. p->addModel(TheXOR::modelchords);
  2289. p->addModel(TheXOR::modelc2v);
  2290. p->addModel(TheXOR::modelc3v);
  2291. p->addModel(TheXOR::modeldice);
  2292. p->addModel(TheXOR::modelgate);
  2293. p->addModel(TheXOR::modelPWC);
  2294. p->addModel(TheXOR::modelcclk);
  2295. */
  2296. // spl.removeModule("Str1ker");
  2297. }
  2298. }
  2299. static void initStatic__ValleyAudio()
  2300. {
  2301. Plugin* const p = new Plugin;
  2302. pluginInstance__ValleyAudio = p;
  2303. const StaticPluginLoader spl(p, "ValleyAudio");
  2304. if (spl.ok())
  2305. {
  2306. p->addModel(modelTopograph);
  2307. p->addModel(modelUGraph);
  2308. p->addModel(modelDexter);
  2309. p->addModel(modelPlateau);
  2310. p->addModel(modelInterzone);
  2311. p->addModel(modelAmalgam);
  2312. p->addModel(modelFeline);
  2313. p->addModel(modelTerrorform);
  2314. }
  2315. }
  2316. static void initStatic__ZetaCarinaeModules()
  2317. {
  2318. Plugin* p = new Plugin;
  2319. pluginInstance__ZetaCarinaeModules = p;
  2320. const StaticPluginLoader spl(p, "ZetaCarinaeModules");
  2321. if (spl.ok())
  2322. {
  2323. p->addModel(modelBrownianBridge);
  2324. p->addModel(modelOrnsteinUhlenbeck);
  2325. p->addModel(modelIOU);
  2326. p->addModel(modelWarbler);
  2327. p->addModel(modelRosenchance);
  2328. p->addModel(modelGuildensTurn);
  2329. p->addModel(modelRosslerRustler);
  2330. p->addModel(modelFirefly);
  2331. }
  2332. }
  2333. static void initStatic__ZZC()
  2334. {
  2335. Plugin* p = new Plugin;
  2336. pluginInstance__ZZC = p;
  2337. const StaticPluginLoader spl(p, "ZZC");
  2338. if (spl.ok())
  2339. {
  2340. #define modelClock modelZZCClock
  2341. p->addModel(modelClock);
  2342. p->addModel(modelDivider);
  2343. p->addModel(modelFN3);
  2344. p->addModel(modelSCVCA);
  2345. p->addModel(modelSH8);
  2346. p->addModel(modelSRC);
  2347. p->addModel(modelDiv);
  2348. p->addModel(modelDivExp);
  2349. p->addModel(modelPolygate);
  2350. #undef modelClock
  2351. }
  2352. }
  2353. #endif // NOPLUGINS
  2354. void initStaticPlugins()
  2355. {
  2356. initStatic__Cardinal();
  2357. #ifndef NOPLUGINS
  2358. initStatic__21kHz();
  2359. initStatic__8Mode();
  2360. initStatic__AaronStatic();
  2361. initStatic__Algoritmarte();
  2362. initStatic__AmalgamatedHarmonics();
  2363. initStatic__AnimatedCircuits();
  2364. initStatic__Aria();
  2365. initStatic__AudibleInstruments();
  2366. initStatic__Autinn();
  2367. initStatic__Axioma();
  2368. initStatic__Bacon();
  2369. initStatic__Befaco();
  2370. initStatic__Bidoo();
  2371. initStatic__BogaudioModules();
  2372. initStatic__CatroModulo();
  2373. initStatic__cf();
  2374. initStatic__ChowDSP();
  2375. initStatic__Dintree();
  2376. initStatic__DrumKit();
  2377. initStatic__ESeries();
  2378. initStatic__ExpertSleepersEncoders();
  2379. initStatic__Extratone();
  2380. initStatic__FehlerFabrik();
  2381. #ifdef WITH_FUNDAMENTAL
  2382. initStatic__Fundamental();
  2383. #endif
  2384. initStatic__GlueTheGiant();
  2385. initStatic__GoodSheperd();
  2386. initStatic__GrandeModular();
  2387. initStatic__HamptonHarmonics();
  2388. initStatic__HetrickCV();
  2389. initStatic__ImpromptuModular();
  2390. initStatic__ihtsyn();
  2391. initStatic__JW();
  2392. initStatic__kocmoc();
  2393. initStatic__LifeFormModular();
  2394. initStatic__LilacLoop();
  2395. initStatic__LittleUtils();
  2396. initStatic__Lomas();
  2397. initStatic__Lyrae();
  2398. initStatic__MindMeld();
  2399. initStatic__ML();
  2400. initStatic__MockbaModular();
  2401. initStatic__Mog();
  2402. initStatic__mscHack();
  2403. initStatic__MSM();
  2404. initStatic__Orbits();
  2405. initStatic__PathSet();
  2406. initStatic__Prism();
  2407. initStatic__rackwindows();
  2408. initStatic__repelzen();
  2409. initStatic__sonusmodular();
  2410. initStatic__stocaudio();
  2411. initStatic__substation();
  2412. initStatic__TheXOR();
  2413. initStatic__ValleyAudio();
  2414. initStatic__ZetaCarinaeModules();
  2415. initStatic__ZZC();
  2416. #endif // NOPLUGINS
  2417. }
  2418. void destroyStaticPlugins()
  2419. {
  2420. for (Plugin* p : plugins)
  2421. delete p;
  2422. plugins.clear();
  2423. }
  2424. }
  2425. }