readscratch

readscratch — returns a value stored in the instance of an instrument.

Description

The readscratch opcode returns one of four scalar values stored in the instance of an instrument.

Syntax

ival readscratch[index]

Initialisation

ival -- variable for result.

index -- which value to read, defaulting to zero.

Examples

Here is an example of the readscratch opcode. It uses the file readscratch.csd.

Example 727. Example of the readscratch opcode.

See the sections Real-time Audio and Command Line Flags for more information on using command line flags.

<xi:include></xi:include>


See Also

writescratch,

Credits

Author: John ffitch
March 2013

New in Csound version 6.00