a basic interface for storing midi values

This commit is contained in:
onyx-and-iris 2023-07-07 02:34:35 +01:00
parent a58f5e08c6
commit 69519b482d

17
lib/voicemeeter/midi.rb Normal file
View File

@ -0,0 +1,17 @@
module Voicemeeter
class Midi
attr_accessor :cache, :current, :channel
def initialize
@cache = Hash.new
end
def get(key)
@cache[key]
end
def set(key, velocity)
@cache[key] = velocity
end
end
end