update midi example to test input sliders 0-7

This commit is contained in:
onyx-and-iris 2023-07-29 21:36:05 +01:00
parent 3f668ce6c2
commit d2fd1c1403

View File

@ -21,8 +21,8 @@ class Main
end
def midi_handler(i, val)
if i.between?(1, 8)
@vm.strip[i - 1].gainlayer[GAINLAYER].gain = (val * 72 / 127) - 60
if i.between?(0, 7)
@vm.strip[i].gainlayer[GAINLAYER].gain = (val * 72 / 127) - 60
end
end
end