Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] keep getting -1 from csoundCompile

Date2008-03-01 20:01
Fromvictor
SubjectRe: [Cs-dev] keep getting -1 from csoundCompile
you can't. It does not make sense to use csoundCompile without
code. It is the same as typing gcc only at the console and getting
"no input files" as a response. Perhaps you want csoundPreCompile() ?

Victor
----- Original Message ----- 
From: "Carsten Hoyer" 
To: 
Sent: Saturday, March 01, 2008 7:40 PM
Subject: [Cs-dev] keep getting -1 from csoundCompile


>
> Hey
> I want to use csoundCompile, but for some reason i keep getting -1 from 
> it.
> I´m not really sure what im doing wrong. I wish to use csoundCompile 
> without
> any input. Tried different combinations, this is what I´m trying at the
> moment: ud->result=csoundCompile(ud->csound,NULL,NULL);
>
> But result is -1
>
> Could you help a little?
> Thanks Carsten
> -- 
> View this message in context: 
> http://www.nabble.com/keep-getting--1-from-csoundCompile-tp15779139p15779139.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net

Date2008-03-01 20:11
FromCarsten Hoyer
SubjectRe: [Cs-dev] keep getting -1 from csoundCompile


Victor.Lazzarini wrote:
> 
> you can't. It does not make sense to use csoundCompile without
> code. It is the same as typing gcc only at the console and getting
> "no input files" as a response. Perhaps you want csoundPreCompile() ?
> 

Hmm. The thing is. At the moment i dont really care for any orchestra or
score, all i really need is to use CsoundOpcodeList. I can use
CsoundOpcodeList to get all opcodes in list form, but I´m using those in a
wxTreeCtrl that has drag and drop abilities.
I used to just make a sample treeCtrl and then the dnd worked, however when
i fill the tree with opcodes, the dnd fails. I have tracked the problem down
to csoundCompile.

So to use CsoundOpcodeList the API says i first need to call csoundCompile.
Any suggestions to how i can avoid a -1?
csoundPreCompile looks good, but doesnt seem to be an option, when
CsoundOpcodeList needs csoundCompile called first.

Thanks
Carsten
-- 
View this message in context: http://www.nabble.com/keep-getting--1-from-csoundCompile-tp15779139p15780451.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinf

Date2008-03-01 20:59
FromCarsten Hoyer
SubjectRe: [Cs-dev] keep getting -1 from csoundCompile
Check it out. Here is what im doing (still -1):

    ud = (userData *) malloc(sizeof(userData));
    ud->PERF_STATUS = 0;
    ud->csound=csoundCreate(NULL);
    csoundInitialize(NULL, NULL, 0);
    cmdl = (char **) malloc(sizeof(char*)*(2));
    cmdl[0] = "csound";
    cmdl[1] = "C:/soundfile.csd";
    ud->result = csoundCompile(ud->csound,2,cmdl);
    //opcodeList = new CsoundOpcodeList(ud->csound); <- Coming up when the
above is working

And the soundfile.csd is just:
    








Tell me if you need more code to understand what´s going on. But, do you see
anything wrong in the above?

Carsten
-- 
View this message in context: http://www.nabble.com/keep-getting--1-from-csoundCompile-tp15779139p15780749.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sour