Im getting a runtime memory error when trying to resize table to a non-power_of_2 size although I put a minus in f statement: csound.inputMessage(`f 1 0 -132320 -2 0`);
Console output:
Loading 132320 samples into table gi_tab_sample
**Current table size: 4 samples**
Csound stopped for table resizing
T 8.952 TT 8.952 M: 0.00000 0.10000
warning: replacing previous ftable 1
warning: ftable 1 relocating due to size change
currently active instruments may find this disturbing
ftable 1:
0149cf1e:0x346d9f Uncaught RuntimeError: memory access out of bounds
at osckki (0149cf1e:0x346d9f)
at kperf (0149cf1e:0x10650d)
at csoundPerformKsmpsWasi (0149cf1e:0x115a1b)
at Object.csoundPerformKsmps (__compiled.worklet.singlethread.worker.js:17:269)
at Dc.process (__compiled.worklet.singlethread.worker.js:86:51)
ftable 1: 132320 points, scalemax 0.000
**Resized table size: 132320 samples**
As you can see, the table resizing is successful but this error is thrown and stops csound.
Im working with latest @csound/browser 7.0.0-beta20 version but I also tested it with 6.18.5 and the issue is there too.
Am I missing something? Is there maybe a better way to resize a table in runtime?
Best
Lovre