summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/oomfiles
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-03-07 19:01:11 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-03-07 19:01:11 +0000
commite40fc849149dd97c248866a4a1d026dda5e57b62 (patch)
treeb12b358f3b3a0608001d30403358f8443118ec5f /attic/muse2-oom/muse2/oomfiles
parent1bd4f2e8d9745cabb667b043171cad22c8577768 (diff)
clean3
Diffstat (limited to 'attic/muse2-oom/muse2/oomfiles')
-rwxr-xr-xattic/muse2-oom/muse2/oomfiles/rgd2muse.sh9
-rw-r--r--attic/muse2-oom/muse2/oomfiles/rgd2muse.xsl33
2 files changed, 42 insertions, 0 deletions
diff --git a/attic/muse2-oom/muse2/oomfiles/rgd2muse.sh b/attic/muse2-oom/muse2/oomfiles/rgd2muse.sh
new file mode 100755
index 00000000..651cd529
--- /dev/null
+++ b/attic/muse2-oom/muse2/oomfiles/rgd2muse.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+#test $# != 1 && echo "Usage: $0 <rgd-file>" && exit 1
+mkdir -p MUSE_MAPS
+for f in *.rgd
+do
+ gunzip -c $f | xsltproc $(dirname $0)/rgd2muse.xsl - > "MUSE_MAPS/$(basename $f .rgd).idf"
+done
+
diff --git a/attic/muse2-oom/muse2/oomfiles/rgd2muse.xsl b/attic/muse2-oom/muse2/oomfiles/rgd2muse.xsl
new file mode 100644
index 00000000..6502435b
--- /dev/null
+++ b/attic/muse2-oom/muse2/oomfiles/rgd2muse.xsl
@@ -0,0 +1,33 @@
+<?xml version="1.0" ?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:output method="xml" indent="yes"/>
+
+<xsl:template match="/">
+<muse version="1.0">
+ <xsl:apply-templates/>
+</muse>
+</xsl:template>
+
+<xsl:template match="device">
+ <MidiInstrument name="{@name}">
+ <xsl:apply-templates/>
+ <Controller name="Modulation" l="1" />
+ <Controller name="reverb" l="3" />
+ <Controller name="MainVolume" l="7" />
+ <Controller name="Pan" l="10" />
+ <Controller name="Expression" l="11" />
+ <Controller name="Program" type="Program" init="0x0" />
+ </MidiInstrument>
+</xsl:template>
+
+<xsl:template match="bank">
+ <PatchGroup name="{@name}" >
+ <xsl:apply-templates/>
+ </PatchGroup>
+</xsl:template>
+
+<xsl:template match="program">
+ <Patch name="{@name}" hbank="{../@msb}" lbank="{../@lsb}" prog="{./@id}" />
+</xsl:template>
+</xsl:stylesheet>