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.

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