Sminstbuilder.1

= sminstbuilder(1) = Manual: sminstbuilder Manual Page

Release: Revision

Updated: -00-

NAME
sminstbuilder - program to build .smset instruments from samples

SYNOPSIS
sminstbuilder Directory...

DESCRIPTION
sminstbuilder is a script which automatically performs all steps required to build an .smset instrument (to be used with SpectMorph morph plans) from samples. It is possible to do all the steps sminstbuilder does by hand, using smenc, smwavset, smtool, imiscutter and smsampleedit, but sminstbuilder makes the process to build an instrument much more convenient.

The main idea is to have one directory per instrument, and in each directory one file named "config". Everything that sminstbuilder needs to know about the instrument goes into the "config" file. The commands are documented below in the CONFIG section.

OPTIONS
sminstbuilder takes a list of one or more instrument directories as input. Each instrument needs to have a "config" file.

BUILDER CONFIG
sminstbuilder reads the file "sminstbuilder.cfg" on startup. This file contains non-instrument-specific options. These are:


 * cache 0/1
 * While building instruments, it may be necessary to encode the same sample again and again (while changing other parameters). Since smenc is slow, this can take a long time. If cache is set to 1, sminstbuilder will use smenccache for encoding, and if the same sample was encoded previously, the result will be taken from ~/.smenccache, which is a lot faster than rerunning smenc.


 * jobs n_jobs
 * Since encoding is expensive, distributing the encoder jobs on multi-core-cpus is usually desired. If you have a multi-core-cpu, set n_jobs to the number of cores (i.e. 1 for single-core, 2 for dual-core, ...)


 * output-dir directory
 * After sucessfully building an instrument, sminstbuilder will copy the instrument to this directory. It should be specified using an absolute path (not relative path).

CONFIG

 * auto-loop  
 * Set a one frame loop that starts and ends at the same point (given by  ).


 * auto-tune
 * Tune instrument using the (40%..60%) data to extract the actual frequency.


 * auto-volume  
 * Normalize audio volume, using the volume around   as reference.


 * auto-volume-from-loop
 * Normalize audio volume, using the volume of the looped part as reference.


 * cut


 * dir
 * Set data directory relative to instrument directory.


 * sample   
 * Add sample from file   to instrument. The  should be set to the note that was recorded, as number between 0 and 127.


 * samples  
 * Add a set of samples to instrument. The sample files should be named note-.wav, where  is the midi-note, counting from  to .


 * set-markers
 * Set markers from marker file.


 * tune-all-frames
 * Tune each frame of the instrument. This will discard minimal changes in frequency which are normal for most instruments, so it might sound artificial.