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.

3513 lines
95KB

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