Next: `conf' Files, Previous: Database Configuration Files, Up: Database Configuration Files
This file is called insts (unless a different name is specified in .sporch) and must be placed in the directory pointed to by db-dir
.
Tunings and instruments are specified at the top level of the file within enclosing braces (see `insts' File Example).
The following settings occur at the top level:
db-conf-name
db-dir
and all of its subdirectories.
This overrides the same setting in the .sporch init file.
db-name
db-dir
.
This overrides the same setting in the .sporch init file.
•
use-tmp-files
tmp-file-ext
rm-extra-tmp-files
tmp-file-ext
are removed.
This overrides the same setting in the .sporch init file.
fft-pow-limit
tune
name
base-freq
base-pitch
setting determine how pitch values are converted to frequencies and vice versa.
The value set in base-pitch
is equivalent in frequency to the value set in base-freq
.
base-pitch
base-pitch
setting determine how pitch values are converted to frequencies and vice versa.
The value set in base-pitch
is equivalent in frequency to the value set in base-freq
.
n-divs
oct
).
n-mics
n-divs
times n-mics
.
Having two settings allows some control over what appears in the output.
oct
inst-min-fdist
n-mics
) Defines the minimum distance that extracted peaks are allowed to be from each other.
The distance is specified in terms of octave divisions so that the distance in Hz between peaks increases exponentially with
each octave. The default is the same distance as the “error margin” used to match source peaks with instrument peaks.
inst-min-fdist
is used by sporchdb while source-min-fdist
is used by sporch and libsporch.so.
source-min-fdist
n-mics
) Defines the minimum distance that extracted peaks are allowed to be from each other.
The distance is specified in terms of octave divisions so that the distance in Hz between peaks increases exponentially with
each octave. The default is the same distance as the “error margin” used to match source peaks with instrument peaks.
inst-min-fdist
is used by sporchdb while source-min-fdist
is used by sporch and libsporch.so.
The matching algorithm probably works best if source-min-fdist
is at least smaller than inst-min-fdist
.
If no tuning is specified, a 12TET tuning is created and set as the default.
default-tune
n-dyns
n-dyns
settings that appear elsewhere
might refer to the range of levels that appear in the output, which is different. The reason for separating database dynamic values from output values is
so that the actual search can be refined by increasing the number of matches that can be made for each instrument.
Also, users might want to change the number of output dynamic levels on the fly without having to recompile the entire database.
This value can then be set to a larger number (like 20). When actual dynamic levels are output, the database range is scaled to the output range.
n-user-dyns
default-n-dyns
setting described above in the .sporch file, though it's only purpose
here is to function as a guide for calculating the distance between data for different pitches and dynamic levels.
The distance calculation is used when deciding what data to use when interpolating missing instrument spectra.
The larger this number, the more likely it is that sporchdb interpolates data from neighboring pitches (and vice versa).
It should be set to the same value as default-n-dyns
and reflect the number of dynamic
levels desired in the output.
Or just ignore it altogether—the default value should be fine. This nitpicky setting is here only for sake of completeness.
interp-dist
n-user-dyns
setting in the same file).
This is also how far sporchdb looks when determining how “smooth” the peak data is from pitch to pitch and
dynamic level to dynamic level. It probably shouldn't be set to anything much higher than the default, unless your instrument
samples are missing a lot of pitches and you need to tell SPORCH to interpolate over farther distances.
pitch-pref
dyn-pref
inst
ids
maxp
minp
name
perc
minp
and maxp
to indicate that the definition is for a
non-pitched percussion instrument.
pract-maxp
maxp
) This is the maximum practical pitch for the instrument, or the highest pitch that is easy to play.
Pitch above this are chosen less often (a penalty is added to the score—the higher the note, the greater the penalty).
The frequency is determined by the default tuning defined in the same file.
pract-minp
minp
) This is the minimum practical pitch for the instrument, or the lowest pitch that is easy to play.
Pitch below this are chosen less often (a penalty is added to the score—the lower the note, the greater the penalty).
The frequency is determined by the default tuning defined in the same file.
tech
ids
maxp
minp
name
perc
pract-maxp
pract-minp