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.

3085 lines
83KB

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