[Csnd] global arrays via python API
Date | 2013-11-29 14:25 |
From | thorin kerr |
Subject | [Csnd] global arrays via python API |
Hello, I'm running Csound version 6.01.0 on Linux Mint 14. Although, I also noticed this problem on OSX 10.6
I get a "Csound tidy up: Segmentation fault" when I run this simple python script:
import csnd6 cs6 = csnd6.csoundCreate(None) csnd6.csoundStart(cs6) orc = """ instr 1 gkArr[] array 1,2,3,4 endin
""" csnd6.csoundCompileOrc(cs6, orc) I have no problems when; The array is not global, OR, The call to csoundStart occurs after csoundCompileOrc.
Also: If I do call csoundStart after csoundCompileOrc, I can re-evaluate changes in instr 1 with csoundCompileOrc, but I can't create a new instrument (e.g. instr 2) with a global array. Is it just my machine, bad code, or something... more sinister? Thorin |