Class: SMF::ControllerDestinationSetting

Inherits:
ExclusiveF0 show all
Defined in:
lib/smf/toy/gm.rb

Direct Known Subclasses

CDSChannelPressure, CDSControlChange

Instance Attribute Summary

Attributes inherited from ExclusiveF0

#data

Attributes inherited from Event

#offset

Instance Method Summary collapse

Methods inherited from ExclusiveF0

#==

Methods inherited from Event

#<=>, #==, #eql?, #hash

Constructor Details

#initialize(offset, id2, ch, pp_rr, dev = 0x7f) ⇒ ControllerDestinationSetting

Returns a new instance of ControllerDestinationSetting.



190
191
192
193
194
# File 'lib/smf/toy/gm.rb', line 190

def initialize(offset, id2, ch, pp_rr, dev=0x7f)
  # id2:1|3, ch:0/15, pp:0/5, rr:0/2**7-1
  super(offset, [0x7f, dev, 0x09, id2, ch, pp_rr, 0xf7].
   flatten.pack('C*'))
end