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.



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

def initialize
  @cache = Hash.new
end

Instance Attribute Details

#cacheObject

Returns the value of attribute cache.



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

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



13
14
15
# File 'lib/voicemeeter/midi.rb', line 13

def get(key)
  @cache[key]
end

#set(key, vel) ⇒ Object



17
18
19
# File 'lib/voicemeeter/midi.rb', line 17

def set(key, vel)
  @cache[key] = vel
end

#to_sObject



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

def to_s
  "#{self.class.name.split("::").last}"
end