From f594f2a9a075fa11c1ff587c966740e28081b7d4 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 27 Aug 2023 21:36:34 +0100 Subject: [PATCH] added whitespace --- examples/events/main.rb | 4 ++++ examples/midi/main.rb | 1 + 2 files changed, 5 insertions(+) diff --git a/examples/events/main.rb b/examples/events/main.rb index 0d8f931..b3c8c79 100644 --- a/examples/events/main.rb +++ b/examples/events/main.rb @@ -3,16 +3,20 @@ require_relative "../../lib/voicemeeter" class Main def initialize(vm) @vm = vm + @vm.on :pdirty do puts "pdirty" end + @vm.on :mdirty do puts "mdirty" end + @vm.on :midi do current = @vm.midi.current puts "Value of midi input #{current}: #{@vm.midi.get(current)}" end + @vm.on :ldirty do @vm.bus.each do |bus| puts "#{bus} #{bus.levels.all.join(" ")}" if bus.levels.isdirty? diff --git a/examples/midi/main.rb b/examples/midi/main.rb index 421481b..635c2e9 100644 --- a/examples/midi/main.rb +++ b/examples/midi/main.rb @@ -5,6 +5,7 @@ class Main def initialize(vm) @vm = vm + @vm.on :midi do current = @vm.midi.current handler(current, @vm.midi.get(current))