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.

3841 lines
106KB

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