class Shmidi::Control
Attributes
channel[RW]
note[RW]
Public Class Methods
new(socket, channel, note)
click to toggle source
# File lib/shmidi/control.rb, line 11 def initialize(socket, channel, note) @socket = socket @channel = channel @note = note end
Public Instance Methods
id()
click to toggle source
# File lib/shmidi/control.rb, line 17 def id "#{@channel}:#{@note}" end
socket()
click to toggle source
# File lib/shmidi/control.rb, line 7 def socket Socket[@socket] end