[Csnd] Lua csound stk
Date | 2012-03-12 17:42 |
From | francesco |
Subject | [Csnd] Lua csound stk |
Hello All, i was exploring some of the examples from the tutorial by Mr. Gogins on algorhitmic composition. The examples are in Python but i was trying to translate this in Lua. The example koch.py (that work well) when in Lua give this error message FileRead::open: could not open or find file (/usr/local/share/csound/rawwaves/sinewave.raw)! terminate called after throwing an instance of 'stk::StkError' Csound tidy up: Aborted inactive allocs returned to freespace end of score. overall amps: 2.96599 3.64785 1 errors in performance 512 2048 sample blks of floats written to koch.lua.wav (WAV) Inconsistency detected by ld.so: dl-close.c: 344: _dl_close_worker: Assertion `tmap->l_ns == nsid' failed! I cannot understand what that mean. I have the file sinewave.raw in that location. Sure it is possible that i'm wrong somethings, but this error seem related to Csound in my system, and not to my Lua script. Or not? Any help is welcome. Thanks, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/Lua-csound-stk-tp5558518p5558518.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2012-03-12 18:16 |
From | Michael Gogins |
Subject | Re: [Csnd] Lua csound stk |
Did this piece create a soundfile that sounded OK? I will take a look at this problem this evening. Regards, Mike On Mon, Mar 12, 2012 at 1:42 PM, francesco |
Date | 2012-03-12 18:28 |
From | francesco |
Subject | [Csnd] Re: Lua csound stk |
No, but i guess that this is due to my script! A literally translate of the Python script in Lua. If You really want to laugh ... http://csound.1045644.n5.nabble.com/file/n5558655/koch.lua.wav koch.lua.wav Thanks, ciao, francesco. PS: i don't know if this could be useful for You, anyway ... The CsoundAC.csd has some errors, also in the scripts of tutorial code; this is what i have found: line 170 gigrtab ftgen 0, 0, 65537, 10, 1, 0.3, .1 0, .2, .02, 0, .1, .04 it miss the colon after .1, i.e. gigrtab ftgen 0, 0, 65537, 10, 1, 0.3, .1, 0, .2, .02, 0, .1, .04 instr 9 line 544 amp3 = aamp3 * (1 + adev3), there is a colon at the end of the line instr 20, line 1030 p3, aleft, aright Declick 0 .006, p3, 0.06, aleft, aright seems that the 0 is read like a separated value instead of (i guess): p3, aleft, aright Declick 0.006, p3, 0.06, aleft, aright -- View this message in context: http://csound.1045644.n5.nabble.com/Lua-csound-stk-tp5558518p5558655.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2012-03-12 18:51 |
From | francesco |
Subject | [Csnd] Re: Lua csound stk |
Ok, solved with right TIME parameter! My script does not seem all right, but now i have an acceptable result. Sorry for the noise. Thank You, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/Lua-csound-stk-tp5558518p5558731.html Sent from the Csound - General mailing list archive at Nabble.com. |