mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 23:00:48 +00:00
a basic interface for storing midi values
This commit is contained in:
parent
a58f5e08c6
commit
69519b482d
17
lib/voicemeeter/midi.rb
Normal file
17
lib/voicemeeter/midi.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user