NAME

load -load an RTcmix instrument for use


SYNOPSIS

load("INSTRUMENT")
load("dsoPATHNAME")


DESCRIPTION

load is an essential command for all RTcmix scorefiles. load is used to load in particular instrument executable-library files (DSOs) for the RTcmix instrument(s) that will be used during the run of the scorefile. One or more load commands usually follows the rtsetparams setup command.

The syntax for load is easy -- it will either take a string with the name of one of the distributued RTcmix instruments stored in the RTcmix-searched DSO library (usually "RTcmix/shlib"), or it can take an absolute or relative pathname string to a "libINSTRUMENT.so" instrument DSO directly (the second method is how a user-developed library would be loaded into RTcmix for use).

Here's an example from the original documentation by Doug Scott for the load scorefile command:


The only instrument that does not require an explicit load command in the scorefile is MIX because it is the 'foundation' instrument for RTcmix.

Be aware that if you load the same DSO more than once in a scorefile, it will really get confused about the symbol-table entries (i.e. don't do this!).


ARGUMENTS
"INSTRUMENT" or "dsoPATHNAME"
The string "INSTRUMENT" is used when referencing one of the distributed RTcmix instruments for loading. The 'DSO's (dynamically-shared objects) for these generally reside in the RTcmix/shlib directory, and are placed there by the "make install" command during the RTcmix build-and-install process. The string "dsoPATHNAME" can be an absolute or relative pathname to an instrument DSO. These are usually named "libINSTRUMENT.so". If it is a relative pathname, it will be relative to the directory in which the CMIX command was invoked. note: for many imbedded applications such as [rtcmix~] and iRTcmix the instruments are 'compiled-in' and do not have to be loaded.


EXAMPLES
   load("WAVETABLE")
   load("/usr/local/src/myinstruments/TESTINST/libTESTINST.so")

SEE ALSO

rtsetparams, set_option (auto_load), set_option (dsopath)