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.

3467 lines
94KB

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