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.

80 lines
2.3KB

  1. #include <string.h>
  2. #include "AudibleInstruments.hpp"
  3. struct Streams : Module {
  4. enum ParamIds {
  5. SHAPE1_PARAM,
  6. MOD1_PARAM,
  7. LEVEL1_PARAM,
  8. RESPONSE1_PARAM,
  9. SHAPE2_PARAM,
  10. MOD2_PARAM,
  11. LEVEL2_PARAM,
  12. RESPONSE2_PARAM,
  13. NUM_PARAMS
  14. };
  15. enum InputIds {
  16. EXCITE1_INPUT,
  17. IN1_INPUT,
  18. LEVEL1_INPUT,
  19. EXCITE2_INPUT,
  20. IN2_INPUT,
  21. LEVEL2_INPUT,
  22. NUM_INPUTS
  23. };
  24. enum OutputIds {
  25. OUT1_OUTPUT,
  26. OUT2_OUTPUT,
  27. NUM_OUTPUTS
  28. };
  29. Streams() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) {}
  30. void step();
  31. };
  32. void Streams::step() {
  33. }
  34. StreamsWidget::StreamsWidget() {
  35. Streams *module = new Streams();
  36. setModule(module);
  37. box.size = Vec(15*12, 380);
  38. {
  39. Panel *panel = new LightPanel();
  40. panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Streams.png"));
  41. panel->box.size = box.size;
  42. addChild(panel);
  43. }
  44. addChild(createScrew<ScrewSilver>(Vec(15, 0)));
  45. addChild(createScrew<ScrewSilver>(Vec(150, 0)));
  46. addChild(createScrew<ScrewSilver>(Vec(15, 365)));
  47. addChild(createScrew<ScrewSilver>(Vec(150, 365)));
  48. // addParam(createParam<HugeGlowKnob>(Vec(30, 53), module, Streams::ALGORITHM_PARAM, 0.0, 8.0, 0.0));
  49. // addParam(createParam<Rogan1PSWhite>(Vec(95, 173), module, Streams::TIMBRE_PARAM, 0.0, 1.0, 0.5));
  50. // addParam(createParam<MediumToggleSwitch>(Vec(17, 182), module, Streams::STATE_PARAM, 0.0, 3.0, 0.0));
  51. // addParam(createParam<Trimpot>(Vec(15, 214), module, Streams::LEVEL1_PARAM, 0.0, 1.0, 1.0));
  52. // addParam(createParam<Trimpot>(Vec(53, 214), module, Streams::LEVEL2_PARAM, 0.0, 1.0, 1.0));
  53. // addInput(createInput<PJ3410Port>(Vec(11, 275), module, Streams::LEVEL1_INPUT));
  54. // addInput(createInput<PJ3410Port>(Vec(47, 275), module, Streams::LEVEL2_INPUT));
  55. // addInput(createInput<PJ3410Port>(Vec(83, 275), module, Streams::ALGORITHM_INPUT));
  56. // addInput(createInput<PJ3410Port>(Vec(119, 275), module, Streams::TIMBRE_INPUT));
  57. // addInput(createInput<PJ3410Port>(Vec(11, 318), module, Streams::CARRIER_INPUT));
  58. // addInput(createInput<PJ3410Port>(Vec(47, 318), module, Streams::MODULATOR_INPUT));
  59. // addOutput(createOutput<PJ3410Port>(Vec(83, 318), module, Streams::MODULATOR_OUTPUT));
  60. // addOutput(createOutput<PJ3410Port>(Vec(119, 318), module, Streams::AUX_OUTPUT));
  61. // Streams *streams = dynamic_cast<Streams*>(module);
  62. // addChild(createValueLight<SmallModeLight>(Vec(21, 168), &streams->lights[0]));
  63. }