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.

2408 lines
65KB

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