vasetSignal Modifiers:Sample Level Operatorsvasetvaset
Write value of into the current buffer of an a-rate variable by index.
Description
Write values into the current buffer of an a-rate variable at the given
index. Useful for doing sample-by-sample manipulation at k-rate without
using setksmps 1.
NoteBecause this opcode does not do any bounds checking, the user
must be careful not to try to write values past ksmps (the
size of a buffer for an a-rate variable) by using index values greater
than ksmps.NoteIn Csound6 this opcode does do bounds checking.Syntaxvaset kval, kndx, avarPerformancekval - value to write into avar
kndx - index of the sample to write to the current
buffer of the given avar variable
avar - a-rate variable to write to
Examples
Here is an example of the vaset opcode. It uses the file vaset.csd.
Example of the vaset opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSample Level OperatorsCreditsAuthor: Steven YiNew in version 5.04September 2006.