[Csnd] Csound6 few questions
Date | 2013-06-10 10:01 |
From | francesco |
Subject | [Csnd] Csound6 few questions |
Hello All, 1 - i'm trying Csound6 builded yesterday but i'm not getting audio when using API in Lua (using csound in terminal is ok). I guess something is wrong here, but i don't know what. Anyway the output seems ok (except for amp 0!): SECTION 1: Parsing successful! inactive allocs returned to freespace end of score. overall amps: 0.0 overall samples out of range: 0 0 errors in performance Elapsed time at end of performance: real: 10.198s, CPU: 0.570s 1906 256 sample blks of 64-bit floats written to dac My system: Ubuntustudio 13.04 64 bit. 2 - how can i setting the number of channels in csoundSetOptions? Because using the example like above i have only mono output. Thanks All, ciao, francesco. The example is the same posted by Mr. Lazzarini some time ago: require "luaCsnd6" local cs = luaCsnd6.csoundCreate(None) luaCsnd6.csoundSetOption(cs, "-+rtaudio=jack") luaCsnd6.csoundSetOption(cs, "-k 48000") luaCsnd6.csoundSetOption(cs, "-r 48000") luaCsnd6.csoundSetOption(cs, "-dodac") luaCsnd6.csoundStart(cs) local perf = luaCsnd6.CsoundPerformanceThread(cs) perf:Play() luaCsnd6.csoundCompileOrc(cs, [[ instr 1 k1 linseg 0, p3*0.1, 1, p3*0.7, 1, p3*0.2, 0 a2 oscili k1*p4, p5, -1 schedule 1, 0, 2, 10000, 330 outs a2, a2 endin]]) -- View this message in context: http://csound.1045644.n5.nabble.com/Csound6-few-questions-tp5724342.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-06-10 10:34 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound6 few questions |
csoundSetOption(cs, "-+nchnls=N") Victor On 10 Jun 2013, at 10:01, francesco wrote: > Hello All, > > 1 - > i'm trying Csound6 builded yesterday but i'm not getting audio > when using API in Lua (using csound in terminal is ok). I guess something is > wrong > here, but i don't know what. > Anyway the output seems ok (except for amp 0!): > > SECTION 1: > Parsing successful! > inactive allocs returned to freespace > end of score. overall amps: 0.0 > overall samples out of range: 0 > 0 errors in performance > Elapsed time at end of performance: real: 10.198s, CPU: 0.570s > 1906 256 sample blks of 64-bit floats written to dac > > My system: Ubuntustudio 13.04 64 bit. > > 2 - > how can i setting the number of channels in csoundSetOptions? > Because using the example like above i have only mono output. > > Thanks All, > ciao, > francesco. > > The example is the same posted by Mr. Lazzarini some time ago: > > require "luaCsnd6" > > local cs = luaCsnd6.csoundCreate(None) > luaCsnd6.csoundSetOption(cs, "-+rtaudio=jack") > luaCsnd6.csoundSetOption(cs, "-k 48000") > luaCsnd6.csoundSetOption(cs, "-r 48000") > luaCsnd6.csoundSetOption(cs, "-dodac") > luaCsnd6.csoundStart(cs) > local perf = luaCsnd6.CsoundPerformanceThread(cs) > perf:Play() > > luaCsnd6.csoundCompileOrc(cs, [[ > instr 1 > k1 linseg 0, p3*0.1, 1, p3*0.7, 1, p3*0.2, 0 > a2 oscili k1*p4, p5, -1 > schedule 1, 0, 2, 10000, 330 > outs a2, a2 > endin]]) > > > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/Csound6-few-questions-tp5724342.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-06-10 10:37 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound6 few questions |
sorry it's --nhcnls=N rather than -+nchnls=N On 10 Jun 2013, at 10:01, francesco wrote: > Hello All, > > 1 - > i'm trying Csound6 builded yesterday but i'm not getting audio > when using API in Lua (using csound in terminal is ok). I guess something is > wrong > here, but i don't know what. > Anyway the output seems ok (except for amp 0!): > > SECTION 1: > Parsing successful! > inactive allocs returned to freespace > end of score. overall amps: 0.0 > overall samples out of range: 0 > 0 errors in performance > Elapsed time at end of performance: real: 10.198s, CPU: 0.570s > 1906 256 sample blks of 64-bit floats written to dac > > My system: Ubuntustudio 13.04 64 bit. > > 2 - > how can i setting the number of channels in csoundSetOptions? > Because using the example like above i have only mono output. > > Thanks All, > ciao, > francesco. > > The example is the same posted by Mr. Lazzarini some time ago: > > require "luaCsnd6" > > local cs = luaCsnd6.csoundCreate(None) > luaCsnd6.csoundSetOption(cs, "-+rtaudio=jack") > luaCsnd6.csoundSetOption(cs, "-k 48000") > luaCsnd6.csoundSetOption(cs, "-r 48000") > luaCsnd6.csoundSetOption(cs, "-dodac") > luaCsnd6.csoundStart(cs) > local perf = luaCsnd6.CsoundPerformanceThread(cs) > perf:Play() > > luaCsnd6.csoundCompileOrc(cs, [[ > instr 1 > k1 linseg 0, p3*0.1, 1, p3*0.7, 1, p3*0.2, 0 > a2 oscili k1*p4, p5, -1 > schedule 1, 0, 2, 10000, 330 > outs a2, a2 > endin]]) > > > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/Csound6-few-questions-tp5724342.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-06-12 03:33 |
From | Andres Cabrera |
Subject | Re: [Csnd] Csound6 few questions |
Maybe we can make some aliases to -+rtaudio to --rtaudio (and all the others) to start getting rid of the inconsistent flags? Cheers,Andrés On Mon, Jun 10, 2013 at 2:37 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: sorry it's |