<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >Command Line Options </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="Effects " HREF="effects.html"><LINK REL="NEXT" TITLE="Questions and Answers " HREF="questions-and-answers.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="effects.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 2. Usage</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="questions-and-answers.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="COMMAND-LINE-OPTIONS" >2.8. Command Line Options</A ></H1 ><P >Except for giving the names of one or more midi files on the command line, the material in this section is probably not very useful to know about. If you have a need for these options, you'd probably prefer to use the command line version of this program: ``timidity''.</P ><P ><DIV CLASS="VARIABLELIST" ><DL ><DT >kmidi</DT ><DD ><P >[options] filename [...]</P ></DD ></DL ></DIV ></P ><P >Use "-" as filename to read a MIDI file from stdin</P ><P ><DIV CLASS="VARIABLELIST" ><DL ><DT >Options:</DT ><DD ><P ></P ></DD ><DT >-o filename</DT ><DD ><P >Place output on filename, which may be a file, device, or HP-UX audio server, depending on the output mode selected with the <I CLASS="EMPHASIS" >-O</I > option. The special filename ``-'' causes output to be placed on stdout. </P ></DD ><DT >-O mode</DT ><DD ><P >Selects the output mode from the compiled-in alternatives. mode must begin with one of the supported output mode identifiers. Run TiMidity with the <I CLASS="EMPHASIS" >-h</I > option to see a list. </P ></DD ><DT >-sf</DT ><DD ><P >Set sampling frequency to f (Hz or kHz) Not all sound devices are capable of all frequencies -- an approximate frequency may be selected, depending on the implementation.</P ></DD ><DT >-a</DT ><DD ><P >Enable the antialiasing filter. Samples are run through a lowpass filter before playing, which reduces aliasing noise at low resampling frequencies.</P ></DD ><DT >-f</DT ><DD ><P >Enable fast decay mode. Toggles fast envelopes. Some MIDI files sound better when notes decay slower -- it gives the impression of reverb.</P ></DD ><DT >-pn</DT ><DD ><P >Sets polyphony (maximum number of simultaneous voices).</P ></DD ><DT >-An</DT ><DD ><P >Amplify volume by n percent (may cause clipping)</P ></DD ><DT >-Cn</DT ><DD ><P >Sets the ratio of sampling and control frequencies. This determines how often envelopes are recalculated -- small ratios yield better quality but use more CPU time.</P ></DD ><DT >-E</DT ><DD ><P >Turns on Witczak's effect filters for chorus, reverb, phaser, and celeste.</P ></DD ><DT >-#n</DT ><DD ><P >Select patch set</P ></DD ><DT >-L dir</DT ><DD ><P >Append dir to search path</P ></DD ><DT >-c file</DT ><DD ><P >Read extra configuration file</P ></DD ><DT >-In</DT ><DD ><P >Use program n as the default</P ></DD ><DT >-P</DT ><DD ><P >file Use patch file for all programs</P ></DD ><DT >-Dn</DT ><DD ><P >Play drums on channel n</P ></DD ><DT >-Qn</DT ><DD ><P >Ignore channel n</P ></DD ><DT >-F</DT ><DD ><P >Enable fast panning</P ></DD ><DT >-U</DT ><DD ><P >Unload instruments from memory between MIDI files</P ></DD ><DT >-i mode</DT ><DD ><P >Select user interface (see below for list)</P ></DD ><DT >-Bn</DT ><DD ><P >Set number of buffer fragments</P ></DD ><DT >-h</DT ><DD ><P >Display this help message</P ></DD ></DL ></DIV ></P ><P >Available output modes (-O option):</P ><P ><DIV CLASS="VARIABLELIST" ><DL ><DT >-Od</DT ><DD ><P >Linux dsp device</P ></DD ><DT >-Ow</DT ><DD ><P >RIFF WAVE file</P ></DD ><DT >-Or</DT ><DD ><P >raw waveform data</P ></DD ></DL ></DIV ></P ><P >Output format options (append to -O? option):</P ><P ><DIV CLASS="VARIABLELIST" ><DL ><DT >`8'</DT ><DD ><P >8-bit sample width</P ></DD ><DT >`1'</DT ><DD ><P >16-bit sample width</P ></DD ><DT >`U'</DT ><DD ><P >uLaw encoding</P ></DD ><DT >`l'</DT ><DD ><P >linear encoding</P ></DD ><DT >`M'</DT ><DD ><P >monophonic</P ></DD ><DT >`S'</DT ><DD ><P >stereo</P ></DD ><DT >`s'</DT ><DD ><P >signed output</P ></DD ><DT >`u'</DT ><DD ><P >unsigned output</P ></DD ><DT >`x'</DT ><DD ><P >byte-swapped output</P ></DD ></DL ></DIV ></P ><P >Available interfaces (-i option):</P ><P ><DIV CLASS="VARIABLELIST" ><DL ><DT >-iq</DT ><DD ><P >kmidi qt interface</P ></DD ><DT >-id</DT ><DD ><P >dumb interface</P ></DD ></DL ></DIV ></P ><P >Interface options (append to -i? option):</P ><P ><DIV CLASS="VARIABLELIST" ><DL ><DT >`v'</DT ><DD ><P >more verbose (cumulative)</P ></DD ><DT >`q'</DT ><DD ><P >quieter (cumulative)</P ></DD ><DT >`t'</DT ><DD ><P >trace playing</P ></DD ><DT >-i</DT ><DD ><P >mode Select user interface (see below for list) </P ></DD ><DT >-Bn</DT ><DD ><P >Set number of buffer fragments </P ></DD ><DT >-h</DT ><DD ><P >Display this help message</P ></DD ></DL ></DIV ></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="effects.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="questions-and-answers.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Effects</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="usage.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Questions and Answers</TD ></TR ></TABLE ></DIV ></BODY ></HTML >