mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-21 17:30:49 +00:00
added whitespace
This commit is contained in:
parent
8d2cc774ac
commit
f594f2a9a0
@ -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?
|
||||||
|
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user