cut out individual samples more accurately
authorrekado <rekado@elephly.net>
Sun, 20 Jan 2013 02:57:09 +0000 (10:57 +0800)
committerrekado <rekado@elephly.net>
Sun, 20 Jan 2013 02:57:09 +0000 (10:57 +0800)
15 files changed:
src/data/0e.raw
src/data/0g.raw
src/data/1c.raw
src/data/1e.raw
src/data/1g.raw
src/data/2c.raw
src/data/2e.raw
src/data/2g.raw
src/data/3c.raw
src/data/3e.raw
src/data/3g.raw
src/data/4a.raw
src/data/4c.raw
src/data/4e.raw
src/data/convert.rb [new file with mode: 0644]

index f268c354a2f8c736d210200c509753b61ff64d05..3236a7c6d6c7021c1670a671fd96ba25cd28b931 100644 (file)
Binary files a/src/data/0e.raw and b/src/data/0e.raw differ
index 99c7e5f215aa7190397b2446411a8b2bc0250c13..43925029d6adc794fbbc1e96646adaa8f26033c2 100644 (file)
Binary files a/src/data/0g.raw and b/src/data/0g.raw differ
index 763f81782a22ed3d642f9f3d1c9d6889dbf4dccd..6cca174ade25bb2deadcd556146b8409f1a74c04 100644 (file)
Binary files a/src/data/1c.raw and b/src/data/1c.raw differ
index d52842a8d545f3b2e72622d9132e65a273e9c018..5b90baf9ce3da0086b2ede3d644e01c5d0809705 100644 (file)
Binary files a/src/data/1e.raw and b/src/data/1e.raw differ
index 1366dca0a05e1d939ce305b7397d38f35424230b..28dd2f1b427085c9efcdcd81dfb4fd05a13aebe0 100644 (file)
Binary files a/src/data/1g.raw and b/src/data/1g.raw differ
index d81f658fee3451cd093d9d40d34a2e6b0f7af9b7..5befe2d46335130f41212c753fa3573c97304407 100644 (file)
Binary files a/src/data/2c.raw and b/src/data/2c.raw differ
index 7167b0c07afb972016e7d4283121027b5983b3ae..fb245e1d75124d82174e98d4b81d0a22f55689c4 100644 (file)
Binary files a/src/data/2e.raw and b/src/data/2e.raw differ
index 18ade61bc944e5a02c25512016cbbcf264ed6459..7fb1847258688f37673afe32254c95efd38a1ef6 100644 (file)
Binary files a/src/data/2g.raw and b/src/data/2g.raw differ
index 7bdecfbdecdf6f0a671f695dd876b1c381bc0967..d655355bf8c8eaae6b9c77ee6f3f81eadbf3be8d 100644 (file)
Binary files a/src/data/3c.raw and b/src/data/3c.raw differ
index 614b3e0744a676a86015afa8ca6ebf8048db372e..f5bc7aff6a79cf3ff9cb517185dde59489d30896 100644 (file)
Binary files a/src/data/3e.raw and b/src/data/3e.raw differ
index 07b7de3c8fea8b762c173b620b01e263eec8092b..6490227a88a2e8f77228d0f9520747ac0534fc2a 100644 (file)
Binary files a/src/data/3g.raw and b/src/data/3g.raw differ
index 8d45375f45b6e5426a65110bbc4e581f12fe57f1..023de8d345dada075471333aabc07a4b84e148fc 100644 (file)
Binary files a/src/data/4a.raw and b/src/data/4a.raw differ
index 3d1972a11a5219c5badcdb48c2c6d30bef132235..da0eb6150daabe2aaa7c2f54980664b6fdad3292 100644 (file)
Binary files a/src/data/4c.raw and b/src/data/4c.raw differ
index 1802e8c3ca1cabd3569913ee29b3b902dd2f3b07..afbec999eb781ba40f2a7d0a7567ad74bd07feb0 100644 (file)
Binary files a/src/data/4e.raw and b/src/data/4e.raw differ
diff --git a/src/data/convert.rb b/src/data/convert.rb
new file mode 100644 (file)
index 0000000..5d45bc8
--- /dev/null
@@ -0,0 +1,48 @@
+f = File.open("samples.raw", "r")
+
+kgrp = []
+
+kgrp[ 0]={};  kgrp[ 0][:pos] = 0;       kgrp[ 0][:end] = 36275; 
+kgrp[ 1]={};  kgrp[ 1][:pos] = 36278;   kgrp[ 1][:end] = 83135; 
+kgrp[ 2]={};  kgrp[ 2][:pos] = 83137;   kgrp[ 2][:end] = 146756;
+kgrp[ 3]={};  kgrp[ 3][:pos] = 146758;  kgrp[ 3][:end] = 204997;
+kgrp[ 4]={};  kgrp[ 4][:pos] = 204999;  kgrp[ 4][:end] = 244908;
+kgrp[ 5]={};  kgrp[ 5][:pos] = 244910;  kgrp[ 5][:end] = 290978;
+kgrp[ 6]={};  kgrp[ 6][:pos] = 290980;  kgrp[ 6][:end] = 342948;
+kgrp[ 7]={};  kgrp[ 7][:pos] = 342950;  kgrp[ 7][:end] = 391750;
+kgrp[ 8]={};  kgrp[ 8][:pos] = 391752;  kgrp[ 8][:end] = 436915;
+kgrp[ 9]={};  kgrp[ 9][:pos] = 436917;  kgrp[ 9][:end] = 468807;
+kgrp[10]={};  kgrp[10][:pos] = 468809;  kgrp[10][:end] = 492772;
+kgrp[11]={};  kgrp[11][:pos] = 492774;  kgrp[11][:end] = 532293;
+kgrp[12]={};  kgrp[12][:pos] = 532295;  kgrp[12][:end] = 560192;
+kgrp[13]={};  kgrp[13][:pos] = 560194;  kgrp[13][:end] = 574121;
+kgrp[14]={};  kgrp[14][:pos] = 574123;  kgrp[14][:end] = 586343;
+
+
+(0..14).each do |i|
+  f.seek(2 * kgrp[i][:pos])
+  kgrp[i][:data] = f.read(2 * (kgrp[i][:end] - kgrp[i][:pos]))
+end
+f.close
+
+kgrp[ 0][:name] = "0c"
+kgrp[ 1][:name] = "0e"
+kgrp[ 2][:name] = "0g"
+kgrp[ 3][:name] = "1c"
+kgrp[ 4][:name] = "1e"
+kgrp[ 5][:name] = "1g"
+kgrp[ 6][:name] = "2c"
+kgrp[ 7][:name] = "2e"
+kgrp[ 8][:name] = "2g"
+kgrp[ 9][:name] = "3c"
+kgrp[10][:name] = "3e"
+kgrp[11][:name] = "3g"
+kgrp[12][:name] = "4c"
+kgrp[13][:name] = "4e"
+kgrp[14][:name] = "4a"
+
+kgrp.each do |k|
+  f = File.open("#{k[:name]}.raw", "w")
+  f.write k[:data]
+  f.close
+end