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.

45 lines
724B

  1. #include "core.hpp"
  2. using namespace rack;
  3. struct Bridge : Module {
  4. enum ParamIds {
  5. NUM_PARAMS
  6. };
  7. enum InputIds {
  8. NUM_INPUTS
  9. };
  10. enum OutputIds {
  11. NUM_OUTPUTS
  12. };
  13. Bridge() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) {
  14. }
  15. ~Bridge() {
  16. }
  17. void step();
  18. };
  19. void Bridge::step() {
  20. }
  21. BridgeWidget::BridgeWidget() {
  22. Bridge *module = new Bridge();
  23. setModule(module);
  24. box.size = Vec(15*8, 380);
  25. {
  26. Panel *panel = new LightPanel();
  27. panel->box.size = box.size;
  28. addChild(panel);
  29. }
  30. addChild(createScrew<ScrewSilver>(Vec(15, 0)));
  31. addChild(createScrew<ScrewSilver>(Vec(box.size.x-30, 0)));
  32. addChild(createScrew<ScrewSilver>(Vec(15, 365)));
  33. addChild(createScrew<ScrewSilver>(Vec(box.size.x-30, 365)));
  34. }