voicemeeter-rb/lib/voicemeeter/midi.rb

18 lines
240 B
Ruby
Raw Normal View History

module Voicemeeter
class Midi
attr_accessor :cache, :current, :channel
def initialize
2023-07-14 12:01:41 +01:00
@cache = {}
end
def get(key)
2023-07-14 00:56:16 +01:00
cache[key]
end
def set(key, velocity)
2023-07-14 00:56:16 +01:00
cache[key] = velocity
end
end
end