Module: Portmidi::PM_Map

Extended by:
FFI::Library
Defined in:
lib/portmidi/pm_map.rb

Defined Under Namespace

Classes: DeviceInfo, Event

Class Method Summary collapse

Class Method Details

.encode_message(status, data1, data2) ⇒ Object



38
39
40
# File 'lib/portmidi/pm_map.rb', line 38

def self.encode_message(status, data1, data2)
  ((((data2) << 16) & 0xFF0000) | (((data1) << 8) & 0xFF00) | ((status) & 0xFF))
end