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.

3647 lines
99KB

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