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.

2627 lines
70KB

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