MAN page from Fedora 1 timidity++-2.11.3-8.x86_64.rpm
Section: User Commands (1)
Updated: Nov 10 2001Index
TiMidity++ - MIDI to WAV converter and player
[-options] filename [filenames ...]
TiMidity++ is a converter that converts some of MIDI files(supported formats: Standard MIDI files (*.MID), Recomposer files (*.RCP, *.R36,*.G18, *.G36) and Module files (*.mod)) into formatted audio files(e.g. RIFF WAVE).TiMidity uses Gravis Ultrasound-compatible patch files orSoundfonts (*.sfx, *.sf2) to generate digital audio data from MIDI files.The digital audio data generated by TiMidity can be stored in a file forprocessing, or played in real time through an audio device.
In real time playing, TiMidity can show the lyrics containedin KAR or WRD files.
You can use the following expressions as the filename
- Read a MIDI file from standard input.
- Read a MIDI file from the specified path on a filesystem.
- Read and play all MIDI files in the specified directory.
- Archive File
- Extract and play the file(s) in the archive.If you want to specify a certain MIDI file in the archive,append #<MIDI-filename> to the archive name.The expression after # can use regular expressions(case insensitive).
- For example:
- timidity 'file.zip#file.mid'
- Plays file.mid in file.zip
- timidity 'file.lzh#*.mid'
- Plays any files that match the regular expression '*.mid' in file.zip
- timidity 'file.tgz#*'
- This expression is the same as
Since these mechanism are contained in TiMidity itself,you can use this syntax even in the MS Windows environment.
TiMidity can handle the following archive formats:
- tar (*.tar)
- tar + gzip (*.tar.gz, *.tgz)
- zip (*.zip)
- lzh (*.lzh, *.lha)
- (lh0, lh1, lh2, lh3, lh4, lh5, lh6, lzs, lz5, lz4 are available)
- Play the MIDI file in the specified article on the news server.If a newsgroup is specified TiMidity plays all MIDI files foundin any article posted to that newsgroup.
TiMidity parses MIME Multi-part messages.
The following MIME-types are allowed:
- uuencoded file
- "begin" is required
- base64 encoded
- "Content-Transfer-Encoding: base64" is required
- "Content-Transfer-Encoding: quoted-string" is required
- Mac BinHex format
- only 'HQX' format is available
- Play the file specified in the URL.
plays the specified MIDI-file directly from the network.
If these expression are used in the *.cfg files, you can even usepatch-files (and others) from remote machines.
Timidity can handle the following file formats:
- .MID (Format 0, 1, 2)
- Standard MIDI File
- .RCP, .R36, .G18, .G36 (Recomposer formats (product of COME ON MUSIC co.))
- The Windows version converts these with rcpcv.dll.
- .KAR (Karaoke format)
- Displays the lyrics as a Lyric Meta Event message.
- .MOD, MOD.* (module file)
- .WRD (WRD format)
The following command line options are accepted by TiMidity:
- -A amplification
- Multiplies the master volume by amplification %.Default value is 70%.Higher amplification makes louder sounds.The allowed values of amplification range from 0 to 800%.
- Turns on antialiasing. Samples are run through alowpass filter before playing, which reduces aliasingnoise at low resampling frequencies.
- -B fragments[,buffer-bits]
- For the Linux/FreeBSD/OSS/ALSA/Windows sound driver,selects the number ofbuffer fragments in interactive mode. Increasingthe number of fragments may reduce choppiness whenmany processes are running. It will make TiMidityseem to respond sluggishly to fast forward, rewind,and volume controls, and it will throw the statusdisplay off sync. Specify a fragments number of 0 to usethe maximum number of fragments available.
- -b mode
- -C ratio
- Sets the ratio of sampling and control frequencies.This determines how often envelopes are recalculated-- small ratios yield better quality but usemore CPU time.
- -c filename
- Reads an extra configuration file.
- -D channel
- Marks channel as a drum channel. If channel isnegative, channel -channel is marked as an instru-mental channel. If channel is 0, all channels aremarked as instrumental.
- -d dir
- Specifies the directory containing installed dynamic-link interface modules.
- Make TiMidity evil. For the Win32 version, thisincreases the task priority by one. It can givebetter playback when you switch tasks at theexpense of slowing all other tasks down.
- -E mode
- Set TiMidity extend modes. The following modes are available(capitalized switch means disable this feature):
- Enable/disable modulation controlling.
- Enable/disable portamento controlling.
- Enable/disable NRPM vibration.
- Enable/disable channel pressure controlling.
- Enable/disable tracing all Text Meta Events.
- Accept/reject pronouncing multiple same notes.
- m HH
- Sets the manufacturer ID to HH (where HH are two hex-digits).
HH values of GM/gm, GS/gs or XG/xgare understood as 41, 43 and 7e respectively.
- b n
- Use tone bank n as the default.
- B bank
- Sets the bank number of all channels to bank.
- F args
- For effects. See below.
- Turns on fast panning to accommodate MIDI piecesthat expect panning adjustments to affect notesthat are already playing. Some files that don'texpect this have a habit of flipping balancerapidly between left and right, which can causesevere popping when the -F flag is used.
In the current version of TiMidity this option is a toggle.
- Toggles fast envelopes. This option makes TiMidity fasterbut the release time of the notes are shortened.
- -g sec
- Open the Sound-Spectrogram window. This option is activated ifthe system has support for the X Window System.
- Show the help message.
- -I voice[/c]
- Use the program number as the default instrument.Any Program Change events in MIDI files will overridethis option.
If voice is followed by /c the default program numberof the channel c is specified by voice.
- -i interface
- Selects the user interfaces from the compiled-inalternatives. interface must be begun with one of thesupported interface identifiers. Run TiMidity withthe -h option to see a list. The following identifiersmay be available:
- dumb interface
- ncurses interface
- S-Lang interface
- X Athena Widget interface
- Tcl/Tk interface
- Motif interface
- vt100 interface
- Emacs interface (use M-x timidity in Emacs)
- skin interface
Environment variable TIMIDITY_SKIN must be set tothe path of the skin data (compressed data are also supported).
- GTK interface
- Launch timidity as MIDI server.
- Launch timidity as ALSA sequencer client.
- Interface options
- Option characters may be added immediatelyafter the interface identifier. The followingoptions are recognized:
- Increases verbosity level. This option is cumulative.
- Decreases verbosity level. This option is cumulative.
- Toggles trace mode. In trace mode,TiMidity attempts to display itscurrent state in real time. For theLinux sound driver, this is accomplishedthrough the use of short DMAbuffer fragments, which can be tunedvia the -B option.
- Loop playing (some interfaces ignore this option)
- Randomize file list arguments before playing
- Sort file list arguments before playing
- Enable the loading of patch files during play.
- -k msec
- Specify audio queue time limit to reduce voices.If the remaining audio buffer is less than msec milliseconds,TiMidity tries to kill some voices.This feature makes it possible to play complicated MIDI files on slow CPUs.Setting msec to zero tells TiMidity to never remove any voices.
- -L directory
- Adds directory to the library path. Patch, configuration,and MIDI files are searched along thispath. Directories added last will be searchedfirst. Note that the current directory is alwayssearched first before the library path.
- -m time
- Modify envelope volume decay time. time is the minimumnumber of milliseconds to sustain a sustained note.
- -m 1
- Effectively behaves as if all sustains are ignored, volume ramping isthe same as normal stage 3.
- -m 0
- Disable sustain ramping, causes constant volume sustains (default).
- -m 3000
- A note at full volume will decay for 3 seconds once it beginsto be sustained (assuming the regular stage 3 rate would notcause it to decay even longer). Softer notes will of course die sooner.
- -n degree
- Enables Noise Shaping Filter. degree ranges from0 (min) to 4 (max).
- -O mode
- Selects the output mode from the compiled-in alternatives.mode must begin with one of the supportedoutput mode identifiers. Run TiMidity with the -hoption to see the list. The following identifiersare available in all versions:
- Outputs via audio device (default)
- Generate raw waveform data. All formatoptions are supported. Common formatsinclude:
- 16-bit signed linear PCM
- 8-bit unsigned linear PCM
- Generate Sun Audio (au) data
- Generate AIFF data
- Generate RIFF WAVE format output. If outputis directed to a non-seekable file, or ifTiMidity is interrupted before closing thefile, the file header will contain 0xFFFFFFFF in the RIFF and datablock length fields. The popular sound conversion utility soxis able to read such malformed files, so you can pipe data directly tosox for on-the-fly conversion to other formats.
- Format options
- Option characters may be added immediately after the mode identifierto change the output format. The following options are recognized:
- 8-bit sample width
- 6-bit sample width
- Linear encoding
- uLaw (8-bit) encoding
- Signed output
- Unsigned output
- Byte-swapped output
Note that some options have no effect on some modes. For example, youcannot generate a byte-swapped RIFF WAVE file, or force uLaw output ona Linux PCM device.
- -o filename
- Place output on filename, which may be a file, device, or HP-UXaudio server, depending on the output mode selected with the -Ooption. The special filename ``-'' causes output to be placed onstdout.
- Use patch file for all programs.
- -p voices
- Sets polyphony (maximum number of simultaneous voices) tovoices.
- -p a
- Toggle automatic polyphony reduction.
- -Q channel
- Causes channel to be quiet.If channel is negative, channel -channel is turned back on.If channel is 0, all channels are turned on.
- -q m/n
- Specify audio buffer in seconds.m: maximum size of buffer, n: percentage filled at the beginning(default is 5.0/100%)(size of 100% equals the whole device buffer size)
- -R n
- Enables Pseudo Reverb Mode.It sets every instrument's release to n ms. If n=0, n is set to 800 (default).
- -S size
- Sets the re-sample cache size to size bytes.If size equals 0 any sample caches are disabled.The default value of size is 2097152 (2MB).
- -s frequency
- Sets the resampling frequency (Hz or kHz).Not all sound devices are capable of all frequencies -- an approximatefrequency may be selected, depending on the implementation.
- -t code
- Sets output coding of Japanese text. Possible values of code are:
- determined by the LANG environment variable.
- Translates non-ASCII code to period.
- No conversion.
- Convert from windows-1251 to koi8-r.
- Outputs EUC (Japan) coding.
- Outputs JIS coding.
- Outputs SJIS coding.
- -T n
- Adjust tempo to n%; 120=play MOD files with an NTSC Amiga's timing.
- Unload all instruments from memory between MIDI files.This can reduce memory requirements when playing manyfiles in succession.
- -w mode
- Extended mode for MS Windows. The following options are available:
- Use rcpcv.dll to play RCP/R36 files.
- Do not use rcpcv.dll (default).
- -W mode
- Play WRD file.Allowed values of mode are:
WRD mode must also use trace mode (option -i?t) orthe timing of the WRD events will be terrible.
- X Window System mode
- TTY mode
- Dumb mode (outputs WRD events directory)
- do not trace WRD
- Sets WRD options:
- a1=b1,a2=b2, ...
- Sets the WRD options. an is the name of option and bn is thevalue.
- Emulates timing (@WAIT,@WMODE) bugs of the original MIMPI player.The emulation levels are:
- do not emulate any bugs of MIMPI
- only emulate some bugs (default)
- emulate all known bugs
- Use filename as WRD file only no file matching *.wrd is found.
- Uses filename as WRD file.
- -x string
- Configure TiMidity with string. The format of stringis the same as timidity.cfg.
-x'bank 0\n0 violin.pat'
Sets the instrument number 0 to violin.
Character \ (Ascii 0x5c) in the string is treatedas escape character like in C literals. For example \n is treatedas carriage return.
- -Z file
- Cause the table of frequencies to be read from file. This isuseful to define a tuning different from the occidental temperate scale.
In -EF <arg>
option, you can specify following effect options:
- Left delay.
- Right delay.
- Swap left & right.
- Disabled delay effect.
- Enable MIDI chorus effect control.
The optional parameter `level' specifies the chorus level [0..127]
- Surround sound, chorus detuned to a lesser degree (default).
The optional parameter `level' specifies the chorus level [0..127].
- Disable MIDI reverb effect control.
- Enable MIDI reverb effect control.
The optional parameter `level' specifies the reverb level [0..127]This effect is only available in stereo (default).
- Global reverb effect.
- Enable the n th degree noiseshaping filter. Valid values of n are in theinterval [0..4].
This effect is only available for 8-bit linear encoding
Copyright (C) 1999-2002 Masanao Izumo <moAATTgoice.co.jp>Copyright (C) 1995 Tuukka Toivonen <ttAATTcgs.fi>The original version was developed by Tuukka Toivonen<ttAATTcgs.fi> until the release of TiMidity-0.2i. His development wasdiscontinued because of his being busy with work.This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License
as published bythe Free Software Foundation; either version 2 of the License, or (atyour option) any later version.This program is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUGeneral Public License
for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
The latest release is available on the TiMidity++ Page,
8-bit and low-rate output sounds worse than it should.Eats more CPU time than a small CPU-time-eating animal.This man page was translated from Japanese to English by me withpoor English skill :-)
AUTHORSVersion 0.2i and earlier:
Tuukka Toivonen <toivonenAATTclinet.fi>
Vincent Pagel <pagelAATTloria.fr>
Takashi Iwai <iwaiAATTdragon.mm.t.u-tokyo.ac.jp>
Davide Moretti <dmorettiAATTiper.net>
Chi Ming HUNG <cmhungAATTinsti.physics.sunysb.edu>
Riccardo Facchetti <riccardoAATTcdc8g5.cdc.polimi.it>TiMidity++:
IZUMO Masanao <moAATTgoice.co.jp>
HARADA Tomokazu <haradaAATTprince.pe.u-tokyo.ac.jp>
YAMATE Keiichirou <keiich-yAATTis.aist-nara.ac.jp>
KIRYU Masaki <mkiryuAATTusa.net>
AOKI Daisuke <daiAATTy7.net>
MATSUMOTO Shoji <shomAATTi.h.kyoto-u.ac.jp>
KOYANAGI Masaaki <koyanagiAATTokilab.oki.co.jp>
IMAI Kunihiko <imaiAATTleo.ec.t.kanazawa-u.ac.jp>
NOGAMI Takaya <t-nogamiAATThappy.email.ne.jp>
WATANABE Takanori <takawataAATTshidahara1.planet.kobe-u.ac.jp>
TAKEKAWA Hiroshi <sianAATTbig.or.jp>
NAGANO Daisuke <breeze.geoAATTgeocities.co.jp>
YAMAHATA Isaku <yamahataAATTkusm.kyoto-u.ac.jp>
KINOSHITA kosuke <kinoAATTkrhm.jvc-victor.co.jp>
ARAI Yoshishige <ryo2AATTon.rim.or.jp>
Glenn Trigg <ggtAATTnetspace.net.au>and other many people sent information and bug-fixes.
The english version of this man page was written byNAGANO Daisuke breeze.naganoAATTnifty.ne.jp>.
If you have any comments or suggestions or complaints :) about this man page,please tell me it.
- INPUT FILE
- EFFECT OPTIONS
- SEE ALSO
This document was created byman2html,using the manual pages.