Instrument

INSTRUMENT design -- base class for INSTRUMENT creation

The Instrument object is used as the base class for deriving RTcmix user-written INSTRUMENTS. It is never used directly, although many of its attributes are essential to RTcmix INSTRUMENT design. Someone writing an RTcmix instrument generally only needs to fill in two of the Instrument methods: the INSTRUMENT::init() method for initializing INSTRUMENT notes, and the INSTRUMENT::run() method for computing samples. See the RTcmix instrument design tutorial for how this is done.



Class Variables

NOTE: Although older RTcmix instruments access and modify many of these variables directly, it is better to use the Access Methods described below. In fact, I'm not even sure that these variables can be used directly, but it's probably good to know about them. So here they are...

Access Methods


[NOTE: There are a number of other methods associated with the INSTRUMENT class, but these work upon scheduling aspects of RTcmix execution that probably shouldn't be addressed within an instrument. However, if you need to do this kind of modification, please see the source files "RTcmix/src/rtcmix/Instrument.cpp" and "RTcmix/src/rtcmix/Instrument.h"]


Examples

oh there are many of them...