sfxload(1)
π sfxload(1) β the group-chat guide
okay bestie, welcome to the sfxload / asfxload glow-up, straight from the General Commands Manual (that's the manual name, we're keeping it cute and folded in right here π). This is the page where you learn how to shove a SoundFont onto your Emux WaveTable, and honestly? it ate. Let's go. β¨
β¨ NAME β¨
sfxload, asfxload β load a SoundFont file on the Emux WaveTable πΉ
π¦ SYNOPSIS π¦
sfxload [-options] fontfile
asfxload [-options] fontfile
π DESCRIPTION π
So sfxload and asfxload are utility programs that transfer the sound wave and instruments data in a SoundFont file to the AWE32 sound driver, or to the Emux WaveTable of the ALSA sbawe and emu10k1 drivers. This program is literally necessary for playing MIDI samples via sequencer programs supporting the 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, bestie π).
Basically, sfxload behaves as two ways:
% sfxload fontfile
% sfxload -b1 fontfile
The first usage is to read an SF2 (or SBK) file and transfer it 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 the specified bank number. The old samples remain in the driver. The additional samples can be cleared via the -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 β a little shortcut moment, we love that for you. π«
πΈ OPTIONS πΈ
-F,--device=file(sfxload only) β specify the device file to be used. Default value is/dev/sequencer.-D,--index=number(sfxload only) β specify the device index of the AWE driver. A negative number (e.g.-1) means to probe the first AWE device automatically. For selecting the other AWE cards, a positive index number must be given here. Default value is-1.-D,--hwdep=name(asfxload only) β specify the hwdep name to be used. As default,asfxloadseeks until any Emux compatible hwdep device is found. π-i,--clear[=bool]β remove all samples before loading the fonts. This is an explicit directive (see the-boption). If this option is specified alone without soundfont file arguments,sfxloaddoes only remove samples. Either ofon,off,yes,no,true, orfalsecan be specified as an optional argument.-x,--remove[=bool]β remove the optional samples previously loaded via the-boption. Otherwise, all new samples are simply appended.-N,--increment[=bool]β do not clear samples even with the absence of the-boption. However, this option is not exclusive with the-xoption. If both options are specified, and the memory full error is encountered during loading fonts,sfxloadwill try to remove samples and load the fonts again. resilience icon πβ¨-b,--bank=numberβ append the sound samples on the specified bank. Without this option, all present samples in the driver are removed before loading the new fonts unless the-Noption is specified. Usually, this option is necessary to load a user bank, typically in bank one. For example:
% sfxload synthgm.sbk
% sfxload -b1 surprise.sf2
-l,--lock[=bool]β lock the font. The locked font is no longer removed via the remove option (-x) even if it's loaded together with the-boption. π-C,--compat[=bool]β use the old (v0.4.2) parameter calculations.-A,--sense=sensitivityβ (only valid on compatible mode) set sample attenuation sensitivity. This option controls the sensitivity of the initial attenuation parameter of each instrument defined in the SoundFont file. In the program, each parameter is calculated from the value divided by this number for the original value. The number1.0means that the original initial attenuation parameters would be used. Generally, a smaller number makes drum sounds louder. (The original author thinks"-A 2"would be similar to Windows sounds.) The default value is10. Note that this option changes also the default attenuation automatically (see below).-a,--atten=attenuationβ (only valid on compatible mode) set the default attenuation level. This option controls the minimum attenuation of the sample. The parameter is given in raw digit number for the AWE driver, that is, in8/3dB unit. Since the--senseoption changes the default attenuation automatically, specify this option later from the--senseoption. The default value is32.-d,--decay=scaleβ (only valid on compatible mode) set the scale of envelope decay time. Default value is50.0. Sounds decay fast when a larger number is set. The ver.0.3sfxloaduses54.8. If you want to keep the same sound, use this number instead.-M,--memory[=bool]β display the left memory size in DRAM on the AWE32 card. π-c,--chorus=percentβ specify the effects of chorus. The value is in percent, from0to100. The default is unspecified. This value may be overwritten by MIDI control messages.-r,--reverb=percentβ specify the effects of reverb. The value is in percent, from0to100. The default is unspecified. This value may be overwritten by MIDI control messages. π-B,--addblank[=bool]β add48size of blank loop on each sample data. Usually, this option is not necessary. Most soundfont files are designed well for enough blank loops for each sample.-L,--extract=source[:map]β extract and load only the specified preset(s). This option is usually employed bydrvmidi. The preset is given the same as in a virtual bank file.-v,--verbose[=level]β increase or set the verbosity level.-q,--quietβ don't show error messages, equivalent with--verbose=0. π€«-V,--volume=percentβ specify the total volume of sounds, provided in percent. The default volume is70%.-P,--path=path1:path2:pathNβ specify the search path list. The sound files are searched frompath1,path2, and so on. This overrides both the system path and the environment variableSFBANKDIR.
π§ VIRTUAL BANK FILE π§
The virtual bank file is a list of presets treated as one soundfont file. The syntax of a 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 the 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 a preset mapping. It just behaves like a symbolic link of the file, as opposed 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. The 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 employ drum.sf2:
0/128:0/128:drum.sf2
default 2mbgmgs.sf2
Another special command is the 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
π SYSTEM RESROUCE FILE π
(yes, that's how the original spells it β we're keeping it, it's iconic π )
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 the 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 the default chorus level 20 except for the synthgm font, you can write a resource file ~/.sfxloadrc like that:
default --chorus=20
synthgm --chorus=0
π ENVIRONMENT π
SFBANKDIRβ search path for sound files. The current directory is always searched at first. π
π SEE ALSO π
drvmidi(1)
π COPYRIGHT π
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.
okay that's the whole thing, no cap π«Ά this page is dated January 22, 2003 and it comes from sfxload(1) β go forth and load those SoundFonts, bestie, you're so main character for reading a manpage all the way through πβ¨π
π¦ where this page comes from
- fedora 43: awesfx 0.5.1c-34.fc43 Β· GPL-2.0-or-later
- fedora 44: awesfx 0.5.1c-36.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: awesfx 0.5.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: awesfx 0.5.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: awesfx 0.5.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: awesfx 0.5.2-bp160.1.13 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms