13
0
livetrax/libs/surfaces/mackie/scripts/dump.rb
Paul Davis 45d3ec1437 merged with 1697 revision of trunk (which is post-rc1 but pre-rc2
git-svn-id: svn://localhost/ardour2/branches/2.1-staging@1698 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-04-11 13:07:51 +00:00

12 lines
190 B
Ruby
Executable File

#! /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