Csound Csound-dev Csound-tekno Search About

[Csnd] error with tab_i opcode

Date2012-02-20 20:12
FromStefan Thomas
Subject[Csnd] error with tab_i opcode
Dear community,
with the below quoted .csd-file a get the following error message:
PERF ERROR: tab_i off end
Early return from csoundPerform().
inactive allocs returned to freespace
When I substitute tab_i with table it works as expexted. But I would like to understand why this happens.
Here is my code:

<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>

<CsInstruments>

sr    =    48000
ksmps     =     100
nchnls    =    1
0dbfs    =    1
giAttTimeModalAdsyn    ftgen    0,0,128,-16,1,128,0,0.001       
gisine            ftgen   0,0,2^10,10,1
instr 1   
iamp = 1
icps = 440
indx = p4

    iattScl tab_i        indx,giAttTimeModalAdsyn,1 ; this causes an error
asig oscil     iamp, icps, gisine
aenv linseg       0, 0.01*iattScl, iamp
aout = aenv*asig
out aout
endin

</CsInstruments>
; ==============================================
<CsScore>
;     indx
i1 0 1 1
i1 2 1 70
e

</CsScore>
</CsoundSynthesizer>