shiftinArray Opcodesshiftinshiftin
Shifts the contents of an audio variable into a 1-dimensional array.
Description
This opcode can be used to push data from an audio variable into a 1-dimensional array. The array needs to be at least ksmps numbers long, but can be longer. Data is shifted in circularly, with the writing position moving by ksmps positions every k-cycle. When the array gets full, the writing position wraps around to the beginning of the array again (overwriting old positions). Together with the shiftout opcode, it can form a FIFO queue.
Syntaxkout[] shiftin asigPerformancekout[] -- output array, needs to be at least ksmps numbers long.
asig -- input audio
Examples
Here is an example of the shiftin opcode. It uses the file shiftin.csd.Example of the shiftin opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoVectorial opcodes,
array opcodes
CreditsAuthor: &namevictor;NUI Maynooth2014New in version 6.04