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.

2988 lines
80KB

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