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.

2587 lines
69KB

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