Class: Voicemeeter::Midi

Inherits:
Object
  • Object
show all
Defined in:
lib/voicemeeter/midi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMidi

Returns a new instance of Midi.



6
7
8
# File 'lib/voicemeeter/midi.rb', line 6

def initialize
  @cache = {}
end

Instance Attribute Details

#cacheObject (readonly)

Returns the value of attribute cache.



4
5
6
# File 'lib/voicemeeter/midi.rb', line 4

def cache
  @cache
end

#channelObject

Returns the value of attribute channel.



3
4
5
# File 'lib/voicemeeter/midi.rb', line 3

def channel
  @channel
end

#currentObject

Returns the value of attribute current.



3
4
5
# File 'lib/voicemeeter/midi.rb', line 3

def current
  @current
end

Instance Method Details

#get(key) ⇒ Object



10
11
12
# File 'lib/voicemeeter/midi.rb', line 10

def get(key)
  cache[key]
end