OSDN Git Service

a81870e472d96673c8478bccf2ad50d12761d7df
[timidity41/timidity41.git] / doc / C / timidity.cfg.5
1 .TH timidity.cfg 5 "February 03 2004" "2.13.0"
2 .SH NAME
3 timidity.cfg \- configure file of TiMidity++
4 .SH DESCRIPTION
5 The file \fBtimidity.cfg\fP describes the runtime environments of
6 timidity(1) that are the path of sound font, instruments
7 configurations or else.
8 .br
9 \fBTiMidity++\fP looks for the configuration file \fBtimidity.cfg\fP
10 at startup, before processing any options.  If it can't be accessed,
11 and the library path is changed with a \fB\-L\fP option on the command
12 line, then the default file will be sought again along the new library
13 path after processing all options, unless another configuration file
14 was specified with the \fB\-c\fP option.
15 .br
16 Configuration files define the mapping of MIDI programs to instrument
17 files.  Multiple files may be specified, and statements in later ones
18 will override earlier ones.
19 .SH SYNTAX
20 Following statements can be used in a configuration file:
21 .TP
22 .BI "dir " directory
23 Adds \fIdirectory\fP to the search path in the same manner as the
24 \fB\-L\fP command line option.
25 .br
26 Archive file are also allowed.
27 .sp
28 Example:
29 .br
30 dir /usr/local/share/timidity/inst/foo.zip#
31 .br
32 bank 0
33 .br
34 0 bar.pat
35 .br
36 1 baz.pat
37 .br
38 2 zoo.pat
39 .sp
40 At first, \fBdir\fP specifies the archive name (followed by `#') for
41 the path of patch files same as directory name (in this case,
42 /usr/local/share/timidity/inst/foo.zip).  \fBTiMidity++\fP recognize
43 the path is an archive file if the expression has the last character
44 `#', and also read the files contained in this archive file.  In
45 previous example the patch files bar.pat, baz.pat and zoo.pat
46 contained in the foo.zip are also installed.
47 .TP
48 .BI "source " file
49 Reads another configuration file, then continues processing the
50 current one.
51 .TP
52 .BI "bank " "[MapID1] number"
53 Selects the tone bank to modify.  Patch mappings that follow will
54 affect this tone bank.  You can indicate specific map as a target, by
55 specifing any ofthe following to \fIMapID1\fP: \fBgm2\fP, \fBsc55\fP,
56 \fBsc88\fP, \fBsc88pro\fP, \fBsc8850\fP, \fBxg\fP and \fBxgsfx64\fP.
57 .TP
58 .BI "progbase " number
59 Sets and displays the tone number from \fInumber\fP to
60 \fInumber\fP+128.  If \fBprogbase 1\fP are specified, tone numbers
61 that follow are set and displayed as the numbers from \fB1\fP to
62 \fB128\fP.
63 .TP
64 .BI "drumset " "[MapID2] number"
65 affect this drum set.  You can indicate specific map as a target, by
66 specifing any ofthe following to \fIMapID2\fP: \fBgm2drum\fP,
67 \fBsc55drum\fP, \fBsc88drum\fP, \fBsc88prodrum\fP, \fBsc8850drum\fP,
68 \fBxgdrum\fP and \fBxgsfx126\fP.
69 .TP
70 .BI "number " "file [options]"
71 .br
72 .ns
73 .TP
74 .BI "number %font " "file bank prog [key] [options]"
75 .br
76 .ns
77 .TP
78 .BI "number %sample " "file [options]"
79 Specifies that the MIDI program number in the current tone bank or
80 drum set should be played using the patch file.  If \fIfile\fP is
81 SoundFont, the specific instrument with \fIbank\fP, \fIprog\fP, and
82 \fIkey\fP is taken out by the format of \fBnumber %font\fP.  If
83 \fIfile\fP is linear AIFF or WAV sample data, the MIDI program number
84 is specified by the format of \fBnumber %sample\fP.  Options may be
85 any of the following:
86 .RS
87 .TP
88 .BI amp= amplification
89 Amplifies the instrument's volume by \fIamplification\fP percent.  If
90 no value is specified, one will be automatically determined whenever
91 the instrument is loaded.
92 .TP
93 .BI note= note
94 Specifies a fixed MIDI note to use when playing the instrument.  If
95 \fInote\fP is \fB0\fP, the instrument will be played at whatever note
96 the Note On event triggering it has.  For percussion instruments, if
97 no value is specified in the configuration file, the default in the
98 patch file will be used.
99 .TP
100 .BI pan= panning
101 Sets the instrument's default panning.  \fIpanning\fP may be
102 \fBleft\fP, \fBright\fP, \fBcenter\fP, or an integer between
103 \fB\-100\fP and \fB100\fP, designating full left and full right
104 respectively.  If no value is specified, the default in the patch file
105 will be used.  Note that panning controls in MIDI files will override
106 this value.
107 .TP
108 .BI tune= tuning[,...]
109 Adjust the instrument's root frequency.  \fBtune=1\fP causes \fB1\fP
110 half tone higher.  Since a fraction is available for \fItuning\fP, it
111 is possible to do fine tuning such as \fBtune=\-0.2\fP.  When two or
112 more sample data is contained, the arguments after the second can
113 specify different value respectively.
114 .TP
115 .BI rate= attack:decay:sustain:release1:release2:release3[,...]
116 Set the instrument's ADSR rate.  Each value may be an integer between
117 \fB0\fP and \fB255\fP.  When you set only sustain rate,
118 .sp
119 6 GUS/hrpschrd.pat rate=::60
120 .sp
121 is available.  When you set only attack time fasten,
122 .sp
123 6 GUS/hrpschrd.pat rate=255
124 .sp
125 is available.  When two or more sample data is contained, the
126 arguments after the second can specify different value respectively.
127 .TP
128 .BI offset= attack:decay:sustain:release1:release2:release3[,...]
129 Set the instrument's ADSR offset.  Each value may be an integer
130 between \fB0\fP and \fB255\fP.  The format is same as \fBrate=\fP.
131 .TP
132 .BI tremolo= sweep_increment:control_ratio:depth[,...]
133 Set the instrument's tremolo.  Each value may be an integer
134 between \fB0\fP and \fB255\fP.  The format is similar to \fBrate=\fP.
135 \fIsweep_increment\fP is the time until tremolo is started.
136 \fIcontrol_ratio\fP is the rate changing amplification.
137 \fIdepth\fP is the depth changing amplification.
138 .TP
139 .BI vibrato= sweep_increment:phase_increment:depth[,...]
140 Set the instrument's vibrato.  Each value may be an integer
141 between \fB0\fP and \fB255\fP.  The format is similar to \fBrate=\fP.
142 \fIsweep_increment\fP is the time until vibrato is started.
143 \fIphase_increment\fP is the rate changing frequency.
144 \fIdepth\fP is the depth changing frequency.
145 .TP
146 .BI sclnote= note[,...]
147 Set the instrument's standard note for scale tuning.  For example,
148 \fBsclnote=60\fP causes the center note C to be standard note for
149 scale tuning.  When two or more sample data is contained, the
150 arguments after the second can specify different value respectively.
151 .TP
152 .BI scltune= tune[,...]
153 Set the instrument's scale tuning factor in cents.  For example,
154 \fBscltune=50\fP causes the half tone steps as \fB50\fP cents.  When
155 two or more sample data is contained, the arguments after the second
156 can specify different value respectively.
157 .TP
158 .BI modrate= attack:decay:sustain:release1:release2:release3[,...]
159 .br
160 .ns
161 .TP
162 .BI modoffset= attack:decay:sustain:release1:release2:release3[,...]
163 Set the instrument's behavior of change of modulation envelope.
164 The format and values are fundamentally same as volume envelope.
165 Except for some SoundFonts, even if it specifies only the option,
166 nothing happens.
167 .TP
168 .BI trempitch= num[,...]
169 Set the instrument's depth of changing pitch according to tremolo.
170 The effect itself is same as vibrato, it uses to operate in another
171 system.  The unit is +\-cent.  The format is similar to \fBrate=\fP.
172 .TP
173 .BI tremfc= num[,...]
174 Set the instrument's depth of changing cutoff frequency according to
175 tremolo.  It can express the so\-called glowl effect.  The unit, etc.
176 are same as \fBtrempitch=\fP.
177 .TP
178 .BI modpitch= num[,...]
179 Set the instrument's depth of changing pitch according to modulation
180 envelope.  It can temporarily express raising pitch only for the
181 attack stage.  The unit, etc. are same as \fBtrempitch=\fP.
182 .TP
183 .BI modfc= num[,...]
184 Set the instrument's depth of changing cutoff frequency according to
185 modulation envelope.  The unit, etc. are same as \fBtrempitch=\fP.
186 .TP
187 .BI fc= num[,...]
188 Set the instrument's standard of cutoff frequency.  The unit is Hz.
189 The format is similar to \fBrate=\fP.
190 .TP
191 .BI q= num[,...]
192 Set the instrument's Q (resonance).  The unit is cB.  The format is
193 similar to \fBrate=\fP.
194 .TP
195 .BI fckeyf= num
196 Set the instrument's filter key follow.  Based on \fBnote=60\fP, it
197 change cutoff frequency according to note.  The unit is +\-cent/key.
198  For example, \fBfckeyf=100\fP means that it change same as pitch.
199 .TP
200 .BI fcvelf= num
201 Set the instrument's filter velocity follow.  Based on
202 \fBvelocity=127\fP, it change cutoff frequency according to velocity.
203 The unit is +\-cent.  In SoundFont, \fB\-2400\fP is set up as a
204 characteristic value.
205 .TP
206 .BI qvelf= num
207 Set the instrument's resonance velocity follow.  Based on
208 \fBvelocity=0\fP, it change resonance according to velocity.  The unit
209 is +\-cB.
210 .TP
211 .B keep={loop|env}
212 By default, percussion instruments have their loop and envelope
213 information stripped.  Strangely shaped envelopes are removed
214 automatically from melodic instruments as well.  \fBkeep=\fP can be
215 used to prevent stripping loop or envelope data.  For example, the
216 Short and Long Whistle percussion instruments (General Midi numbers 71
217 and 72) need to have `\fBkeep=loop keep=env\fP' specified in the
218 configuration file.
219 .TP
220 .B strip={loop|env|tail}
221 Force removal of loop or envelope information from all patches in the
222 instrument, or strip the tail, i.e. all data after the loop.  Some
223 third\-party instruments have garbage after the loop, as evidenced by
224 a clicking noise whenever the instrument is played, so adding the
225 \fBstrip=tail\fP option will markedly improve sound quality.
226 .TP
227 .BI comm= comment
228 Specifies the comment \fIcomment\fP.
229 .RE
230 .TP
231 .BI "default " file
232 When MIDI program appears, which is not mapped to instrument file,
233 this file is pronounced as a substitute.
234 .TP
235 .BI "map " "MapID1 from\-bank from\-prog to\-bank to\-prog"
236 The existing tone is assigned as a tone of GS/XG each map.  \fBgm2\fP,
237 \fBsc55\fP, \fBsc88\fP, \fBsc88pro\fP, \fBsc8850, \fP\fBxg\fP and
238 \fBxgsfx64\fP can be specified to be \fIMapID1\fP.
239 .TP
240 .BI "map " "MapID2 from\-drumset from\-keynote to\-drumset to\-keynote"
241 The existing drum is assigned as a drum of GS/XG each map.
242 \fBgm2drum\fP, \fBsc55drum\fP, \fBsc88drum\fP, \fBsc88prodrum\fP,
243 \fBsc8850drum\fP, \fBxgdrum\fP and \fBxgsfx126\fP can be specified to
244 be \fIMapID2\fP.
245 .TP
246 .BI "soundfont " "file [options]"
247 Read the whole SoundFont.  \fIoptions\fP may be any of the following:
248 .RS
249 .TP
250 .BI order= number
251 Set the order of searching for instrument.  When \fBorder=0\fP, first
252 read SoundFont, and then search for insufficient samples in GUS/patch.
253 When \fBorder=1\fP, after reading GUS/patch, search for SoundFont.
254 .TP
255 .BI amp= amplification
256 set the amplification of the whole SoundFont as \fIamplification\fP%.
257 If the value is not specified, it is set by \fB100\fP%.
258 .TP
259 .BI cutoff= number
260 Specify whether LPF in SoundFont is enable (\fB1\fP) or disable
261 (\fB0\fP).  If the value is not specified, it is considered to be
262 enable.
263 .TP
264 .BI reso= number
265 Specify whether resonance in SoundFont is enable (\fB1\fP) or disable
266 (\fB0\fP).  If the value is not specified, it is considered to be
267 enable.
268 .TP
269 .B remove
270 Cancel the target SoundFont from the memory.
271 .RE
272 .TP
273 .BI "font exclude " "bank [prog [key]]"
274 Suppress searching for SoundFont of \fIbank\fP, \fIprog\fP.
275 If the sample is drumset, bank is \fB128\fP, drumset is \fIprog\fP,
276 keynum is \fIkey\fP.
277 .TP
278 .BI "font order " "number bank [prog [key]]"
279 Set the order of searching for instrument individually.  The format is
280 same as \fBfont exclude\fP.
281 .LP
282 The following statements are available only latest \fBTiMidity++\fP.
283 .TP
284 .BI "#extension altassign " "program1 program2 ..."
285 Sets the alternate assign for drum set.  For example, if you want to
286 pronounce Hi\-Hat cymbals (note number \fB42\fP, \fB44\fP and
287 \fB46\fP) in the \fBdrumset 0\fP exclusively to each others, specify:
288 .sp
289 drumset 0
290 .br
291 altassign 42 44 46
292 .sp
293 Note that alternate assign of \fBdrumset 0\fP is used by default.
294 .TP
295 .BI "#extension comm " "program comment"
296 Specifies the comment \fIcomment\fP for the tone number \fIprogram\fP.
297 These comments are displayed in the indicator line at the case
298 \fBTiMidity++\fP is booted with option \fB\-int\fP, \fB\-iTt\fP.
299 .TP
300 .BI "#extension timeout " "program second"
301 Specifies the time\-out value of the \fIprogram\fP.  If any notes
302 pronounced with the tone number \fIprogram\fP are suspended more than
303 \fIsecond\fP seconds, \fBTiMidity++\fP kills the notes.
304 .TP
305 .BI "#extension copydrumset " drumset
306 Copies all settings of the \fIdrumset\fP to the current drumset.
307 .TP
308 .BI "#extension copybank " bank
309 Copies all settings of the \fIbank\fP to the current bank.
310 .TP
311 .BI "#extension copymap " "to\-MapID from\-MapID"
312 Copies all settings of the banks defined for the map \fIfrom\-MapID\fP
313 to the map \fIto\-MapID\fP.
314 .TP
315 .BI "#extension HTTPproxy " hostname:port
316 Specifies the proxy of the HTTP protocol.  \fIhostname\fP and
317 \fIport\fB are of the proxy host's.
318 .TP
319 .BI "#extension FTPproxy " hostname:port
320 Specifies the proxy of the FTP protocol.  Same as HTTP.
321 .TP
322 .BI "#extension mailaddr " your\-mail\-address
323 Specifies user's mail address.  This address is sent to the FTP
324 server if \fBTiMidity++\fP access any file via FTP.
325 .TP
326 .BI "#extension opt " option
327 Sets the value of boot\-time options.
328 .TP
329 .BI "#extension undef " progno
330 Undefine the tone \fIprogno\fP of current tone bank.
331 .TP
332 .BI "#extension legato " "progno " {0|1}
333 Specifies whether legato is enable (\fB1\fP) or disable (\fB0\fP) on
334 \fIprogno\fP.
335 .TP
336 .BI "#extension level " "progno tva_level"
337 Set the standard value of changing amplification when processing Drum
338 Instrument TVA Level of NRPN.  Unless Drum Instrument TVA Level is
339 specified at playing, the amplification is no influenced.
340 .TP
341 .BI "#extension redamper " "progno " {0|1}
342 Specifies whether redamper is enable (\fB1\fP) or disable (\fB0\fP).
343 .TP
344 .BI "#extension playnote " "progno note"
345 Set the frequency of pronounce to \fBnote\fP.  If the frequency of
346 pronounce is specified by GS SysEx Play Note, the pitch is changed
347 appropriately according to the value.  \fIprogno\fP can carry out
348 package specification by `,' and/or [\fIstart\fP]\-[\fIend\fP].  An
349 abbreviation of start and end considers that they are \fB0\fP and
350 \fB127\fP respectively.
351 .sp
352 Example:
353 .br
354 drumset 0
355 .br
356 #extension playnote \-37,39,44\-46,55\-60
357 .TP
358 .BI "#extension delaysend " "progno level"
359 .br
360 .ns
361 .TP
362 .BI "#extension chorussend " "progno level"
363 .br
364 .ns
365 .TP
366 .BI "#extension reverbsend " "progno level"
367 Set the send level when drum part effect is enable.  All initial value
368 are \fB127\fP.  If one of delay, chorus and reverb is at least set up,
369 the effect which is not set as the tone will become the initial value
370 \fB0\fP.
371 .TP
372 .BI "#extension rnddelay " "progno msec"
373 For every pronunciation, it is random and less than a maximum of
374 \fImsec\fP delay.  The distribution of random value is pink noise
375 (1/f fluctuation) rather than a white noise.
376 .LP
377 These \fB#extension\fP statements are beginning with character `#'
378 that is the comment flag of old TiMidity (version 0.2i or earlier).
379 So these statements are treated as comment line.
380 .br
381 The latest \fBTiMidity++\fP treats \fB#extension\fP as white\-space.
382 So you can omit it.
383 .LP
384 If any file\-name expression ended with character `|' (Ascii 0x7c),
385 the file\-name is treated as command and outputs of the command
386 are also examined as arguments of statements.
387 .br
388 \fBsource\fP \fIcommand\fP| causes the output of \fIcommand\fP becomes
389 the argument of \fBsource\fP.  It is convenient to choose settings of
390 \fBTiMidity++\fP according to environment.  In addition, if a space
391 enters on the way like \fIcommand\fP |, it will be divided at the time
392 of setting file reading, and will no longer be regarded as a command.
393 This function is applicable to all the places that can specify a file
394 name.
395 .sp
396 .RS
397 timidity 'cat fild.mid|'
398 .RE
399 .sp
400 will read from the output of cat fild.mid.
401 .SH FILES
402 .TP
403 .B /etc/timidity.cfg
404 .TP
405 .B /usr/local/share/timidity/timidity.cfg
406 .SH SEE ALSO
407 timidity(1), lsmidiprog(1), mididump(1), patinfo(1), sf2text(1), wav2pat(1)
408 .SH COPYRIGHT
409 Copyright (C) 1999\-2004 Masanao Izumo <iz@onicos.co.jp>
410 .br
411 Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
412 .LP
413 The original version was developed by Tuukka Toivonen <tt@cgs.fi>
414 until the release of TiMidity\-0.2i.  His development was discontinued
415 because of his being busy with work.
416 .LP
417 This program is free software; you can redistribute it and/or modify
418 it under the terms of the \fIGNU General Public License\fP as
419 published by the Free Software Foundation; either version 2 of the
420 License, or (at your option) any later version.
421 .LP
422 This program is distributed in the hope that it will be useful, but
423 WITHOUT ANY WARRANTY; without even the implied warranty of
424 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \fIGNU
425 General Public License\fP for more details.
426 .LP
427 You should have received a copy of the GNU General Public License
428 along with this program; if not, write to the Free Software
429 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111\-1307
430 USA
431 .SH AVAILABILITY
432 The latest release is available on the \fBTiMidity++\fP Page,
433 .br
434 URL http://www.timidity.jp/