nstrstrInstrument Control:Initialization and Reinitializationnstrstrnstrstr
Returns the string of a named instr from its number.
Description
Returns the string of a named instr from its number or an empty
string if no such association exists.
SyntaxSname nstrstr insnoSname nstrstr knsnoInitializationinsno -- the instrument number of the named instrument.
Performanceknsno -- the named instrument's number.
Sname -- the named instrument's name.
If an instrument with the specified name does not exist an empty
string is returned.
Examples
Here is an example of the nstrstr opcode. It uses the file nstrnum_nstrstr.csd.
Example of the nstrstr opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
The example will produce the following output:
instrument name = john
instrument number = 2
CreditsAuthor: &namejohn;New in version 6.13Written in the year 2019.