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.

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