Copy a slice from an f-table to another f-table at performance.
Plugin opcode in emugens.
The ftslice opcode takes an f-table and copies a slice to a second f-table (similar to tab2array, but between tables). This action is done at performance (every cycle), so that it can be placed inside a k-time if clause / loop / etc. For an init-only version, see ftslicei
<CsoundSynthesizer><CsOptions></CsOptions><CsInstruments>; Example file ftslice/*ftslice: Copy slice from source table to destination tableSyntax:ftslice ifnsource, ifndest, kstart=0, kend=0, kstep=1ifnsource: source tableifndest: destination tablekstart: the index to start copying fromkend: the end index to stop copying. This is NOT inclusive. 0=end of tablekstep: how many elements to skipSee also: tablecopy, tableicopy, tab2array*/instr1ifnftgentmp0,0,-13,-2,0,1,2,3,4,5,6,7,8,9,10,11,12idestftgentmp0,0,-11,-2,0; empty table of size 11; copy only even elementsftsliceifn,idest,0,0,2ftprintidest; copy too many elements - only the elements which fit in the dest table; are copyedftsliceifn,idestftprintidestturnoffendin</CsInstruments><CsScore>i100.1</CsScore></CsoundSynthesizer>