[Csnd] csnd.Compile() number of arguments
| Date | 2010-09-02 13:13 |
| From | Oeyvind Brandtsegg |
| Subject | [Csnd] csnd.Compile() number of arguments |
I ran into a problem with the number of arguments to csnd.Compile() today
self.csound = csnd.Csound()
self.csound.Compile("simplest.orc", "simplest.sco", "-b2048", "-B4096", "-f")
works fine
but
self.csound.Compile("simplest.orc", "simplest.sco", "-b2048",
"-B4096", "-f", "-d")
gives the folllowing error:
File "C:\Projects\hadron\cs\csModule.py", line 45, in __init__
self.csound.Compile("simplest.orc", "simplest.sco", "-b2048",
"-B4096", "-f", "-d")
File "C:\Programfiler\Csound\bin\csnd.py", line 1438, in Compile
return _csnd.Csound_Compile(*args)
NotImplementedError: Wrong number of arguments for overloaded function
'Csound_Compile'.
Possible C/C++ prototypes are:
Compile(int,char **)
Compile(char *)
Compile(char *,char *)
Compile(char *,char *,char *)
Compile(char *,char *,char *,char *)
Compile(char *,char *,char *,char *,char *)
Is there a limit to the number of arguments? and how should I specify
more command line arguments (without putting them in a csd file)
Oeyvind
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"
|
| Date | 2010-09-02 13:52 |
| From | Francois PINOT |
| Subject | [Csnd] Re: csnd.Compile() number of arguments |
| self.csound = csnd.Csound() arguments = csnd.CsoundArgVList() arguments.Append("dummy") arguments.Append("simplest.orc") arguments.Append("simplest.sco") arguments.Append("-b2048") arguments.Append("-B4096") arguments.Append("-f") arguments.Append("-d") csound.Compile(arguments.argc(), arguments.argv()) The "dummy" argument is mandatory because the underlying C routine waits for a C command line formated argv array in which the first location contains the program name. Regards Francois 2010/9/2 Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> I ran into a problem with the number of arguments to csnd.Compile() today |
| Date | 2010-09-02 14:16 |
| From | Victor Lazzarini |
| Subject | [Csnd] Re: csnd.Compile() number of arguments |
You will need to use CsoundArgVlist() to set an unlimited number of
arguments. Check this code as an example:
http://git.sugarlabs.org/projects/csndsugui
Victor
On 2 Sep 2010, at 13:13, Oeyvind Brandtsegg wrote:
> I ran into a problem with the number of arguments to csnd.Compile()
> today
>
> self.csound = csnd.Csound()
> self.csound.Compile("simplest.orc", "simplest.sco", "-b2048", "-
> B4096", "-f")
>
> works fine
> but
> self.csound.Compile("simplest.orc", "simplest.sco", "-b2048",
> "-B4096", "-f", "-d")
> gives the folllowing error:
> File "C:\Projects\hadron\cs\csModule.py", line 45, in __init__
> self.csound.Compile("simplest.orc", "simplest.sco", "-b2048",
> "-B4096", "-f", "-d")
> File "C:\Programfiler\Csound\bin\csnd.py", line 1438, in Compile
> return _csnd.Csound_Compile(*args)
> NotImplementedError: Wrong number of arguments for overloaded function
> 'Csound_Compile'.
> Possible C/C++ prototypes are:
> Compile(int,char **)
> Compile(char *)
> Compile(char *,char *)
> Compile(char *,char *,char *)
> Compile(char *,char *,char *,char *)
> Compile(char *,char *,char *,char *,char *)
>
> Is there a limit to the number of arguments? and how should I specify
> more command line arguments (without putting them in a csd file)
>
> Oeyvind
>
>
> 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"
>
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"
|
| Date | 2010-09-02 20:40 |
| From | Oeyvind Brandtsegg |
| Subject | [Csnd] Re: Re: csnd.Compile() number of arguments |
Thanks a lot, that's very clear. best Oeyvind 2010/9/2 Francois PINOT |