Class: Voicemeeter::Midi
- Inherits:
-
Object
- Object
- Voicemeeter::Midi
- Defined in:
- lib/voicemeeter/midi.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#current ⇒ Object
Returns the value of attribute current.
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize ⇒ Midi
constructor
A new instance of Midi.
- #set(key, vel) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Midi
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
#cache ⇒ Object
Returns the value of attribute cache.
3 4 5 |
# File 'lib/voicemeeter/midi.rb', line 3 def cache @cache end |
#channel ⇒ Object
Returns the value of attribute channel.
3 4 5 |
# File 'lib/voicemeeter/midi.rb', line 3 def channel @channel end |
#current ⇒ Object
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_s ⇒ Object
9 10 11 |
# File 'lib/voicemeeter/midi.rb', line 9 def to_s "#{self.class.name.split("::").last}" end |