Sha256: fc7364d167c20ecc42399b4ea06187560dfa8a43caad6998db1442b259bffa6a
Contents?: true
Size: 412 Bytes
Versions: 6
Compression:
Stored size: 412 Bytes
Contents
#!/usr/bin/env ruby fname = ARGV.shift fail "Must specify filename." unless fname outname = fname.gsub(/\.raw/, ".txt") bytes = File.read(fname).bytes.map { |x| "0x%02X" % x } output = [bytes.shift(5).join(", ")] # SysEx vendor header... output << bytes.shift(2).join(", ") # Apparent prefix... while (row = bytes.shift(3).join(", ")) != "" output << row end File.write(outname, output.join("\n") + "\n")
Version data entries
6 entries across 6 versions & 1 rubygems