module UniMIDI::TypeConversion
Utility for converting between different data formats
Public Instance Methods
numeric_byte_array_to_hex_string(bytes)
click to toggle source
Convert an array of numeric bytes to string of hex bytes @param [Array<Integer>] byte An array of numeric bytes eg [0x90, 0x40, 0x40] @return [String] A string of hex bytes eg “904040”
# File lib/unimidi/type_conversion.rb, line 11 def numeric_byte_array_to_hex_string(bytes) bytes.map { |b| b.to_s(16) }.join end