[Csnd] Bug in r statement execution

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] Bug in r statement execution

Jim Aikin
I'm running example 01D01_different_seed.csd from the Floss Manual in Csound 6.10.0 in CsoundQt 0.95 in Windows 7.

There's a trivial bug in the score of this example -- or perhaps this is part of the same code problem. As given, the score won't play. The error message is, "Section loops cannot be nested." Adding an s statement before the second r statement solves the immediate problem: The file will play when the score looks like this:

<CsScore>

;repeat three times with fixed seed

r 3

i "generate" 0 2 1

;repeat three times with seed from the system clock

s

r 3

i "generate" 0 1 0

</CsScore>


However -- and this is the bug I'm reporting -- the second i statement executes only once. It doesn't repeat three times, as the new r statement would require it to do.


--Jim Aikin


Csound mailing list [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Bug in r statement execution

jpff
After finding the exitnow example I looked at this one and yes there is a
problem in r second time round.  No idea yet

On Tue, 6 Mar 2018, Jim Aikin wrote:

> I'm running example 01D01_different_seed.csd from the Floss Manual in Csound
> 6.10.0 in CsoundQt 0.95 in Windows 7.
>
> There's a trivial bug in the score of this example -- or perhaps this is part
> of the same code problem. As given, the score won't play. The error message
> is, "Section loops cannot be nested." Adding an s statement before the second
> r statement solves the immediate problem: The file will play when the score
> looks like this:
>
> <CsScore>
>
> ;repeat three times with fixed seed
>
> r 3
>
> i "generate" 0 2 1
>
> ;repeat three times with seed from the system clock
>
> s
>
> r 3
>
> i "generate" 0 1 0
>
> </CsScore>
>
>
> However -- and this is the bug I'm reporting -- the second i statement
> executes only once. It doesn't repeat three times, as the new r statement
> would require it to do.
>
>
> --Jim Aikin
>
>
> Csound mailing list [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Bug in r statement execution

jpff
Believed fixed in git


On Wed, 7 Mar 2018, jpff wrote:

> After finding the exitnow example I looked at this one and yes there is a
> problem in r second time round.  No idea yet
>

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Bug in r statement execution

jpff
Oh dear.  Only fixed if r sections are terminated with a s statement.
Back to under the icepack.....


On Wed, 7 Mar 2018, jpff wrote:

> Believed fixed in git
>
>
> On Wed, 7 Mar 2018, jpff wrote:
>
>> After finding the exitnow example I looked at this one and yes there is a
>> problem in r second time round.  No idea yet
>>
>
> Csound mailing list
> [hidden email]
> 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
[hidden email]
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