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.

2885 lines
77KB

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