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.

3074 lines
82KB

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