ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
308 stars 21 forks source link

Fix erbui switch #612

Closed ohmtech-rdi closed 1 year ago

ohmtech-rdi commented 1 year ago

This PR fixes multiple issues where the switch was returning the wrong position:

When the control is not rotated, the top position is position first.

On the electronic side, Pin 1 happens to be at the bottom, and the switch inverts the position. So when in top position:

However the VCV Rack button starts its first position at the bottom of the switch, which was just how the SVG images where ordered.

Note The Frohmager simulator will be updated in a later PR.