mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
update midi example to test input sliders 0-7
This commit is contained in:
parent
3f668ce6c2
commit
d2fd1c1403
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user