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.

3204 lines
86KB

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