summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-20 10:57:09 +0800
committerrekado <rekado@elephly.net>2013-01-20 10:57:09 +0800
commitaf651415a03e5ab5c3d8fd38bfa5b9a118a387b0 (patch)
treee1f613e6511b5fafc1062b4cf0cb1dfbc606e393 /src
parentdda62de3830503e45ee809aa0492dfc6c386e5c8 (diff)
cut out individual samples more accurately
Diffstat (limited to 'src')
-rw-r--r--src/data/0e.rawbin93714 -> 93714 bytes
-rw-r--r--src/data/0g.rawbin127238 -> 127238 bytes
-rw-r--r--src/data/1c.rawbin116478 -> 116478 bytes
-rw-r--r--src/data/1e.rawbin79818 -> 79818 bytes
-rw-r--r--src/data/1g.rawbin92136 -> 92136 bytes
-rw-r--r--src/data/2c.rawbin103936 -> 103936 bytes
-rw-r--r--src/data/2e.rawbin97600 -> 97600 bytes
-rw-r--r--src/data/2g.rawbin90326 -> 90326 bytes
-rw-r--r--src/data/3c.rawbin63780 -> 63780 bytes
-rw-r--r--src/data/3e.rawbin47926 -> 47926 bytes
-rw-r--r--src/data/3g.rawbin79038 -> 79038 bytes
-rw-r--r--src/data/4a.rawbin24510 -> 24440 bytes
-rw-r--r--src/data/4c.rawbin55794 -> 55794 bytes
-rw-r--r--src/data/4e.rawbin27854 -> 27854 bytes
-rw-r--r--src/data/convert.rb48
15 files changed, 48 insertions, 0 deletions
diff --git a/src/data/0e.raw b/src/data/0e.raw
index f268c35..3236a7c 100644
--- a/src/data/0e.raw
+++ b/src/data/0e.raw
Binary files differ
diff --git a/src/data/0g.raw b/src/data/0g.raw
index 99c7e5f..4392502 100644
--- a/src/data/0g.raw
+++ b/src/data/0g.raw
Binary files differ
diff --git a/src/data/1c.raw b/src/data/1c.raw
index 763f817..6cca174 100644
--- a/src/data/1c.raw
+++ b/src/data/1c.raw
Binary files differ
diff --git a/src/data/1e.raw b/src/data/1e.raw
index d52842a..5b90baf 100644
--- a/src/data/1e.raw
+++ b/src/data/1e.raw
Binary files differ
diff --git a/src/data/1g.raw b/src/data/1g.raw
index 1366dca..28dd2f1 100644
--- a/src/data/1g.raw
+++ b/src/data/1g.raw
Binary files differ
diff --git a/src/data/2c.raw b/src/data/2c.raw
index d81f658..5befe2d 100644
--- a/src/data/2c.raw
+++ b/src/data/2c.raw
Binary files differ
diff --git a/src/data/2e.raw b/src/data/2e.raw
index 7167b0c..fb245e1 100644
--- a/src/data/2e.raw
+++ b/src/data/2e.raw
Binary files differ
diff --git a/src/data/2g.raw b/src/data/2g.raw
index 18ade61..7fb1847 100644
--- a/src/data/2g.raw
+++ b/src/data/2g.raw
Binary files differ
diff --git a/src/data/3c.raw b/src/data/3c.raw
index 7bdecfb..d655355 100644
--- a/src/data/3c.raw
+++ b/src/data/3c.raw
Binary files differ
diff --git a/src/data/3e.raw b/src/data/3e.raw
index 614b3e0..f5bc7af 100644
--- a/src/data/3e.raw
+++ b/src/data/3e.raw
Binary files differ
diff --git a/src/data/3g.raw b/src/data/3g.raw
index 07b7de3..6490227 100644
--- a/src/data/3g.raw
+++ b/src/data/3g.raw
Binary files differ
diff --git a/src/data/4a.raw b/src/data/4a.raw
index 8d45375..023de8d 100644
--- a/src/data/4a.raw
+++ b/src/data/4a.raw
Binary files differ
diff --git a/src/data/4c.raw b/src/data/4c.raw
index 3d1972a..da0eb61 100644
--- a/src/data/4c.raw
+++ b/src/data/4c.raw
Binary files differ
diff --git a/src/data/4e.raw b/src/data/4e.raw
index 1802e8c..afbec99 100644
--- a/src/data/4e.raw
+++ b/src/data/4e.raw
Binary files differ
diff --git a/src/data/convert.rb b/src/data/convert.rb
new file mode 100644
index 0000000..5d45bc8
--- /dev/null
+++ b/src/data/convert.rb
@@ -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