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.

2944 lines
78KB

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