Sophie

Sophie

distrib > Mandriva > 8.0 > i586 > media > main > by-pkgid > 6a3ae4e037535c68bd8a5fcce387b3cb > files > 823

kdemultimedia-2.1.1-5mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Patchsets
 </TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
"><LINK
REL="HOME"
TITLE="The KMidi Handbook"
HREF="index.html"><LINK
REL="UP"
TITLE="Usage
 "
HREF="usage.html"><LINK
REL="PREVIOUS"
TITLE="Configuring
 "
HREF="configuring.html"><LINK
REL="NEXT"
TITLE="Polyphony
 "
HREF="polyphony.html"><META
HTTP-EQUIV="Content-Style-Type"
CONTENT="text/css"><LINK
REL="stylesheet"
HREF="common/kde-common.css"
TYPE="text/css"><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=iso-8859-1"><META
HTTP-EQUIV="Content-Language"
CONTENT="en"><LINK
REL="stylesheet"
HREF="common/kde-localised.css"
TYPE="text/css"
TITLE="KDE-English"><LINK
REL="stylesheet"
HREF="common/kde-default.css"
TYPE="text/css"
TITLE="KDE-Default"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#AA0000"
VLINK="#AA0055"
ALINK="#AA0000"
STYLE="font-family: sans-serif;"
><DIV
CLASS="logoheader"
><A
HREF="http://www.kde.org/"
><IMG
SRC="common/logotp3.png"
BORDER="0"
ALT="The K Desktop Environment"
HEIGHT="62"
WIDTH="229"></A
></DIV
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The <SPAN
CLASS="APPLICATION"
>KMidi</SPAN
> Handbook</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="configuring.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 2. Usage</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="polyphony.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="PATCHSETS"
>2.5. Patchsets</A
></H1
><P
>On the bottom panel at the top left you'll find the patchset selector.
For KMidi as distributed, you'll see three patchset options: <TT
CLASS="LITERAL"
>piano+guitar</TT
>, <TT
CLASS="LITERAL"
>piano</TT
>, and
<TT
CLASS="LITERAL"
>guitar</TT
>. There isn't any real point to selecting
the piano or guitar patchsets; the choices are there merely as an
illustration. When you acquire a bunch of patchsets, you can set things up so as
to switch between them from the panel. Here is how to do that:</P
><P
>For each patchset, create a <TT
CLASS="LITERAL"
>cfg</TT
> file
describing the patches and their banks and instrument (midi ``program'')
numbers. Then in the file <TT
CLASS="LITERAL"
>timidity.cfg</TT
>, enter a
line <TT
CLASS="LITERAL"
>source</TT
> &#60;filename&#62; and a preceding line
if &#60;n&#62;, where &#60;filename&#62; is the name you gave to the file describing
the patches, and &#60;n&#62; is the line where &#60;filename&#62; will appear in
KMidi's panel in the ``Select Patchset'' box. Clicking on this name will select
the patchset. The numbering of the patchsets starts with number 0.</P
><P
>In <TT
CLASS="LITERAL"
>cfg</TT
> files, the banks/drumsets and names
of patches must be given, since those that are not declared will not be loaded
from files (GUS patch files or sound fonts) even though the patches are
available. This way it's easy to exclude certain patches from a sound font so as
to load better ones from a subseqently loaded font. Just don't declare them
before you've asked to load the font. .</P
><P
>When the same patch of the same bank or drumset is declared more than once,
only the first declaration counts. So put your best fonts first.</P
><P
>There is a utility <TT
CLASS="LITERAL"
>sf2cfg</TT
> to construct a
<TT
CLASS="LITERAL"
>cfg</TT
> file for a <TT
CLASS="LITERAL"
>sbk/sf2</TT
> sound font, which spits out all the patches that
are present in the font. Also, I've included sample <TT
CLASS="LITERAL"
>cfg</TT
> files for <TT
CLASS="LITERAL"
>chaos8m.sf2</TT
> and
<TT
CLASS="LITERAL"
>chaos12m.sf2</TT
>.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="configuring.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="polyphony.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Configuring</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="usage.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Polyphony</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>