Csound Csound-dev Csound-tekno Search About

Re: Help for cscore! I have still problem!

Date1999-10-10 05:10
Fromroberto zanata
SubjectRe: Help for cscore! I have still problem!
Hi!
I tried to follow the Maldonado's advice but I'm
getting the same errors message! What it could be
wrong? Other ideas?
Thanks!
Roberto


> --- Gabriel Maldonado 
> wrote:
> > Probably you have to replace the 
> > with
> > "csound/cscore.h"
> > -- 
> > Gabriel Maldonado
> > 
> > http://web.tiscalinet.it/G-Maldonado
> > 
> > 
> > 
> > roberto zanata wrote:
> > > 
> > > Hi!
> > > I'm not expert of c++ language but I'm
> interesting
> > to
> > > learn it to use CSCORE utility. So now I have a
> C
> > > compiler (Borland c++ 3.1) and I'm looking at
> the
> > > examples included in the csound help.
> > > For example this:
> > > #include  
> > > main()
> > > {
> > >     struct event *e,**f;          /*
> declarations.
> > see
> > > pp.8-9 in the */
> > >     struct evlist *a,*b;          /* C language
> > > programming manual */
> > >     int n;
> > > 
> > >     a = lget();              /* read score into
> > event
> > > list "a" */
> > >     b = lsepf(a);            /* separate f
> > statements
> > > */
> > >     lput(b);                 /* write f
> statements
> > out
> > > to score */
> > >     lrelev(b);               /* and release the
> > spaces
> > > used     */
> > >     e = defev("t 0 120");    /* define event for
> > tempo
> > > statement */
> > >     putev(e);                /* write tempo
> > statement
> > > to score */
> > >     lput(a);                 /* write the notes
> */
> > > 
> > >     putstr("s");             /* section end */
> > >     putev(e);                /* write tempo
> > statement
> > > again */
> > >     b = lcopyev(a);          /* make a copy of
> the
> > > notes in "a" */
> > >     n = lcount(b);           /* and count the
> > number
> > > copied */
> > >     f = &a->e[1];
> > >     while (n--)              /* iterate the
> > following
> > > line n times: */
> > >         (*f++)->p[5] *= .5;  /*   transpose
> pitch
> > down
> > > one octave */
> > >     a = lcat(b,a);           /* now add these
> > notes to
> > > original pitches */
> > >     lput(a);
> > >     putstr("e");
> > > 
> > > }
> > > 
> > > So when I try to compile it I receive these
> errors
> > > message:
> > > 
> > > -Error..\INCLUDE\TEST.TXT 1:Unable to open
> include
> > > file 'CSOUND/CSCORE.H'
> > > -Fatal..\INCLUDE\TEST.TXT 2:Unable to create
> > output
> > > file C:\bc31\c\test.obj
> > > 
> > > I also put cscore.h in the include folder, as it
> > was
> > > advice but of course there must be other
> > problems...
> > > Before I was using microsoft quick basic for my
> > score,
> > > but I would like to learn about c++. I have to
> > studied
> > > it, of course, but can someone help me for the
> > > begginig and explain me what is the problem in
> > that
> > > example?
> > > 
> > > Thanks!
> > > 
> > > Greetings!
> > > 
> > > Roberto
> > > 
> > > =====
> > > 
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Bid and sell for free at
> http://auctions.yahoo.com
> > 
> 
> 
> =====
> 
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
> 


=====

__________________________________________________
Do You Yahoo!?