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.

3540 lines
96KB

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