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.

3418 lines
93KB

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