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.

2549 lines
69KB

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