[Cs-dev] python question
Date | 2006-03-21 17:09 |
From | Victor Lazzarini |
Subject | [Cs-dev] python question |
the following code does not work anymore. > >> >>> import csnd > >> >>> csnd.csoundInitialize(None, None, 0) > >> >>> cs=csnd.csoundCreate(None) > >> >>> opts=['csound', '-o', 'dac', 'examples/trapped.csd'] > >> >>> csnd.csoundCompile(cs, len(opts), opts) csnd.csoundCompile() does not like a list for arg 3. when did it change? How would you do it now? Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-03-22 11:14 |
From | Istvan Varga |
Subject | Re: [Cs-dev] python question |
Attachments | None |
Date | 2006-03-22 12:41 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] python question |
I have updated and re-built csound, but I still can't use csoundCompile as before. Are you sure the code has been restored? It still complains that it wants a char ** argument Victor At 11:14 22/03/2006, you wrote: >On Tuesday 21 March 2006 18:09, Victor Lazzarini wrote: > > > csnd.csoundCompile() does not like a list for arg 3. > > > > when did it change? How would you do it now? > >As noted by Michael Gogins, passing a Python sequence as the >argv[] array is now restored. > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-03-22 12:55 |
From | Istvan Varga |
Subject | Re: [Cs-dev] python question |
Attachments | None |
Date | 2006-03-22 13:29 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] python question |
That works, thanks. But the Csound class & children does not, it just crashes. Victor At 12:55 22/03/2006, you wrote: >On Wednesday 22 March 2006 13:41, Victor Lazzarini wrote: > > > I have updated and re-built csound, but I still can't > > use csoundCompile as before. Are you sure the code > > has been restored? It still complains that it wants a > > char ** argument > >Well, then it might not have been restored, I only assumed it is >based on an earlier post. However, if there is no typemap, you can >use something like this instead: > >args = csnd.CsoundArgVList() >for i in ['csound', '-o', 'dac', 'foo.csd']: > args.Append(i) >csnd.csoundCompile(csound, args.argc(), args.argv()) > >Note that this will no longer work once the typemap is restored. > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |