summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/oomfiles/rgd2muse.xsl
blob: 6502435be653c589fb0e0df9b792a6eb6e884eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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>