AttachSample


AttachSample

Attaches a sample to an instrument

Synopsis

AttachSample <attachment symbol> <instrument> <sample> [<FIFO name> [<start frame>]]

Description

AttachSample attaches a sample to an instrument. A single sample can be connected to multiple instruments.

Argument

<attachment symbol>
New symbol in the attachment symbol name space to give this attachment.
<instrument>
Symbol name of a previously loaded instrument to attach a sample to.
<sample>
Symbol name of a previously loaded sample to attach.
<FIFO name>
Optional name of a FIFO in the instrument to attach the sample to. Uses the instrument's first or only FIFO when not specified.
<start frame>
Optional positive frame offset to apply to the sample attachment. Defaults to 0. This can be applied to delay line sample attachments to give the reader and writer of a delay line different positions in the delay line.

Examples

The following example shows a patch file that uses AttachSample.

LoadInstrument player sampler.dsp
LoadSample sax sax.aiff
AttachSample att1 player sax                                    ; attach the horn sample to the
                                    ; sample player.

See Also

LoadInstrument, LoadSample, DelayLine