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.

3310 lines
90KB

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