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.

46 lines
1.2KB

  1. require_relative '../module'
  2. module DHE
  3. class Cubic < DHE::Module
  4. def initialize
  5. super(name: 'CUBIC', hp: 5, foreground: [180, 100, 30], background: [180, 100, 97])
  6. left = @width / 4.0 + 1.0 / 3.0
  7. right = @width - left
  8. delta_y = 15.0
  9. y = 20.0
  10. cv_port(x: left, y: y)
  11. small_knob(x: right, y: y, label: 'X<tspan baseline-shift="super">3</tspan>')
  12. # {{ page | small_knob: right_x, y, 'X<tspan baseline-shift="super">3</tspan>' }}
  13. y += delta_y
  14. cv_port(x: left, y: y)
  15. small_knob(x: right, y: y, label: 'X<tspan baseline-shift="super">2</tspan>')
  16. y += delta_y
  17. cv_port(x: left, y: y)
  18. small_knob(x: right, y: y, label: 'X<tspan baseline-shift="super">1</tspan>')
  19. y += delta_y
  20. cv_port(x: left, y: y)
  21. small_knob(x: right, y: y, label: 'X<tspan baseline-shift="super">0</tspan>')
  22. y = 82.0
  23. small_knob(x: left, y: y, label: 'IN')
  24. small_knob(x: right, y: y, label: 'OUT')
  25. y += delta_y
  26. cv_port(x: left, y: y)
  27. cv_port(x: right, y: y)
  28. y += delta_y
  29. input_port(x: left, y: y)
  30. output_port(x: right, y: y)
  31. end
  32. end
  33. end
  34. MODULE_TO_FILENAME[DHE::Cubic.new] = __FILE__