Csound Csound-dev Csound-tekno Search About

[Csnd] lastcycle

Date2020-08-14 06:09
FromForrest Curo
Subject[Csnd] lastcycle
following the manual example
with version == 6.14

this is supposed to work:

...
if lastcycle() == 1 then
ktom timeinsts
S_event sprintf "i %d %.2f %.2f %d %d\n", 21, itim, ktom, p4, p5
fprints "score.sco", S_event
endif
endin

but I'm getting:
error: syntax error, unexpected ')'  (token ")") from file e.csd (1)
 line 194:
>>>) <<<

and if I remove the ')',
error: syntax error, unexpected S_EQ  (token "== ") from file e.csd (1)
 line 194:
>>> ==  <<<

(Huh?)
Forrest Curo
San Diego.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-08-14 11:23
FromJohn ff
SubjectRe: [Csnd] lastcycle
The errors are sure signs that your csound for whatever reason does not have the lastcycle opcode.

So what platform date etc?

⁣Sent from TypeApp ​

On Aug 14, 2020, 06:10, at 06:10, Forrest Curo  wrote:
>following the manual example
>with version == 6.14
>
>this is supposed to work:
>
>...
>if lastcycle() == 1 then
>ktom timeinsts
>S_event sprintf "i %d %.2f %.2f %d %d\n", 21, itim, ktom, p4, p5
>fprints "score.sco", S_event
>endif
>endin
>
>but I'm getting:
>error: syntax error, unexpected ')'  (token ")") from file e.csd (1)
> line 194:
>>>>) <<<
>
>and if I remove the ')',
>error: syntax error, unexpected S_EQ  (token "== ") from file e.csd (1)
> line 194:
>>>> ==  <<<
>
>(Huh?)
>Forrest Curo
>San Diego.
>
>Csound mailing list
>Csound@listserv.heanet.ie
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
>        https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-08-14 16:58
FromForrest Curo
SubjectRe: [Csnd] lastcycle
Thanks -- I've now recompiled & have version 6.15, which should work.

On Fri, Aug 14, 2020 at 3:24 AM John ff <jpff@codemist.co.uk> wrote:
The errors are sure signs that your csound for whatever reason does not have the lastcycle opcode.

So what platform date etc?

⁣Sent from TypeApp ​

On Aug 14, 2020, 06:10, at 06:10, Forrest Curo <treegestalt@gmail.com> wrote:
>following the manual example
>with version == 6.14
>
>this is supposed to work:
>
>...
>if lastcycle() == 1 then
>ktom timeinsts
>S_event sprintf "i %d %.2f %.2f %d %d\n", 21, itim, ktom, p4, p5
>fprints "score.sco", S_event
>endif
>endin
>
>but I'm getting:
>error: syntax error, unexpected ')'  (token ")") from file e.csd (1)
> line 194:
>>>>) <<<
>
>and if I remove the ')',
>error: syntax error, unexpected S_EQ  (token "== ") from file e.csd (1)
> line 194:
>>>> ==  <<<
>
>(Huh?)
>Forrest Curo
>San Diego.
>
>Csound mailing list
>Csound@listserv.heanet.ie
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
>        https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here