mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2026-04-19 01:13:32 +00:00
update midi example to test input sliders 0-7
This commit is contained in:
@@ -21,8 +21,8 @@ class Main
|
|||||||
end
|
end
|
||||||
|
|
||||||
def midi_handler(i, val)
|
def midi_handler(i, val)
|
||||||
if i.between?(1, 8)
|
if i.between?(0, 7)
|
||||||
@vm.strip[i - 1].gainlayer[GAINLAYER].gain = (val * 72 / 127) - 60
|
@vm.strip[i].gainlayer[GAINLAYER].gain = (val * 72 / 127) - 60
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user