summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/scripts/dump.rb
blob: f1e341fb341d48fbaba8f2deeea198c01fbc428a (plain)
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/ruby

while !File.exist? ARGV[0]
  sleep 0.010
end

file = File.open ARGV[0], 'r'

while bytes = file.sysread( 3 )
  puts "%02x %02x %02x" % [ bytes[0], bytes[1], bytes[2] ]
end