added whitespace

This commit is contained in:
onyx-and-iris 2023-08-27 21:36:34 +01:00
parent 8d2cc774ac
commit f594f2a9a0
2 changed files with 5 additions and 0 deletions

View File

@ -3,16 +3,20 @@ require_relative "../../lib/voicemeeter"
class Main class Main
def initialize(vm) def initialize(vm)
@vm = vm @vm = vm
@vm.on :pdirty do @vm.on :pdirty do
puts "pdirty" puts "pdirty"
end end
@vm.on :mdirty do @vm.on :mdirty do
puts "mdirty" puts "mdirty"
end end
@vm.on :midi do @vm.on :midi do
current = @vm.midi.current current = @vm.midi.current
puts "Value of midi input #{current}: #{@vm.midi.get(current)}" puts "Value of midi input #{current}: #{@vm.midi.get(current)}"
end end
@vm.on :ldirty do @vm.on :ldirty do
@vm.bus.each do |bus| @vm.bus.each do |bus|
puts "#{bus} #{bus.levels.all.join(" ")}" if bus.levels.isdirty? puts "#{bus} #{bus.levels.all.join(" ")}" if bus.levels.isdirty?

View File

@ -5,6 +5,7 @@ class Main
def initialize(vm) def initialize(vm)
@vm = vm @vm = vm
@vm.on :midi do @vm.on :midi do
current = @vm.midi.current current = @vm.midi.current
handler(current, @vm.midi.get(current)) handler(current, @vm.midi.get(current))