vaset Signal Modifiers:Sample Level Operators vaset vaset 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. Note Because 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. Note In Csound6 this opcode does do bounds checking. Syntax vaset kval, kndx, avar Performance kval - 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 also Sample Level Operators Credits Author: Steven Yi New in version 5.04 September 2006.