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.

2605 lines
70KB

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