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.

1055 lines
31KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021 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 <plugin.hpp>
  18. #include "DistrhoUtils.hpp"
  19. // AmalgamatedHarmonics
  20. #include "AmalgamatedHarmonics/src/AH.hpp"
  21. // AnimatedCircuits
  22. #include "AnimatedCircuits/src/plugin.hpp"
  23. // AS
  24. #define modelADSR modelASADSR
  25. #define modelVCA modelASVCA
  26. #include "AS/src/AS.hpp"
  27. #undef modelADSR
  28. #undef modelVCA
  29. // AudibleInstruments
  30. #include "AudibleInstruments/src/plugin.hpp"
  31. // Befaco
  32. #include "Befaco/src/plugin.hpp"
  33. // Bidoo
  34. #include "Bidoo/src/plugin.hpp"
  35. // BogaudioModules
  36. #define modelADSR modelBogaudioADSR
  37. #define modelLFO modelBogaudioLFO
  38. #define modelNoise modelBogaudioNoise
  39. #define modelVCA modelBogaudioVCA
  40. #define modelVCF modelBogaudioVCF
  41. #define modelVCO modelBogaudioVCO
  42. #include "BogaudioModules/src/AD.hpp"
  43. #include "BogaudioModules/src/Additator.hpp"
  44. #include "BogaudioModules/src/AddrSeqX.hpp"
  45. #include "BogaudioModules/src/ADSR.hpp"
  46. #include "BogaudioModules/src/AMRM.hpp"
  47. #include "BogaudioModules/src/Analyzer.hpp"
  48. #include "BogaudioModules/src/AnalyzerXL.hpp"
  49. #include "BogaudioModules/src/Assign.hpp"
  50. #include "BogaudioModules/src/ASR.hpp"
  51. #include "BogaudioModules/src/Arp.hpp"
  52. #include "BogaudioModules/src/Blank3.hpp"
  53. #include "BogaudioModules/src/Blank6.hpp"
  54. #include "BogaudioModules/src/Bool.hpp"
  55. #include "BogaudioModules/src/Chirp.hpp"
  56. #include "BogaudioModules/src/Clpr.hpp"
  57. #include "BogaudioModules/src/Cmp.hpp"
  58. #include "BogaudioModules/src/CmpDist.hpp"
  59. #include "BogaudioModules/src/CVD.hpp"
  60. #include "BogaudioModules/src/DADSRH.hpp"
  61. #include "BogaudioModules/src/DADSRHPlus.hpp"
  62. #include "BogaudioModules/src/Detune.hpp"
  63. #include "BogaudioModules/src/DGate.hpp"
  64. #include "BogaudioModules/src/Edge.hpp"
  65. #include "BogaudioModules/src/EightFO.hpp"
  66. #include "BogaudioModules/src/EightOne.hpp"
  67. #include "BogaudioModules/src/EQ.hpp"
  68. #include "BogaudioModules/src/EQS.hpp"
  69. #include "BogaudioModules/src/FFB.hpp"
  70. #include "BogaudioModules/src/FlipFlop.hpp"
  71. #include "BogaudioModules/src/FMOp.hpp"
  72. #include "BogaudioModules/src/Follow.hpp"
  73. #include "BogaudioModules/src/FourFO.hpp"
  74. #include "BogaudioModules/src/FourMan.hpp"
  75. #include "BogaudioModules/src/Inv.hpp"
  76. #include "BogaudioModules/src/LFO.hpp"
  77. #include "BogaudioModules/src/Lgsw.hpp"
  78. #include "BogaudioModules/src/LLFO.hpp"
  79. #include "BogaudioModules/src/LLPG.hpp"
  80. #include "BogaudioModules/src/Lmtr.hpp"
  81. #include "BogaudioModules/src/LPG.hpp"
  82. #include "BogaudioModules/src/LVCF.hpp"
  83. #include "BogaudioModules/src/LVCO.hpp"
  84. #include "BogaudioModules/src/Manual.hpp"
  85. #include "BogaudioModules/src/Matrix18.hpp"
  86. #include "BogaudioModules/src/Matrix44.hpp"
  87. #include "BogaudioModules/src/Matrix81.hpp"
  88. #include "BogaudioModules/src/Matrix88.hpp"
  89. #include "BogaudioModules/src/Matrix88Cv.hpp"
  90. #include "BogaudioModules/src/Matrix88M.hpp"
  91. #include "BogaudioModules/src/MegaGate.hpp"
  92. #include "BogaudioModules/src/Mix1.hpp"
  93. #include "BogaudioModules/src/Mix2.hpp"
  94. #include "BogaudioModules/src/Mix4.hpp"
  95. #include "BogaudioModules/src/Mix4x.hpp"
  96. #include "BogaudioModules/src/Mix8x.hpp"
  97. #include "BogaudioModules/src/Mono.hpp"
  98. #include "BogaudioModules/src/Mult.hpp"
  99. #include "BogaudioModules/src/Mumix.hpp"
  100. #include "BogaudioModules/src/Mute8.hpp"
  101. #include "BogaudioModules/src/Noise.hpp"
  102. #include "BogaudioModules/src/Nsgt.hpp"
  103. #include "BogaudioModules/src/Offset.hpp"
  104. #include "BogaudioModules/src/OneEight.hpp"
  105. #include "BogaudioModules/src/Pan.hpp"
  106. #include "BogaudioModules/src/PEQ.hpp"
  107. #include "BogaudioModules/src/PEQ6.hpp"
  108. #include "BogaudioModules/src/PEQ6XF.hpp"
  109. #include "BogaudioModules/src/PEQ14.hpp"
  110. #include "BogaudioModules/src/PEQ14XF.hpp"
  111. #include "BogaudioModules/src/Pgmr.hpp"
  112. #include "BogaudioModules/src/PgmrX.hpp"
  113. #include "BogaudioModules/src/PolyCon16.hpp"
  114. #include "BogaudioModules/src/PolyCon8.hpp"
  115. #include "BogaudioModules/src/PolyMult.hpp"
  116. #include "BogaudioModules/src/PolyOff16.hpp"
  117. #include "BogaudioModules/src/PolyOff8.hpp"
  118. #include "BogaudioModules/src/Pressor.hpp"
  119. #include "BogaudioModules/src/Pulse.hpp"
  120. #include "BogaudioModules/src/Ranalyzer.hpp"
  121. #include "BogaudioModules/src/Reftone.hpp"
  122. #include "BogaudioModules/src/RGate.hpp"
  123. #include "BogaudioModules/src/SampleHold.hpp"
  124. #include "BogaudioModules/src/Shaper.hpp"
  125. #include "BogaudioModules/src/ShaperPlus.hpp"
  126. #include "BogaudioModules/src/Sine.hpp"
  127. #include "BogaudioModules/src/Slew.hpp"
  128. #include "BogaudioModules/src/Stack.hpp"
  129. #include "BogaudioModules/src/Sums.hpp"
  130. #include "BogaudioModules/src/Switch.hpp"
  131. #include "BogaudioModules/src/Switch1616.hpp"
  132. #include "BogaudioModules/src/Switch18.hpp"
  133. #include "BogaudioModules/src/Switch44.hpp"
  134. #include "BogaudioModules/src/Switch81.hpp"
  135. #include "BogaudioModules/src/Switch88.hpp"
  136. #include "BogaudioModules/src/UMix.hpp"
  137. #include "BogaudioModules/src/Unison.hpp"
  138. #include "BogaudioModules/src/VCA.hpp"
  139. #include "BogaudioModules/src/VCAmp.hpp"
  140. #include "BogaudioModules/src/VCF.hpp"
  141. #include "BogaudioModules/src/VCM.hpp"
  142. #include "BogaudioModules/src/VCO.hpp"
  143. #include "BogaudioModules/src/Velo.hpp"
  144. #include "BogaudioModules/src/Vish.hpp"
  145. #include "BogaudioModules/src/VU.hpp"
  146. #include "BogaudioModules/src/Walk.hpp"
  147. #include "BogaudioModules/src/Walk2.hpp"
  148. #include "BogaudioModules/src/XCO.hpp"
  149. #include "BogaudioModules/src/XFade.hpp"
  150. #undef modelADSR
  151. #undef modelLFO
  152. #undef modelNoise
  153. #undef modelVCA
  154. #undef modelVCF
  155. #undef modelVCO
  156. // Cardinal (built-in)
  157. #include "Cardinal/src/plugin.hpp"
  158. // cf
  159. #include "cf/src/plugin.hpp"
  160. // ESeries
  161. #include "ESeries/src/plugin.hpp"
  162. // Fundamental
  163. #include "Fundamental/src/plugin.hpp"
  164. // GrandeModular
  165. #include "GrandeModular/src/plugin.hpp"
  166. // ImpromptuModular
  167. /* NOTE too much noise in original include, do this a different way
  168. // #include "ImpromptuModular/src/ImpromptuModular.hpp"
  169. */
  170. extern Model *modelBigButtonSeq;
  171. extern Model *modelBigButtonSeq2;
  172. extern Model *modelChordKey;
  173. extern Model *modelChordKeyExpander;
  174. extern Model *modelClocked;
  175. extern Model *modelClockedExpander;
  176. extern Model *modelClkd;
  177. extern Model *modelCvPad;
  178. extern Model *modelFoundry;
  179. extern Model *modelFoundryExpander;
  180. extern Model *modelFourView;
  181. extern Model *modelGateSeq64;
  182. extern Model *modelGateSeq64Expander;
  183. extern Model *modelHotkey;
  184. extern Model *modelPart;
  185. extern Model *modelPhraseSeq16;
  186. extern Model *modelPhraseSeq32;
  187. extern Model *modelPhraseSeqExpander;
  188. extern Model *modelProbKey;
  189. // extern Model *modelProbKeyExpander;
  190. extern Model *modelSemiModularSynth;
  191. extern Model *modelTact;
  192. extern Model *modelTact1;
  193. extern Model *modelTactG;
  194. extern Model *modelTwelveKey;
  195. extern Model *modelWriteSeq32;
  196. extern Model *modelWriteSeq64;
  197. extern Model *modelBlankPanel;
  198. // JW-Modules
  199. #define modelQuantizer modelJWQuantizer
  200. #include "JW-Modules/src/JWModules.hpp"
  201. #undef modelQuantizer
  202. // rackwindows
  203. #include "rackwindows/src/plugin.hpp"
  204. // ValleyAudio
  205. /* does not build against v2
  206. #include "ValleyAudio/src/Valley.hpp"
  207. */
  208. // ZetaCarinaeModules
  209. #include "ZetaCarinaeModules/src/plugin.hpp"
  210. // stuff that reads config files, we dont want that
  211. int loadConsoleType() { return 0; }
  212. int loadDirectOutMode() { return 0; }
  213. bool loadDarkAsDefault() { return true; }
  214. bool loadQuality() { return false; }
  215. void saveConsoleType(int) {}
  216. void saveDarkAsDefault(bool) {}
  217. void saveDirectOutMode(bool) {}
  218. void saveHighQualityAsDefault(bool) {}
  219. // plugin instances
  220. Plugin* pluginInstance__AmalgamatedHarmonics;
  221. Plugin* pluginInstance__AnimatedCircuits;
  222. Plugin* pluginInstance__AS;
  223. Plugin* pluginInstance__AudibleInstruments;
  224. Plugin* pluginInstance__Befaco;
  225. Plugin* pluginInstance__Bidoo;
  226. Plugin* pluginInstance__BogaudioModules;
  227. Plugin* pluginInstance__Cardinal;
  228. Plugin* pluginInstance__cf;
  229. Plugin* pluginInstance__ESeries;
  230. Plugin* pluginInstance__Fundamental;
  231. Plugin* pluginInstance__GrandeModular;
  232. extern Plugin* pluginInstance__ImpromptuModular;
  233. Plugin* pluginInstance__JW;
  234. Plugin* pluginInstance__rackwindows;
  235. Plugin* pluginInstance__ValleyAudio;
  236. Plugin* pluginInstance__ZetaCarinaeModules;
  237. namespace rack {
  238. namespace asset {
  239. std::string pluginManifest(const std::string& dirname);
  240. std::string pluginPath(const std::string& dirname);
  241. }
  242. // core plugins
  243. namespace core {
  244. extern Model* modelAudioInterface;
  245. extern Model* modelAudioInterface2;
  246. extern Model* modelAudioInterface16;
  247. extern Model* modelMIDI_CV;
  248. extern Model* modelMIDI_CC;
  249. extern Model* modelMIDI_Gate;
  250. extern Model* modelMIDI_Map;
  251. extern Model* modelCV_MIDI;
  252. extern Model* modelCV_CC;
  253. extern Model* modelCV_Gate;
  254. extern Model* modelBlank;
  255. extern Model* modelNotes;
  256. }
  257. // regular plugins
  258. namespace plugin {
  259. struct StaticPluginLoader {
  260. Plugin* const plugin;
  261. FILE* file;
  262. json_t* rootJ;
  263. StaticPluginLoader(Plugin* const p, const char* const name)
  264. : plugin(p),
  265. file(nullptr),
  266. rootJ(nullptr)
  267. {
  268. #ifdef DEBUG
  269. DEBUG("Loading plugin module %s", name);
  270. #endif
  271. p->path = asset::pluginPath(name);
  272. const std::string manifestFilename = asset::pluginManifest(name);
  273. if ((file = std::fopen(manifestFilename.c_str(), "r")) == nullptr)
  274. {
  275. d_stderr2("Manifest file %s does not exist", manifestFilename.c_str());
  276. return;
  277. }
  278. json_error_t error;
  279. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  280. {
  281. d_stderr2("JSON parsing error at %s %d:%d %s", manifestFilename.c_str(), error.line, error.column, error.text);
  282. return;
  283. }
  284. // force ABI, we use static plugins so this doesnt matter as long as it builds
  285. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  286. json_object_set(rootJ, "version", version);
  287. json_decref(version);
  288. }
  289. ~StaticPluginLoader()
  290. {
  291. if (rootJ != nullptr)
  292. {
  293. plugin->fromJson(rootJ);
  294. json_decref(rootJ);
  295. plugins.push_back(plugin);
  296. }
  297. if (file != nullptr)
  298. std::fclose(file);
  299. }
  300. bool ok() const noexcept
  301. {
  302. return rootJ != nullptr;
  303. }
  304. };
  305. static void initStatic__Core()
  306. {
  307. Plugin* const p = new Plugin;
  308. const StaticPluginLoader spl(p, "Core");
  309. if (spl.ok())
  310. {
  311. p->addModel(rack::core::modelAudioInterface);
  312. p->addModel(rack::core::modelAudioInterface2);
  313. p->addModel(rack::core::modelAudioInterface16);
  314. p->addModel(rack::core::modelMIDI_CV);
  315. p->addModel(rack::core::modelMIDI_CC);
  316. p->addModel(rack::core::modelMIDI_Gate);
  317. p->addModel(rack::core::modelMIDI_Map);
  318. p->addModel(rack::core::modelCV_MIDI);
  319. p->addModel(rack::core::modelCV_CC);
  320. p->addModel(rack::core::modelCV_Gate);
  321. p->addModel(rack::core::modelBlank);
  322. p->addModel(rack::core::modelNotes);
  323. }
  324. }
  325. static void initStatic__AmalgamatedHarmonics()
  326. {
  327. Plugin* const p = new Plugin;
  328. pluginInstance__AmalgamatedHarmonics = p;
  329. const StaticPluginLoader spl(p, "AmalgamatedHarmonics");
  330. if (spl.ok())
  331. {
  332. p->addModel(modelArp31);
  333. p->addModel(modelArp32);
  334. p->addModel(modelBombe);
  335. p->addModel(modelChord);
  336. p->addModel(modelCircle);
  337. p->addModel(modelGalaxy);
  338. p->addModel(modelGenerative);
  339. p->addModel(modelImp);
  340. p->addModel(modelImperfect2);
  341. p->addModel(modelProgress2);
  342. p->addModel(modelRuckus);
  343. p->addModel(modelScaleQuantizer2);
  344. p->addModel(modelSLN);
  345. p->addModel(modelMuxDeMux);
  346. p->addModel(modelPolyProbe);
  347. p->addModel(modelPolyScope);
  348. p->addModel(modelPolyUtils);
  349. p->addModel(modelPolyVolt);
  350. p->addModel(modelScaleQuantizer);
  351. p->addModel(modelArpeggiator2);
  352. p->addModel(modelProgress);
  353. }
  354. }
  355. static void initStatic__AnimatedCircuits()
  356. {
  357. Plugin* const p = new Plugin;
  358. pluginInstance__AnimatedCircuits = p;
  359. const StaticPluginLoader spl(p, "AnimatedCircuits");
  360. if (spl.ok())
  361. {
  362. p->addModel(model_AC_Folding);
  363. }
  364. }
  365. static void initStatic__AS()
  366. {
  367. Plugin* const p = new Plugin;
  368. pluginInstance__AS = p;
  369. const StaticPluginLoader spl(p, "AS");
  370. if (spl.ok())
  371. {
  372. #define modelADSR modelASADSR
  373. #define modelVCA modelASVCA
  374. //OSCILLATORS
  375. p->addModel(modelSineOsc);
  376. p->addModel(modelSawOsc);
  377. //TOOLS
  378. p->addModel(modelADSR);
  379. p->addModel(modelVCA);
  380. p->addModel(modelQuadVCA);
  381. p->addModel(modelTriLFO);
  382. p->addModel(modelAtNuVrTr);
  383. p->addModel(modelBPMClock);
  384. p->addModel(modelSEQ16);
  385. p->addModel(modelMixer2ch);
  386. p->addModel(modelMixer4ch);
  387. p->addModel(modelMixer8ch);
  388. p->addModel(modelMonoVUmeter);
  389. p->addModel(modelStereoVUmeter);
  390. p->addModel(modelMultiple2_5);
  391. p->addModel(modelMerge2_5);
  392. p->addModel(modelSteps);
  393. p->addModel(modelLaunchGate);
  394. p->addModel(modelKillGate);
  395. p->addModel(modelFlow);
  396. p->addModel(modelSignalDelay);
  397. p->addModel(modelTriggersMKI);
  398. p->addModel(modelTriggersMKII);
  399. p->addModel(modelTriggersMKIII);
  400. p->addModel(modelBPMCalc);
  401. p->addModel(modelBPMCalc2);
  402. p->addModel(modelCv2T);
  403. p->addModel(modelZeroCV2T);
  404. p->addModel(modelReScale);
  405. //EFFECTS
  406. p->addModel(modelDelayPlusFx);
  407. p->addModel(modelDelayPlusStereoFx);
  408. p->addModel(modelPhaserFx);
  409. p->addModel(modelReverbFx);
  410. p->addModel(modelReverbStereoFx);
  411. p->addModel(modelSuperDriveFx);
  412. p->addModel(modelSuperDriveStereoFx);
  413. p->addModel(modelTremoloFx);
  414. p->addModel(modelTremoloStereoFx);
  415. p->addModel(modelWaveShaper);
  416. p->addModel(modelWaveShaperStereo);
  417. //BLANK PANELS
  418. p->addModel(modelBlankPanel4);
  419. p->addModel(modelBlankPanel6);
  420. p->addModel(modelBlankPanel8);
  421. p->addModel(modelBlankPanelSpecial);
  422. #undef modelADSR
  423. #undef modelVCA
  424. }
  425. }
  426. static void initStatic__AudibleInstruments()
  427. {
  428. Plugin* const p = new Plugin;
  429. pluginInstance__AudibleInstruments = p;
  430. const StaticPluginLoader spl(p, "AudibleInstruments");
  431. if (spl.ok())
  432. {
  433. p->addModel(modelBraids);
  434. p->addModel(modelPlaits);
  435. p->addModel(modelElements);
  436. p->addModel(modelTides);
  437. p->addModel(modelTides2);
  438. p->addModel(modelClouds);
  439. p->addModel(modelWarps);
  440. p->addModel(modelRings);
  441. p->addModel(modelLinks);
  442. p->addModel(modelKinks);
  443. p->addModel(modelShades);
  444. p->addModel(modelBranches);
  445. p->addModel(modelBlinds);
  446. p->addModel(modelVeils);
  447. p->addModel(modelFrames);
  448. p->addModel(modelMarbles);
  449. p->addModel(modelStages);
  450. p->addModel(modelRipples);
  451. p->addModel(modelShelves);
  452. p->addModel(modelStreams);
  453. }
  454. }
  455. static void initStatic__Befaco()
  456. {
  457. Plugin* const p = new Plugin;
  458. pluginInstance__Befaco = p;
  459. const StaticPluginLoader spl(p, "Befaco");
  460. if (spl.ok())
  461. {
  462. p->addModel(modelEvenVCO);
  463. p->addModel(modelRampage);
  464. p->addModel(modelABC);
  465. p->addModel(modelSpringReverb);
  466. p->addModel(modelMixer);
  467. p->addModel(modelSlewLimiter);
  468. p->addModel(modelDualAtenuverter);
  469. }
  470. }
  471. static void initStatic__Bidoo()
  472. {
  473. Plugin* const p = new Plugin;
  474. pluginInstance__Bidoo = p;
  475. const StaticPluginLoader spl(p, "Bidoo");
  476. if (spl.ok())
  477. {
  478. p->addModel(modelTOCANTE);
  479. p->addModel(modelLATE);
  480. p->addModel(modelDIKTAT);
  481. p->addModel(modelDTROY);
  482. p->addModel(modelBORDL);
  483. p->addModel(modelZOUMAI);
  484. p->addModel(modelMU);
  485. p->addModel(modelCHUTE);
  486. p->addModel(modelLOURDE);
  487. p->addModel(modelACNE);
  488. p->addModel(modelMS);
  489. p->addModel(modelDUKE);
  490. p->addModel(modelMOIRE);
  491. p->addModel(modelPILOT);
  492. p->addModel(modelHUITRE);
  493. p->addModel(modelOUAIVE);
  494. p->addModel(modelPOUPRE);
  495. p->addModel(modelMAGMA);
  496. p->addModel(modelOAI);
  497. p->addModel(modelCANARD);
  498. p->addModel(modelEMILE);
  499. p->addModel(modelFORK);
  500. p->addModel(modelTIARE);
  501. //p->addModel(modelCLACOS);
  502. //p->addModel(modelPENEQUE);
  503. p->addModel(modelLIMONADE);
  504. p->addModel(modelLIMBO);
  505. p->addModel(modelPERCO);
  506. p->addModel(modelBAFIS);
  507. p->addModel(modelFFILTR);
  508. p->addModel(modelBAR);
  509. p->addModel(modelMINIBAR);
  510. p->addModel(modelZINC);
  511. p->addModel(modelFREIN);
  512. p->addModel(modelHCTIP);
  513. //p->addModel(modelCURT);
  514. p->addModel(modelDFUZE);
  515. p->addModel(modelREI);
  516. p->addModel(modelRABBIT);
  517. p->addModel(modelBISTROT);
  518. p->addModel(modelSIGMA);
  519. p->addModel(modelGARCON);
  520. p->addModel(modelVOID);
  521. // NOTE disabled in Cardinal due to curl usage
  522. // p->addModel(modelANTN);
  523. // intentionally remove known bad plugin
  524. if (json_t* const modules = json_object_get(spl.rootJ, "modules"))
  525. {
  526. size_t i;
  527. json_t* v;
  528. json_array_foreach(modules, i, v)
  529. {
  530. if (json_t* const slug = json_object_get(v, "slug"))
  531. {
  532. if (const char* const value = json_string_value(slug))
  533. {
  534. if (std::strcmp(value, "antN") == 0)
  535. {
  536. json_array_remove(modules, i);
  537. break;
  538. }
  539. }
  540. }
  541. }
  542. }
  543. }
  544. }
  545. static void initStatic__BogaudioModules()
  546. {
  547. Plugin* const p = new Plugin;
  548. pluginInstance__BogaudioModules = p;
  549. const StaticPluginLoader spl(p, "BogaudioModules");
  550. if (spl.ok())
  551. {
  552. #define modelADSR modelBogaudioADSR
  553. #define modelLFO modelBogaudioLFO
  554. #define modelNoise modelBogaudioNoise
  555. #define modelVCA modelBogaudioVCA
  556. #define modelVCF modelBogaudioVCF
  557. #define modelVCO modelBogaudioVCO
  558. p->addModel(modelVCO);
  559. p->addModel(modelLVCO);
  560. p->addModel(modelSine);
  561. p->addModel(modelPulse);
  562. p->addModel(modelXCO);
  563. p->addModel(modelAdditator);
  564. p->addModel(modelFMOp);
  565. p->addModel(modelChirp);
  566. p->addModel(modelLFO);
  567. p->addModel(modelLLFO);
  568. p->addModel(modelFourFO);
  569. p->addModel(modelEightFO);
  570. p->addModel(modelVCF);
  571. p->addModel(modelLVCF);
  572. p->addModel(modelFFB);
  573. p->addModel(modelEQ);
  574. p->addModel(modelEQS);
  575. p->addModel(modelLPG);
  576. p->addModel(modelLLPG);
  577. p->addModel(modelMegaGate);
  578. p->addModel(modelPEQ);
  579. p->addModel(modelPEQ6);
  580. p->addModel(modelPEQ6XF);
  581. p->addModel(modelPEQ14);
  582. p->addModel(modelPEQ14XF);
  583. p->addModel(modelDADSRH);
  584. p->addModel(modelDADSRHPlus);
  585. p->addModel(modelShaper);
  586. p->addModel(modelShaperPlus);
  587. p->addModel(modelAD);
  588. p->addModel(modelASR);
  589. p->addModel(modelADSR);
  590. p->addModel(modelVish);
  591. p->addModel(modelFollow);
  592. p->addModel(modelDGate);
  593. p->addModel(modelRGate);
  594. p->addModel(modelEdge);
  595. p->addModel(modelNoise);
  596. p->addModel(modelSampleHold);
  597. p->addModel(modelWalk2);
  598. p->addModel(modelWalk);
  599. p->addModel(modelMix8);
  600. p->addModel(modelMix8x);
  601. p->addModel(modelMix4);
  602. p->addModel(modelMix4x);
  603. p->addModel(modelMix2);
  604. p->addModel(modelMix1);
  605. p->addModel(modelVCM);
  606. p->addModel(modelMute8);
  607. p->addModel(modelPan);
  608. p->addModel(modelXFade);
  609. p->addModel(modelVCA);
  610. p->addModel(modelVCAmp);
  611. p->addModel(modelVelo);
  612. p->addModel(modelUMix);
  613. p->addModel(modelMumix);
  614. p->addModel(modelMatrix81);
  615. p->addModel(modelMatrix18);
  616. p->addModel(modelMatrix44);
  617. p->addModel(modelMatrix44Cvm);
  618. p->addModel(modelMatrix88);
  619. p->addModel(modelMatrix88Cv);
  620. p->addModel(modelMatrix88M);
  621. p->addModel(modelSwitch81);
  622. p->addModel(modelSwitch18);
  623. p->addModel(modelSwitch44);
  624. p->addModel(modelSwitch88);
  625. p->addModel(modelSwitch1616);
  626. p->addModel(modelAMRM);
  627. p->addModel(modelPressor);
  628. p->addModel(modelClpr);
  629. p->addModel(modelLmtr);
  630. p->addModel(modelNsgt);
  631. p->addModel(modelCmpDist);
  632. p->addModel(modelOneEight);
  633. p->addModel(modelEightOne);
  634. p->addModel(modelAddrSeq);
  635. p->addModel(modelAddrSeqX);
  636. p->addModel(modelPgmr);
  637. p->addModel(modelPgmrX);
  638. p->addModel(modelVU);
  639. p->addModel(modelAnalyzer);
  640. p->addModel(modelAnalyzerXL);
  641. p->addModel(modelRanalyzer);
  642. p->addModel(modelDetune);
  643. p->addModel(modelStack);
  644. p->addModel(modelReftone);
  645. p->addModel(modelMono);
  646. p->addModel(modelArp);
  647. p->addModel(modelAssign);
  648. p->addModel(modelUnison);
  649. p->addModel(modelPolyCon8);
  650. p->addModel(modelPolyCon16);
  651. p->addModel(modelPolyOff8);
  652. p->addModel(modelPolyOff16);
  653. p->addModel(modelPolyMult);
  654. p->addModel(modelBool);
  655. p->addModel(modelCmp);
  656. p->addModel(modelCVD);
  657. p->addModel(modelFlipFlop);
  658. p->addModel(modelInv);
  659. p->addModel(modelManual);
  660. p->addModel(modelFourMan);
  661. p->addModel(modelMult);
  662. p->addModel(modelOffset);
  663. p->addModel(modelSlew);
  664. p->addModel(modelSums);
  665. p->addModel(modelSwitch);
  666. p->addModel(modelLgsw);
  667. p->addModel(modelBlank3);
  668. p->addModel(modelBlank6);
  669. #ifdef EXPERIMENTAL
  670. p->addModel(modelLag);
  671. p->addModel(modelPEQ14XR);
  672. p->addModel(modelPEQ14XV);
  673. #endif
  674. #ifdef TEST
  675. p->addModel(modelTest);
  676. p->addModel(modelTest2);
  677. p->addModel(modelTestExpanderBase);
  678. p->addModel(modelTestExpanderExtension);
  679. p->addModel(modelTestGl);
  680. p->addModel(modelTestVCF);
  681. #endif
  682. #undef modelADSR
  683. #undef modelLFO
  684. #undef modelNoise
  685. #undef modelVCA
  686. #undef modelVCF
  687. #undef modelVCO
  688. }
  689. }
  690. static void initStatic__Cardinal()
  691. {
  692. Plugin* const p = new Plugin;
  693. pluginInstance__Cardinal = p;
  694. const StaticPluginLoader spl(p, "Cardinal");
  695. if (spl.ok())
  696. {
  697. p->addModel(modelHostParameters);
  698. p->addModel(modelHostTime);
  699. }
  700. }
  701. static void initStatic__cf()
  702. {
  703. Plugin* const p = new Plugin;
  704. pluginInstance__cf = p;
  705. const StaticPluginLoader spl(p, "cf");
  706. if (spl.ok())
  707. {
  708. p->addModel(modelMETRO);
  709. p->addModel(modelEACH);
  710. p->addModel(modeltrSEQ);
  711. p->addModel(modelLEDSEQ);
  712. p->addModel(modelL3DS3Q);
  713. p->addModel(modelSLIDERSEQ);
  714. p->addModel(modelPLAYER);
  715. p->addModel(modelPLAY);
  716. p->addModel(modelMONO);
  717. p->addModel(modelSTEREO);
  718. p->addModel(modelSUB);
  719. p->addModel(modelMASTER);
  720. p->addModel(modelVARIABLE);
  721. p->addModel(modelALGEBRA);
  722. p->addModel(modelFUNKTION);
  723. p->addModel(modelCHOKE);
  724. p->addModel(modelFOUR);
  725. p->addModel(modelSTEPS);
  726. p->addModel(modelPEAK);
  727. p->addModel(modelCUTS);
  728. p->addModel(modelBUFFER);
  729. p->addModel(modelDISTO);
  730. p->addModel(modelCUBE);
  731. p->addModel(modelPATCH);
  732. p->addModel(modelLABEL);
  733. p->addModel(modelDAVE);
  734. }
  735. }
  736. static void initStatic__ESeries()
  737. {
  738. Plugin* const p = new Plugin;
  739. pluginInstance__ESeries = p;
  740. const StaticPluginLoader spl(p, "ESeries");
  741. if (spl.ok())
  742. {
  743. p->addModel(modelE340);
  744. }
  745. }
  746. static void initStatic__Fundamental()
  747. {
  748. Plugin* const p = new Plugin;
  749. pluginInstance__Fundamental = p;
  750. const StaticPluginLoader spl(p, "Fundamental");
  751. if (spl.ok())
  752. {
  753. p->addModel(modelVCO);
  754. p->addModel(modelVCO2);
  755. p->addModel(modelVCF);
  756. p->addModel(modelVCA_1);
  757. p->addModel(modelVCA);
  758. p->addModel(modelLFO);
  759. p->addModel(modelLFO2);
  760. p->addModel(modelDelay);
  761. p->addModel(modelADSR);
  762. p->addModel(modelVCMixer);
  763. p->addModel(model_8vert);
  764. p->addModel(modelUnity);
  765. p->addModel(modelMutes);
  766. p->addModel(modelPulses);
  767. p->addModel(modelScope);
  768. p->addModel(modelSEQ3);
  769. p->addModel(modelSequentialSwitch1);
  770. p->addModel(modelSequentialSwitch2);
  771. p->addModel(modelOctave);
  772. p->addModel(modelQuantizer);
  773. p->addModel(modelSplit);
  774. p->addModel(modelMerge);
  775. p->addModel(modelSum);
  776. p->addModel(modelViz);
  777. p->addModel(modelMidSide);
  778. p->addModel(modelNoise);
  779. p->addModel(modelRandom);
  780. }
  781. }
  782. static void initStatic__GrandeModular()
  783. {
  784. Plugin* const p = new Plugin;
  785. pluginInstance__GrandeModular = p;
  786. const StaticPluginLoader spl(p, "GrandeModular");
  787. if (spl.ok())
  788. {
  789. p->addModel(modelClip);
  790. p->addModel(modelMergeSplit4);
  791. p->addModel(modelMicrotonalChords);
  792. p->addModel(modelMicrotonalNotes);
  793. p->addModel(modelNoteMT);
  794. p->addModel(modelPolyMergeResplit);
  795. p->addModel(modelQuant);
  796. p->addModel(modelQuantIntervals);
  797. p->addModel(modelQuantMT);
  798. p->addModel(modelSampleDelays);
  799. p->addModel(modelScale);
  800. p->addModel(modelTails);
  801. p->addModel(modelVarSampleDelays);
  802. }
  803. }
  804. static void initStatic__ImpromptuModular()
  805. {
  806. Plugin* const p = new Plugin;
  807. pluginInstance__ImpromptuModular = p;
  808. const StaticPluginLoader spl(p, "ImpromptuModular");
  809. if (spl.ok())
  810. {
  811. p->addModel(modelBigButtonSeq);
  812. p->addModel(modelBigButtonSeq2);
  813. p->addModel(modelChordKey);
  814. p->addModel(modelChordKeyExpander);
  815. p->addModel(modelClocked);
  816. p->addModel(modelClockedExpander);
  817. p->addModel(modelClkd);
  818. p->addModel(modelCvPad);
  819. p->addModel(modelFoundry);
  820. p->addModel(modelFoundryExpander);
  821. p->addModel(modelFourView);
  822. p->addModel(modelGateSeq64);
  823. p->addModel(modelGateSeq64Expander);
  824. p->addModel(modelHotkey);
  825. p->addModel(modelPart);
  826. p->addModel(modelPhraseSeq16);
  827. p->addModel(modelPhraseSeq32);
  828. p->addModel(modelPhraseSeqExpander);
  829. p->addModel(modelProbKey);
  830. // p->addModel(modelProbKeyExpander);
  831. p->addModel(modelSemiModularSynth);
  832. p->addModel(modelTact);
  833. p->addModel(modelTact1);
  834. p->addModel(modelTactG);
  835. p->addModel(modelTwelveKey);
  836. p->addModel(modelWriteSeq32);
  837. p->addModel(modelWriteSeq64);
  838. p->addModel(modelBlankPanel);
  839. }
  840. }
  841. static void initStatic__JW()
  842. {
  843. Plugin* const p = new Plugin;
  844. pluginInstance__JW = p;
  845. const StaticPluginLoader spl(p, "JW-Modules");
  846. if (spl.ok())
  847. {
  848. #define modelQuantizer modelJWQuantizer
  849. p->addModel(modelAdd5);
  850. p->addModel(modelBouncyBalls);
  851. p->addModel(modelCat);
  852. p->addModel(modelTree);
  853. p->addModel(modelFullScope);
  854. p->addModel(modelGridSeq);
  855. p->addModel(modelEightSeq);
  856. p->addModel(modelDivSeq);
  857. p->addModel(modelMinMax);
  858. p->addModel(modelNoteSeq);
  859. p->addModel(modelNoteSeqFu);
  860. p->addModel(modelNoteSeq16);
  861. p->addModel(modelTrigs);
  862. p->addModel(modelOnePattern);
  863. p->addModel(modelPatterns);
  864. p->addModel(modelQuantizer);
  865. p->addModel(modelSimpleClock);
  866. p->addModel(modelStr1ker);
  867. p->addModel(modelD1v1de);
  868. p->addModel(modelPres1t);
  869. p->addModel(modelThingThing);
  870. p->addModel(modelWavHead);
  871. p->addModel(modelXYPad);
  872. p->addModel(modelBlankPanel1hp);
  873. p->addModel(modelBlankPanelSmall);
  874. p->addModel(modelBlankPanelMedium);
  875. p->addModel(modelBlankPanelLarge);
  876. p->addModel(modelCoolBreeze);
  877. p->addModel(modelPete);
  878. #undef modelQuantizer
  879. }
  880. }
  881. static void initStatic__rackwindows()
  882. {
  883. Plugin* const p = new Plugin;
  884. pluginInstance__rackwindows = p;
  885. const StaticPluginLoader spl(p, "rackwindows");
  886. if (spl.ok())
  887. {
  888. // p->addModel(modelAcceleration);
  889. p->addModel(modelBitshiftgain);
  890. p->addModel(modelCapacitor);
  891. p->addModel(modelCapacitor_stereo);
  892. p->addModel(modelChorus);
  893. p->addModel(modelConsole);
  894. p->addModel(modelConsole_mm);
  895. p->addModel(modelDistance);
  896. p->addModel(modelGolem);
  897. p->addModel(modelHolt);
  898. p->addModel(modelHombre);
  899. p->addModel(modelInterstage);
  900. p->addModel(modelMonitoring);
  901. p->addModel(modelMv);
  902. p->addModel(modelRasp);
  903. p->addModel(modelReseq);
  904. p->addModel(modelTape);
  905. p->addModel(modelTremolo);
  906. p->addModel(modelVibrato);
  907. }
  908. }
  909. /* does not build against v2
  910. static void initStatic__ValleyAudio()
  911. {
  912. Plugin* const p = new Plugin;
  913. pluginInstance__ValleyAudio = p;
  914. const StaticPluginLoader spl(p, "ValleyAudio");
  915. if (spl.ok())
  916. {
  917. p->addModel(modelTopograph);
  918. p->addModel(modelUGraph);
  919. p->addModel(modelDexter);
  920. p->addModel(modelPlateau);
  921. p->addModel(modelInterzone);
  922. p->addModel(modelAmalgam);
  923. p->addModel(modelFeline);
  924. p->addModel(modelTerrorform);
  925. }
  926. }
  927. */
  928. static void initStatic__ZetaCarinaeModules()
  929. {
  930. Plugin* p = new Plugin;
  931. pluginInstance__ZetaCarinaeModules = p;
  932. const StaticPluginLoader spl(p, "ZetaCarinaeModules");
  933. if (spl.ok())
  934. {
  935. p->addModel(modelBrownianBridge);
  936. p->addModel(modelOrnsteinUhlenbeck);
  937. p->addModel(modelIOU);
  938. p->addModel(modelWarbler);
  939. p->addModel(modelRosenchance);
  940. p->addModel(modelGuildensTurn);
  941. p->addModel(modelRosslerRustler);
  942. p->addModel(modelFirefly);
  943. }
  944. }
  945. void initStaticPlugins()
  946. {
  947. initStatic__Core();
  948. initStatic__AmalgamatedHarmonics();
  949. initStatic__AnimatedCircuits();
  950. initStatic__AS();
  951. initStatic__AudibleInstruments();
  952. initStatic__Befaco();
  953. initStatic__Bidoo();
  954. initStatic__BogaudioModules();
  955. initStatic__Cardinal();
  956. initStatic__cf();
  957. initStatic__ESeries();
  958. initStatic__Fundamental();
  959. initStatic__GrandeModular();
  960. initStatic__ImpromptuModular();
  961. initStatic__JW();
  962. initStatic__rackwindows();
  963. /* does not build against v2
  964. initStatic__ValleyAudio();
  965. */
  966. initStatic__ZetaCarinaeModules();
  967. }
  968. void destroyStaticPlugins()
  969. {
  970. for (Plugin* p : plugins)
  971. delete p;
  972. plugins.clear();
  973. }
  974. }
  975. }