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.

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