sfxload(1) | General Commands Manual | sfxload(1) |
sfxload, asfxload - load a SoundFont file on the Emux WaveTable
sfxload [-options] fontfile
asfxload [-options] fontfile
sfxload and asfxload are utility program sto transfer the sound wave and instruments data in a SoundFont file to the AWE32 sound driver, or to the Emux WaveTable of ALSA sbawe and emu10k1 drivers. This program is necessary for playing MIDI samples via sequencer programs supporting AWE driver. There is no big difference between sfxload and asfxload except for that asfxload is for ALSA and sfxload is for OSS, respectively. The options to specify devices are different between them (see below).
Basically, sfxload behaves as two ways.
% sfxload fontfile
% sfxload -b1 fontfile
The first usage is to read SF2 (or SBK) file and transfer to the awe driver. In this case, the samples which were loaded on the driver are replaced with the new one. In the second case, sfxload reads the file and appends it to the pre-loaded samples on the driver with specified bank number. The old samples remain in the driver. The additional samples can be cleared via -x option (see below).
The sound files are searched through the path list. The path list is defined as built-in. If the environment variable SFBANKDIR or the command line option -P is given, it replaces the default search list. The file extension .sf2, and .sbk can be abbreviated.
The virtual bank file is a list of presets treated as one
soundfont file. The syntax of virtual bank is as follows:
# comments
source:map[:soundfont [preset-name]
source:map[:soundfont [preset-name]
...
The first and second items are the source and mapped presets,
respectively. The former is the existing preset in the soundfont, and the
latter is the actual preset loaded on the sound driver. The preset is
described by the following three values,
preset/bank/keynote
If bank and keynote are omitted, bank 0 and keynote -1 (meaning to search all
keys) are applied.
The third item is the name of soundfont file. The file is searched from the prescribed search-path. The remaining arguments are ignored in sfxload.
If the soundfont name is omitted, sfxload loads it as preset mapping. It just behaves like a symbolic link of file opposing to copying of the file. Any sample data is not referred at this time, but searched first when the note is played.
A couple of special commands can be used together with the virtual
presets above. default command is used to specify the default
soundfont file. Any other presets which are not defined in the virtual
preset lists are loaded from this default font. For example, in the
following virtual bank, 2mbgmgs.sf2 is used except for standard
drumsets which employs drum.sf2:
0/128:0/128:drum.sf2
default 2mbgmgs.sf2
Another special command is include command. This simply
includes another virtual bank file under the current position. For example,
default standard.sf2
0/128:0/128:drum.sf2
include xgsfx.bnk
The default option arguments can be stored in the system resource
file. There are two files loaded as default.
$HOME/.sfxloadrc
/etc/sfxloadrc
The syntax is as follows:
fontname -options..
The first argument is soundfont file name for each option. The remaining
arguments are identical with command line options. The font name
default is used for default options for all sound fonts. The default
options are overridden by specific options or command line options.
For example, to set default chorus level 20 except for synthgm
font, you can write a resource file ~/.sfxloadrc like that:
default --chorus=20
synthgm --chorus=0
Copyright (C) 1996-2003 Takashi Iwai.
The AWE32 driver and utilities are free software; you can redistribute them and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
January 22, 2003 |