home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sound Sensations!
/
sound_sensations.iso
/
convert
/
sbank1
/
sbank.doc
< prev
next >
Wrap
Text File
|
1991-01-27
|
9KB
|
204 lines
SBANK 1.02
Copyright (c) 1991 by Jamie O'Connell. All rights reserved.
SBANK is a command line utility for managing SoundBlaster and Adlib
instrument files and sound banks. It will translate between .INS,
.SBI, .BNK, and .IBK files. In addition, it will report instrument
names stored in bank files, and display musical parameters contained
in the instrument definitions.
Usage: SBANK BankFile [-AUMLVXT?] [BankFile|Instrument...]
Bankfile is the name or path of a BNK or IBK instrument
bankfile. It will be created if appropriate.
Instrument is the name of an instrument or the name or path of
a .INS or .SBI instrument file.
OPTIONS
Option letters are case insensitive and may be preceeded by
either - or /. They specify the operations to perform.
-A append the specified instruments (INS or SBI files) to the
named bank file. Wildcards (* and ?) may be used to select
the instrument files. The bank file is created if it does
not exist. Duplicate instrument names in the bank file are
not updated unless the -U option also appears.
-U update the specified existing instruments in the named bank
file. Wildcards are allowed. Specified instruments which
do not exist are not added unless the -A option also appears.
-M move the specified instruments to the named bank file.
Specifying -M implies both append and update. After a
sucessful insertion, the instrument file is deleted.
Wildcards are allowed.
-D delete and discard the named instruments from the bank file.
This can be used with the -X option to remove an instrument
from a bank file.
-X extract the named instruments from the bank file. The type
of instrument file to create is determined from the filename
suffix.
-L list the names of the instruments contained in the bank file.
This option formats the names one per line. Only instrument
names are displayed. It is useful for creating input for
command line filters or file redirection.
-V list the names of the instruments contained in the bank file.
The instruments are formatted eight names to a line in the
same order they are encountered in the bank file. For a BNK
file, they will be sorted alphabetically; for a IBK bank,
they are presented in the order they were appended. This is
also the order of increasing MIDI program change numbers.
-S show the parameters for an instrument or intruments. This
option formats and displays the parameters that comprise
the instrument sound.
-T translate from one file type to another. For this option the
first named file is the source and the second is the target.
This is the only option that will operate between instrument
files as well as between bank files.
-Q enter query mode when translating a bank file. Specifying
-Q implies -T (translate).
-$ display registration information.
-? display brief help information.
NOTES
When possible, file types are determined from their internal structure
rather than the external file name extension.
The program can translate each of the four file types into any of the
other types including it's own type. It should be noted that the SBI
and IBK file types do not include fields for percussive mode and voice
number. This information is lost when converting between them and BNK
or INS file types (the mode is always melodic in SBI and IBK files).
When displaying parameters, the following abbreviations and ranges are
used:
Abbrev Meaning Range Notes
KSL Level Scaling 00 - 03
FQM Frequency Multiplier 00 - 14
FB Feedback 00 - 07 Used by Modulator only
ATK Attack 00 - 15
DCY Decay 00 - 15
SLV Sustain Level 00 - 15 (15 - 0) See Note Below
RLS Release 00 - 15
LVL Output Level 00 - 63 (63 - 0) See Note Below
SUS Sustaining Sound No - Yes
AM Amplitude Modulation No - Yes Tremolo
VIB Pitch Modulation No - Yes Vibrato
KSR Envelope Scaling No - Yes
WAV Wave Select 00 - 03 Waveform Distortion
CON Connection FM - AS Only used by Modulator
MOD Mode MLD-PRC Only used by INS and BNK
V# Voice Number 06 - 10 Only used by INS and BNK
The actual number stored for SLV and LVL is an attenuation level: the
higher the number, the softer the sound. What is displayed is the reverse
of this number.
The actual number stored for CON is reversed between SBI - IBK and
INS - BNK formats. What is displayed is a code: FM - Frequency
Modulation; AS - Additive Synthesis.
As noted above, the MOD and V# fields are only used in INS and BNK file
formats, MOD will always be melodic (MLD) in SBI and IBK files.
When using the -V option on a BNK file, both the number of defined
instruments and the current capacity is displayed. The current capacity
of a BNK file is increased when it becomes filled. IBK bank files always
have a capacity of 128 instruments. This corresponds to one instrument
for each MIDI program change number.
Query mode is entered when translating a bank file and -Q is specified.
It is also entered automatically when translating a BNK file containing
more instruments than will fit in a target IBK file. After query mode
is entered, a prompt is displayed containing the name of an instrument,
and the program waits for your response. The following are valid
responses:
y append or update this instrument in the target bank file.
n skip this instrument and display the next.
p skip this instrument and display the previous one.
r leave query mode, and add all instruments from here on.
Esc (Esc key) leave query mode and exit the program.
The program operates as soon as it recieves the key stroke: it does
not wait for a carriage return. This means that you can hold down a key
to provide the same response to several prompts.
EXAMPLES
Following are a few examples to demonstrate the kinds of operations that
can be performed with SBANK:
C> sbank standard.bnk -x myins\b??.sbi
This will extract from STANDARD.BNK, all instruments matching
B, B? and B??, convert them to SBI files, and place them in the
MYINS subdirectory.
C> sbank /s standard.bnk abrss1 x*
This will display the parameters for the ABRSS1 instrument, and all
instruments matching X*.
C> sbank standard.bnk -l >verylong.lst
This will display the name of each instrument stored in STANDARD.BNK
but redirect the output to the file VERYLONG.LST. It will most likely
be a very long list!
C> sbank -au new.bnk *.ins C:\SBI\*.sbi
This will Append or Update to NEW.BNK, all the INS files in the
current directory, and all the SBI files in the C:\SBI directory.
C> sbank my.ibk abrss1.ins -m
This will Append the ABRSS1.INS instrument to MY.IBK and then erase
the ABRSS1.INS file - if all goes well.
C> sbank my.ibk /d abrss1
This deletes the ABRRS1 instrument from MY.IBK
C> sbank my.ibk ?a* -v
Will display all of the instrument names in my.ibk which have "A" as
the second letter. The names will be formatted eight to a line.
C> sbank piano1.sbi piano1.ins -t
This will convert the PIANO1.SBI instrument file into a PIANO1.INS
file.
C> sbank piano1.ins -s
This will display the parameters for the PIANO1 instrument contained
in PIANO1.INS.
C> sbank my.bnk -xd a*.ins b*.ins
This command will extract all the instruments begining with A or B
form MY.BNK file and place them in INS files in the current directory.
It will then delete the definitions of those instruments in the MY.BNK
file.