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.

52 lines
1002B

  1. #include "ML_components.hpp"
  2. #include "rack.hpp"
  3. //#ifdef v_dev
  4. //#define Davies1900hSmallBlackKnob SmallMLKnob
  5. //#endif
  6. using namespace rack;
  7. struct NKK2 : SVGSwitch, ToggleSwitch {
  8. NKK2() {
  9. addFrame(SVG::load(assetGlobal("res/ComponentLibrary/NKK_0.svg")));
  10. addFrame(SVG::load(assetGlobal("res/ComponentLibrary/NKK_2.svg")));
  11. }
  12. };
  13. struct POLSWITCH : SVGSwitch, ToggleSwitch {
  14. POLSWITCH() {
  15. addFrame(SVG::load(assetPlugin(plugin, "res/CKSS_0.svg")));
  16. addFrame(SVG::load(assetPlugin(plugin, "res/CKSS_1.svg")));
  17. }
  18. };
  19. /*
  20. struct MLKnob : RoundKnob {
  21. MLKnob() {
  22. setSVG(SVG::load(assetPlugin(plugin,"res/Knob.svg")));
  23. }
  24. };
  25. struct RedMLKnob : RoundKnob {
  26. RedMLKnob() {
  27. setSVG(SVG::load(assetPlugin(plugin,"res/RedKnob.svg")));
  28. }
  29. };
  30. struct SmallMLKnob : RoundKnob {
  31. SmallMLKnob() {
  32. setSVG(SVG::load(assetPlugin(plugin,"res/Knob_28.svg")));
  33. }
  34. };
  35. struct SmallRedMLKnob : RoundKnob {
  36. SmallRedMLKnob() {
  37. setSVG(SVG::load(assetPlugin(plugin,"res/RedKnob_28.svg")));
  38. }
  39. };
  40. */