summaryrefslogtreecommitdiff
path: root/test/kit
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-01 20:28:05 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-01 20:28:05 +0100
commit7688cf531ab17562b0d984073891fae4d7d2f773 (patch)
tree98e3924078a0288620c88e494d9015ef789320e6 /test/kit
parentaa5d610c68f5b5de37caf9f37cd96498fb72bacf (diff)
Add unit tests.
Diffstat (limited to 'test/kit')
-rw-r--r--test/kit/0000.wavbin0 -> 46 bytes
-rw-r--r--test/kit/1111.wavbin0 -> 46 bytes
-rw-r--r--test/kit/2222.wavbin0 -> 46 bytes
-rw-r--r--test/kit/ffff.wavbin0 -> 46 bytes
-rw-r--r--test/kit/instr1.xml16
-rw-r--r--test/kit/instr2.xml16
-rw-r--r--test/kit/kit1.xml23
-rw-r--r--test/kit/kit2.xml23
8 files changed, 78 insertions, 0 deletions
diff --git a/test/kit/0000.wav b/test/kit/0000.wav
new file mode 100644
index 0000000..76d3db2
--- /dev/null
+++ b/test/kit/0000.wav
Binary files differ
diff --git a/test/kit/1111.wav b/test/kit/1111.wav
new file mode 100644
index 0000000..ae5b743
--- /dev/null
+++ b/test/kit/1111.wav
Binary files differ
diff --git a/test/kit/2222.wav b/test/kit/2222.wav
new file mode 100644
index 0000000..aa2f6e6
--- /dev/null
+++ b/test/kit/2222.wav
Binary files differ
diff --git a/test/kit/ffff.wav b/test/kit/ffff.wav
new file mode 100644
index 0000000..76d3db2
--- /dev/null
+++ b/test/kit/ffff.wav
Binary files differ
diff --git a/test/kit/instr1.xml b/test/kit/instr1.xml
new file mode 100644
index 0000000..3257c95
--- /dev/null
+++ b/test/kit/instr1.xml
@@ -0,0 +1,16 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<instrument name="snare">
+ <samples>
+ <sample name="stroke1">
+ <audiofile channel="ch1" file="1111.wav"/>
+ <audiofile channel="ch2" file="1111.wav"/>
+ <audiofile channel="ch3" file="1111.wav"/>
+ <audiofile channel="ch4" file="1111.wav"/>
+ </sample>
+ </samples>
+ <velocities>
+ <velocity lower="0" upper="1">
+ <sampleref probability="1" name="stroke1"/>
+ </velocity>
+ </velocities>
+</instrument>
diff --git a/test/kit/instr2.xml b/test/kit/instr2.xml
new file mode 100644
index 0000000..30a988a
--- /dev/null
+++ b/test/kit/instr2.xml
@@ -0,0 +1,16 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<instrument name="snare">
+ <samples>
+ <sample name="stroke1">
+ <audiofile channel="ch1" file="2222.wav"/>
+ <audiofile channel="ch2" file="2222.wav"/>
+ <audiofile channel="ch3" file="2222.wav"/>
+ <audiofile channel="ch4" file="2222.wav"/>
+ </sample>
+ </samples>
+ <velocities>
+ <velocity lower="0" upper="1">
+ <sampleref probability="1" name="stroke1"/>
+ </velocity>
+ </velocities>
+</instrument>
diff --git a/test/kit/kit1.xml b/test/kit/kit1.xml
new file mode 100644
index 0000000..41cede4
--- /dev/null
+++ b/test/kit/kit1.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<drumkit name="Test drumkit" description="A test drumkit">
+ <channels>
+ <channel name="ch1"/>
+ <channel name="ch2"/>
+ <channel name="ch3"/>
+ <channel name="ch4"/>
+ </channels>
+ <instruments>
+ <instrument name="instr1" file="instr1.xml">
+ <channelmap in="ch1" out="ch1"/>
+ <channelmap in="ch2" out="ch2"/>
+ <channelmap in="ch3" out="ch3"/>
+ <channelmap in="ch4" out="ch4"/>
+ </instrument>
+ <instrument name="instr1" file="instr2.xml">
+ <channelmap in="ch1" out="ch1"/>
+ <channelmap in="ch2" out="ch2"/>
+ <channelmap in="ch3" out="ch3"/>
+ <channelmap in="ch4" out="ch4"/>
+ </instrument>
+ </instruments>
+</drumkit>
diff --git a/test/kit/kit2.xml b/test/kit/kit2.xml
new file mode 100644
index 0000000..41cede4
--- /dev/null
+++ b/test/kit/kit2.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<drumkit name="Test drumkit" description="A test drumkit">
+ <channels>
+ <channel name="ch1"/>
+ <channel name="ch2"/>
+ <channel name="ch3"/>
+ <channel name="ch4"/>
+ </channels>
+ <instruments>
+ <instrument name="instr1" file="instr1.xml">
+ <channelmap in="ch1" out="ch1"/>
+ <channelmap in="ch2" out="ch2"/>
+ <channelmap in="ch3" out="ch3"/>
+ <channelmap in="ch4" out="ch4"/>
+ </instrument>
+ <instrument name="instr1" file="instr2.xml">
+ <channelmap in="ch1" out="ch1"/>
+ <channelmap in="ch2" out="ch2"/>
+ <channelmap in="ch3" out="ch3"/>
+ <channelmap in="ch4" out="ch4"/>
+ </instrument>
+ </instruments>
+</drumkit>