Csound Csound-dev Csound-tekno Search About

[Csnd] r statement, Unexpected EOF

Date2018-10-12 12:38
Fromfauveboy
Subject[Csnd] r statement, Unexpected EOF
I've been shown this example of the r statement. But the compiler complains
with
Unexpected EOF!!
How can I change the following code to repeat the score four times?

Many thanks




s
sr = 44100
ksmps = 4
nchnls = 2
0dbfs = 1
giSine ftgen 0, 0, 4096, 10, 1
; a sine wave with a plucked envelope:
instr 1
idur = p3
iamp = p4
ifrq cps2pch p5, 12
kamp line iamp, idur, 0
asig oscili kamp, ifrq, giSine
outs asig, asig
endin



r 6
t 0 120
i1 0 1 0.25 9.00
i1 +
i1 + . . 9.04
i1 +
i1 + . . 9.07
i1 +
i1 + 2 . 9.04s






--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2018-10-12 12:45
FromJohn ff
SubjectRe: [Csnd] r statement, Unexpected EOF
What version?  This was extensively revised recently.  You could try putting an s at the end of your score which used to be a fix

⁣Sent from TypeApp ​

On Oct 12, 2018, 12:39, at 12:39, fauveboy  wrote:
>I've been shown this example of the r statement. But the compiler
>complains
>with
>Unexpected EOF!!
>How can I change the following code to repeat the score four times?
>
>Many thanks
>
>
>
>
>s
>sr = 44100
>ksmps = 4
>nchnls = 2
>0dbfs = 1
>giSine ftgen 0, 0, 4096, 10, 1
>; a sine wave with a plucked envelope:
>instr 1
>idur = p3
>iamp = p4
>ifrq cps2pch p5, 12
>kamp line iamp, idur, 0
>asig oscili kamp, ifrq, giSine
>outs asig, asig
>endin
>
>
>
>r 6
>t 0 120
>i1 0 1 0.25 9.00
>i1 +
>i1 + . . 9.04
>i1 +
>i1 + . . 9.07
>i1 +
>i1 + 2 . 9.04s
>
>
>
>
>
>
>--
>Sent from:
>http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
>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