Previous: `insts' File, Up: Database Configuration Files
Many of these can be created and placed in the directory pointed to by db-dir or any of its subdirectories.
They contain the options necessary for identifying sound files, analyzing them and extracting information
from their filenames. sporchdb does a depth-first directory traversal, reading any conf
files it finds before doing the sound analyses. All settings, then, apply to the directory that conf
file is in as well as all of its subdirectories. If the same setting appears in a conf file in some
subdirectory, that setting is replaced with the new value for that subdirectory and all of its subdirectories.
The file system containing the sound files can be organized in any way, then, and can also be constructed
out of links to directories and sound files in other locations.
The default values in the .sporch init file don't apply here—if a setting isn't specified then it is set to the default value shown here. Also, see `conf' Files Example, for an example conf file.
dirssporchdb should descend into.
Only directories with names that match a regular expression in the list are searched. The regular expressions make it possible to easily
specify all directories or some set of directories without having to constantly maintain a list of separate strings.
filessporchdb should analyze.
Only directories with names that match a regular expression in the list are chosen for analysis. The regular expressions make it possible to easily
specify all files or some set of files without having to constantly maintain a list of separate strings.
collcoll setting
is found). The coll and model settings are necessary
when there are multiple sets of sound samples for the same instruments.
modelcoll and can be thought of as a sort of sub-collection. It's a case-insensitive identifier and should be used to
distinguish different instrument models within the same collection of sound samples. The coll and model settings are necessary
when there are multiple sets of sound samples for the same instruments.
prefpref setting). When sporchdb compiles the database it sorts collections, models and individual
analyses by how “smooth” the data is from pitch to pitch or dynamic level to dynamic level. If preference are
given, sporchdb sorts everything based on these values instead. The collections, models and analyses with the highest
preference values are “preferred” over those with lower values and become the default choices when sporch
or libsporch.so is run. The numbers range from -100 to 100.
off1loc is
relative to this setting.
off2dur isn't set),
the end of the analysis segment defaults to the end of the sound file. The location given by loc is
relative to this setting.
duroff1 plus this value. If not set (and off2 isn't set),
indicates that the end of the analysis segment is the end of the sound file. The location given by loc is
relative to this setting.
locoff is the point in the file where the FFT (or first FFT if there are more than
one) is centered. If off1 and off2 or dur are set, this location is relative to those values.
offloc. It
is the point in the file where the FFT (or first FFT if there are more than
one) is centered.
default-tuneidinsts to gather different analyses into one instrument.
Use id-parse to extract this ID from the sound source filename.
id-parseinsts to gather different analyses into one instrument.
sporchdb expects a subexpression (in parentheses) to indicate the location of the id
in the filename.
-parse suffix
and one without. Only one or the other can be used (specifying one cancels the other).
Also, the settings pitch and pitch-parse have a third alternative—the pitch can
be indicated by a set of separate pitch components: oct, let and acc.
pitchpitch-parse.
The number is interpreted using the default tuning defined in default-tune. Floating point numbers
can be used to specify microtones—the number is rounded to the nearest microtone defined in the default tuning.
pitch-parsepitch or pitch-parse, the pitch can be added together after parsing the octave, letter (or pitch class),
and accidental separately.
pitch-octn-divs (defined in the default tuning) and added to the final pitch.
pitch-oct-parsen-divs and added to the final pitch. If
a regular expression is given, sporchdb expects a subexpression (in parentheses) to indicate the location of the number
in the filename. If a list of regular expressions is given, the first expression that matches the filename indicates the
octave number by its position in the list. If the first expression matches the filename, the extracted octave is 0. If the second matches,
the octave number is 1, etc..
pitch-letpitch-let though because sound sample filenames usually
contain a pitch letter name).
It is a number, then, from 0 to 12 (or whatever the value of n-divs is from the default tuning definition).
pitch-let-parsen-divs expressions (from the default tuning definition).
If the first expression matches the filename, the extracted pitch class is 0. If the second matches,
the pitch class is 1, etc..
pitch-accn-mics in the default tuning. If n-mics is set to 2, for example, then a value of
-1 alters the final pitch by -0.5.
Use pitch-acc-parse to extract this from the sound file filename.
pitch-acc-parsen-mics is 1, then the range is from -1 to 1, so there should be 3
regular expressions in the list (flat, natural and sharp). If n-mics is 2, the range is from -1.5 to 1.5 and there should be 7 expressions, etc..
In the case of 2 microtones, if the first expression matches the filename, the extracted dynamic level is -1.5. If the second matches,
the dynamic level is -1, etc..
pitch-plusdynn-dyns defined in insts. To extract a dynamic level
from a sound file filename, use dyn-parse.
dyn-parsen-dyns expressions, one for each
dynamic level. If the first expression matches the filename, the extracted dynamic level is 0. If the second matches,
the dynamic level is 1, etc..
dyn-plusdyn or dyn-parse. This might be helpful if the
filenames contain numbers that are off by 1, for example.
fft-sizefft-pow-limit.
fft-nfft-span.
fft-spandefault-fft-n are taken. The
segment should represent a sustained portion of the sound since the FFTs taken are pruned and then averaged before
peaks are extracted from them.
fft-avefft-n and represent the ones that deviate the
least from the norm (in terms of mean-squared error calculation between pairs of FFTs).
ampthreshtunetune-to-pitchThis helps fix analyses of sample libraries that are out of tune.
files setting inside them to indicate source files
that are exceptions (to be analyzed differently than all of the others). Any settings can then appear inside of the brackets as exceptional settings for this file.
Files listed in
exception braces are removed from the file's global list of sound files. However, exceptions can be specified for the same file or files multiple times.
This is useful for long sound files that contain multiple samples or recordings, since the ‘off1’ and ‘off2’ settings can be changed to specify different locations in the same file. See `conf' Files Example, to see how to do this.