lib/surface_master/orbit/device.rb in surface_master-0.5.1 vs lib/surface_master/orbit/device.rb in surface_master-0.6.0

- old
+ new

@@ -206,10 +206,10 @@ decoded[:control] = decoded[:control].merge(SurfaceMaster::Orbit::Device::SHOULDERS[note]) decoded end def decode_grid(decoded, note, _velocity) - decoded[:control] = decoded[:control].merge(x: note / 4, y: note % 4) + decoded[:control] = decoded[:control].merge(x: note / 4, y: 3 - (note % 4)) decoded end def decode_knob(decoded, note, velocity) decoded[:control] = decoded[:control].merge(bank: note)