mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
add a simple TOC to fluidsettings
This commit is contained in:
parent
61ea49d24a
commit
32cf418631
2 changed files with 30 additions and 6 deletions
|
@ -11,6 +11,7 @@ https://stackoverflow.com/a/6251757
|
|||
<fluidsettings>
|
||||
<synth>
|
||||
<setting>
|
||||
<isFirst>Synthesizer settings</isFirst>
|
||||
<name>audio-channels</name>
|
||||
<type>int</type>
|
||||
<def>1</def>
|
||||
|
@ -174,6 +175,7 @@ https://stackoverflow.com/a/6251757
|
|||
|
||||
<audio>
|
||||
<setting>
|
||||
<isFirst>Audio driver settings</isFirst>
|
||||
<name>driver</name>
|
||||
<type>str</type>
|
||||
<def>jack (Linux),<br />
|
||||
|
@ -394,6 +396,7 @@ https://stackoverflow.com/a/6251757
|
|||
|
||||
<midi>
|
||||
<setting>
|
||||
<isFirst>MIDI driver settings</isFirst>
|
||||
<name>driver</name>
|
||||
<type>str</type>
|
||||
<def>alsa_seq (Linux),<br />
|
||||
|
@ -468,6 +471,7 @@ https://stackoverflow.com/a/6251757
|
|||
|
||||
<player>
|
||||
<setting>
|
||||
<isFirst>MIDI player settings</isFirst>
|
||||
<name>reset-synth</name>
|
||||
<type>bool</type>
|
||||
<def>1 (TRUE)</def>
|
||||
|
@ -484,6 +488,7 @@ https://stackoverflow.com/a/6251757
|
|||
|
||||
<shell>
|
||||
<setting>
|
||||
<isFirst>Shell (command line) settings</isFirst>
|
||||
<name>prompt</name>
|
||||
<type>str</type>
|
||||
<def>""</def>
|
||||
|
|
|
@ -45,15 +45,34 @@ td
|
|||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
.audio {background-color: hsl(165, 100%, 90%);}
|
||||
.midi {background-color: hsl(105, 100%, 90%);}
|
||||
.player {background-color: hsl(60, 100%, 85%);}
|
||||
.shell {background-color: hsl(40, 100%, 90%);}
|
||||
.synth {background-color: hsl(20, 100%, 90%);}
|
||||
.audio {background-color: hsl(170, 100%, 90%);}
|
||||
.midi {background-color: hsl(125, 100%, 90%);}
|
||||
.player {background-color: hsl(85, 100%, 85%);}
|
||||
.shell {background-color: hsl(60, 100%, 90%);}
|
||||
.synth {background-color: hsl(35, 100%, 90%);}
|
||||
</style>
|
||||
<title>FluidSettings</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>FluidSettings</h2>
|
||||
<h1>FluidSettings</h1>
|
||||
|
||||
<ul>
|
||||
<!-- Select the first setting of each group and use it for building up a TOC -->
|
||||
<xsl:for-each select="fluidsettings/*/*[isFirst]">
|
||||
<xsl:sort select="name(..)" />
|
||||
<li style="margin-bottom: 15px">
|
||||
<xsl:attribute name="class">
|
||||
<xsl:value-of select="name(..)" />
|
||||
</xsl:attribute>
|
||||
<a>
|
||||
<xsl:attribute name="href"><![CDATA[#]]><xsl:value-of select="name(..)" /><![CDATA[.]]><xsl:value-of select="name" /></xsl:attribute>
|
||||
<xsl:value-of select="isFirst" />
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
|
||||
|
||||
<table>
|
||||
<!--print each and every setting row by row in the table-->
|
||||
<xsl:for-each select="fluidsettings/*/*">
|
||||
|
|
Loading…
Reference in a new issue