Hi Jeanette, thanks for taking the time to test & reply.
The instr is getting big so just posting an example. It’s a formant/vowel type thing, so ultimately probably using a morph opcode anyways & the issue will be moot; that’s also why I didn’t use iFreq = tab_i(0, iFrq) as I was testing different vowel freq tables using p4 to select the table. But your point was well taken =)
Nonetheless when I come across these issues I like to follow up for future reference or in case I need to report a bug.
So here’s a short example:
-o dac
sr = 48000
ksmps = 32
nchnls = 1
0dbfs = 1
iFrq ftgen 1, 0, -4, -2, 100, 200, 300, 400, 500
instr 1
iFrq1 = tab_i(2, 1)
kNdx = 0
kFrq1 = tab(0, 1)
aSig = oscil(.8, iFrq1)
out aSig
endin
i1 0 3
This gives the error:
PERF ERROR in instr 1 (opcode tab) line 17: tab off end 2147483647 from file string (1) #a1 tab 0 1 0
If I comment out kFrq1 = tab(0, 1) it runs fine. Where it gets even weirder is if I instead use kFrq1 = tab(kNdx, 1), then still an error but instead it’s:
PERF ERROR in instr 1 (opcode tab) line 17: tab off end 100 from file string (1) #a1 tab kNdx 1 0
In that case it’s reporting the right value for index 0 (tab off end 100) as opposed to tab off end 2147483647. As to why I haven’t got a clue. Likewise if I use kNdx = 1, then “tab off end 200” etc. But always an error & code won’t run.
So not sure if I’m doing something wrong or whether this is a Csound for Android specific problem
Best & thanks again,
Scott
ST Music
https://soundcloud.com/st-csound
https://soundcloud.com/stoons-1
https://youtube.com/channel/UCGhwmkS1uWmX6mhTIQ0IDsg