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.

2313 lines
63KB

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