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.

2856 lines
76KB

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