initial commit

This commit is contained in:
2014-01-18 15:06:11 +01:00
parent 3fabb8dcf8
commit 768bec39b3
408 changed files with 171325 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
import sys
import struct
if len(sys.argv) >= 2:
file = open(sys.argv[1])
buffer = file.read(164)
file.close()
header = struct.unpack("HHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII", buffer)
print "Resolution : " + str(header[0])
print "RPM : " + str(header[1])
for c in range(8):
print "> Channel " + str(c)
print "Timer : " + str(header[2+c*5+0])
print "Volume : " + str(header[2+c*5+1])
print "Duty : " + str(header[2+c*5+2])
print "Decay : " + str(header[2+c*5+3])
print "Offset : " + str(header[2+c*5+4])