Csound Csound-dev Csound-tekno Search About

[Csnd] ithen broken in 5.17

Date2013-07-20 22:03
FromJoel Ross
Subject[Csnd] ithen broken in 5.17
Hi,

I've been playing with Stevens tied notes tutorial,
http://www.csounds.com/journal/2005fall/tiedNotes.html and found that
the ithen keyword which is used there doesn't behave as expected in
csound 5.17 (I haven't tested any other versions). The statements
don't execute the correct branch. Changing to 'then' solves the
problem. The ithen keyword seems to be undocumented, so I guess this
might not be an issue except for this case.

Regards,
 Joel

Date2013-07-21 02:10
FromSteven Yi
SubjectRe: [Csnd] ithen broken in 5.17
Attachmentsyi_tied_notes_example.csd  
Hi Joel,

Are you talking about the ithen's in the tieStatus UDO?  They seem to
be working fine here with Csound 6 and Csound 5.19.

Attached is a reduced version that prints:

SECTION 1:
new alloc for instr 1:
instr 1:  ival = -1.000
B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
instr 1:  ival = 0.000
B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
instr 1:  ival = 1.000
B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
instr 1:  ival = 2.000
B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0

The ival's are what I expect to be printed.  What is the output you're
getting in 5.17?

steven

On Sat, Jul 20, 2013 at 5:03 PM, Joel Ross  wrote:
> Hi,
>
> I've been playing with Stevens tied notes tutorial,
> http://www.csounds.com/journal/2005fall/tiedNotes.html and found that
> the ithen keyword which is used there doesn't behave as expected in
> csound 5.17 (I haven't tested any other versions). The statements
> don't execute the correct branch. Changing to 'then' solves the
> problem. The ithen keyword seems to be undocumented, so I guess this
> might not be an issue except for this case.
>
> Regards,
>  Joel
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

Date2013-07-21 13:51
FromJoel Ross
SubjectRe: [Csnd] ithen broken in 5.17
Thanks Steven, I definitely don't get the same output but if its
working in more recent versions then I guess its not an issue. Unless
its a platform dependent problem. I'm on intel Linux using Csound
version 5.17 (double samples) May 30 2012.

The output I get from csd test is:

SECTION 1:
new alloc for instr 1:
instr 1:  ival = 0.000
B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
instr 1:  ival = 1.000
B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
instr 1:  ival = 0.000
B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
instr 1:  ival = 0.000
B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0

I checked the values of p3 and itie as well, and these are correct.

Regards,
 Joel

On 21 July 2013 02:10, Steven Yi  wrote:
> Hi Joel,
>
> Are you talking about the ithen's in the tieStatus UDO?  They seem to
> be working fine here with Csound 6 and Csound 5.19.
>
> Attached is a reduced version that prints:
>
> SECTION 1:
> new alloc for instr 1:
> instr 1:  ival = -1.000
> B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
> instr 1:  ival = 0.000
> B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
> instr 1:  ival = 1.000
> B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
> instr 1:  ival = 2.000
> B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0
>
> The ival's are what I expect to be printed.  What is the output you're
> getting in 5.17?
>
> steven
>
> On Sat, Jul 20, 2013 at 5:03 PM, Joel Ross  wrote:
>> Hi,
>>
>> I've been playing with Stevens tied notes tutorial,
>> http://www.csounds.com/journal/2005fall/tiedNotes.html and found that
>> the ithen keyword which is used there doesn't behave as expected in
>> csound 5.17 (I haven't tested any other versions). The statements
>> don't execute the correct branch. Changing to 'then' solves the
>> problem. The ithen keyword seems to be undocumented, so I guess this
>> might not be an issue except for this case.
>>
>> Regards,
>>  Joel
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>             https://sourceforge.net/p/csound/tickets/
>> csound5:
>>             https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

Date2013-07-21 17:53
FromSteven Yi
SubjectRe: [Csnd] ithen broken in 5.17
Hi Joel,

I did some research. On Debian amd64, I installed Csound from apt-get
(5.17).  I ran the CSD and got the correct results.  However, I tried
again with --old-parser, and it gave me the results you experienced.
My guess is that this was something that was broken in the old parser
and fixed in the new parser in CS5.  I don't remember when we flipped
the switch to make the new parser the default in CS5, but that would
explain why I didn't see the problem with 5.19 on OSX.

Could you try with --new-parser?

Cheers!
steven

On Sun, Jul 21, 2013 at 8:51 AM, Joel Ross  wrote:
> Thanks Steven, I definitely don't get the same output but if its
> working in more recent versions then I guess its not an issue. Unless
> its a platform dependent problem. I'm on intel Linux using Csound
> version 5.17 (double samples) May 30 2012.
>
> The output I get from csd test is:
>
> SECTION 1:
> new alloc for instr 1:
> instr 1:  ival = 0.000
> B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
> instr 1:  ival = 1.000
> B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
> instr 1:  ival = 0.000
> B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
> instr 1:  ival = 0.000
> B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0
>
> I checked the values of p3 and itie as well, and these are correct.
>
> Regards,
>  Joel
>
> On 21 July 2013 02:10, Steven Yi  wrote:
>> Hi Joel,
>>
>> Are you talking about the ithen's in the tieStatus UDO?  They seem to
>> be working fine here with Csound 6 and Csound 5.19.
>>
>> Attached is a reduced version that prints:
>>
>> SECTION 1:
>> new alloc for instr 1:
>> instr 1:  ival = -1.000
>> B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
>> instr 1:  ival = 0.000
>> B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
>> instr 1:  ival = 1.000
>> B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
>> instr 1:  ival = 2.000
>> B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0
>>
>> The ival's are what I expect to be printed.  What is the output you're
>> getting in 5.17?
>>
>> steven
>>
>> On Sat, Jul 20, 2013 at 5:03 PM, Joel Ross  wrote:
>>> Hi,
>>>
>>> I've been playing with Stevens tied notes tutorial,
>>> http://www.csounds.com/journal/2005fall/tiedNotes.html and found that
>>> the ithen keyword which is used there doesn't behave as expected in
>>> csound 5.17 (I haven't tested any other versions). The statements
>>> don't execute the correct branch. Changing to 'then' solves the
>>> problem. The ithen keyword seems to be undocumented, so I guess this
>>> might not be an issue except for this case.
>>>
>>> Regards,
>>>  Joel
>>>
>>>
>>> Send bugs reports to the Sourceforge bug trackers
>>> csound6:
>>>             https://sourceforge.net/p/csound/tickets/
>>> csound5:
>>>             https://sourceforge.net/p/csound/bugs/
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>             https://sourceforge.net/p/csound/tickets/
>> csound5:
>>             https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

Date2013-07-22 01:00
FromJoel Ross
SubjectRe: [Csnd] ithen broken in 5.17
Hi Steven,

Unfortunately this build of Csound (from ubuntu repositories) doesn't
have the new parser at all, those options return errors so I guess I
was using the old parser. I just built Csound 6 from source and that
corrects this problem, though I've run into a number of unrelated ones
so I think I'll build again from git and see if they persist.

Thanks for taking the time to look into the bug.

Regards,
 Joel

On 21 July 2013 17:53, Steven Yi  wrote:
> Hi Joel,
>
> I did some research. On Debian amd64, I installed Csound from apt-get
> (5.17).  I ran the CSD and got the correct results.  However, I tried
> again with --old-parser, and it gave me the results you experienced.
> My guess is that this was something that was broken in the old parser
> and fixed in the new parser in CS5.  I don't remember when we flipped
> the switch to make the new parser the default in CS5, but that would
> explain why I didn't see the problem with 5.19 on OSX.
>
> Could you try with --new-parser?
>
> Cheers!
> steven
>
> On Sun, Jul 21, 2013 at 8:51 AM, Joel Ross  wrote:
>> Thanks Steven, I definitely don't get the same output but if its
>> working in more recent versions then I guess its not an issue. Unless
>> its a platform dependent problem. I'm on intel Linux using Csound
>> version 5.17 (double samples) May 30 2012.
>>
>> The output I get from csd test is:
>>
>> SECTION 1:
>> new alloc for instr 1:
>> instr 1:  ival = 0.000
>> B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
>> instr 1:  ival = 1.000
>> B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
>> instr 1:  ival = 0.000
>> B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
>> instr 1:  ival = 0.000
>> B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0
>>
>> I checked the values of p3 and itie as well, and these are correct.
>>
>> Regards,
>>  Joel
>>
>> On 21 July 2013 02:10, Steven Yi  wrote:
>>> Hi Joel,
>>>
>>> Are you talking about the ithen's in the tieStatus UDO?  They seem to
>>> be working fine here with Csound 6 and Csound 5.19.
>>>
>>> Attached is a reduced version that prints:
>>>
>>> SECTION 1:
>>> new alloc for instr 1:
>>> instr 1:  ival = -1.000
>>> B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
>>> instr 1:  ival = 0.000
>>> B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
>>> instr 1:  ival = 1.000
>>> B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
>>> instr 1:  ival = 2.000
>>> B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0
>>>
>>> The ival's are what I expect to be printed.  What is the output you're
>>> getting in 5.17?
>>>
>>> steven
>>>
>>> On Sat, Jul 20, 2013 at 5:03 PM, Joel Ross  wrote:
>>>> Hi,
>>>>
>>>> I've been playing with Stevens tied notes tutorial,
>>>> http://www.csounds.com/journal/2005fall/tiedNotes.html and found that
>>>> the ithen keyword which is used there doesn't behave as expected in
>>>> csound 5.17 (I haven't tested any other versions). The statements
>>>> don't execute the correct branch. Changing to 'then' solves the
>>>> problem. The ithen keyword seems to be undocumented, so I guess this
>>>> might not be an issue except for this case.
>>>>
>>>> Regards,
>>>>  Joel
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug trackers
>>>> csound6:
>>>>             https://sourceforge.net/p/csound/tickets/
>>>> csound5:
>>>>             https://sourceforge.net/p/csound/bugs/
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>>
>>>>
>>>
>>> Send bugs reports to the Sourceforge bug trackers
>>> csound6:
>>>             https://sourceforge.net/p/csound/tickets/
>>> csound5:
>>>             https://sourceforge.net/p/csound/bugs/
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>             https://sourceforge.net/p/csound/tickets/
>> csound5:
>>             https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

Date2013-07-22 01:21
FromSteven Yi
SubjectRe: [Csnd] ithen broken in 5.17
Hi Joel,

Happy to help!  I checked and it's odd that 5.17 is what is in Ubuntu
and Debian (even unstable and testing), as I thought something more
recent was available. Glad though that you got 6.0 built.  If you
continue to have problems, please do file reports so that we can fix
the issues.

Thanks and good luck!
steven

On Sun, Jul 21, 2013 at 8:00 PM, Joel Ross  wrote:
> Hi Steven,
>
> Unfortunately this build of Csound (from ubuntu repositories) doesn't
> have the new parser at all, those options return errors so I guess I
> was using the old parser. I just built Csound 6 from source and that
> corrects this problem, though I've run into a number of unrelated ones
> so I think I'll build again from git and see if they persist.
>
> Thanks for taking the time to look into the bug.
>
> Regards,
>  Joel
>
> On 21 July 2013 17:53, Steven Yi  wrote:
>> Hi Joel,
>>
>> I did some research. On Debian amd64, I installed Csound from apt-get
>> (5.17).  I ran the CSD and got the correct results.  However, I tried
>> again with --old-parser, and it gave me the results you experienced.
>> My guess is that this was something that was broken in the old parser
>> and fixed in the new parser in CS5.  I don't remember when we flipped
>> the switch to make the new parser the default in CS5, but that would
>> explain why I didn't see the problem with 5.19 on OSX.
>>
>> Could you try with --new-parser?
>>
>> Cheers!
>> steven
>>
>> On Sun, Jul 21, 2013 at 8:51 AM, Joel Ross  wrote:
>>> Thanks Steven, I definitely don't get the same output but if its
>>> working in more recent versions then I guess its not an issue. Unless
>>> its a platform dependent problem. I'm on intel Linux using Csound
>>> version 5.17 (double samples) May 30 2012.
>>>
>>> The output I get from csd test is:
>>>
>>> SECTION 1:
>>> new alloc for instr 1:
>>> instr 1:  ival = 0.000
>>> B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
>>> instr 1:  ival = 1.000
>>> B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
>>> instr 1:  ival = 0.000
>>> B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
>>> instr 1:  ival = 0.000
>>> B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0
>>>
>>> I checked the values of p3 and itie as well, and these are correct.
>>>
>>> Regards,
>>>  Joel
>>>
>>> On 21 July 2013 02:10, Steven Yi  wrote:
>>>> Hi Joel,
>>>>
>>>> Are you talking about the ithen's in the tieStatus UDO?  They seem to
>>>> be working fine here with Csound 6 and Csound 5.19.
>>>>
>>>> Attached is a reduced version that prints:
>>>>
>>>> SECTION 1:
>>>> new alloc for instr 1:
>>>> instr 1:  ival = -1.000
>>>> B  0.000 ..  0.200 T  0.200 TT  0.200 M:      0.0      0.0
>>>> instr 1:  ival = 0.000
>>>> B  0.200 ..  0.400 T  0.400 TT  0.400 M:      0.0      0.0
>>>> instr 1:  ival = 1.000
>>>> B  0.400 ..  0.600 T  0.600 TT  0.600 M:      0.0      0.0
>>>> instr 1:  ival = 2.000
>>>> B  0.600 ..  0.800 T  0.800 TT  0.800 M:      0.0      0.0
>>>>
>>>> The ival's are what I expect to be printed.  What is the output you're
>>>> getting in 5.17?
>>>>
>>>> steven
>>>>
>>>> On Sat, Jul 20, 2013 at 5:03 PM, Joel Ross  wrote:
>>>>> Hi,
>>>>>
>>>>> I've been playing with Stevens tied notes tutorial,
>>>>> http://www.csounds.com/journal/2005fall/tiedNotes.html and found that
>>>>> the ithen keyword which is used there doesn't behave as expected in
>>>>> csound 5.17 (I haven't tested any other versions). The statements
>>>>> don't execute the correct branch. Changing to 'then' solves the
>>>>> problem. The ithen keyword seems to be undocumented, so I guess this
>>>>> might not be an issue except for this case.
>>>>>
>>>>> Regards,
>>>>>  Joel
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug trackers
>>>>> csound6:
>>>>>             https://sourceforge.net/p/csound/tickets/
>>>>> csound5:
>>>>>             https://sourceforge.net/p/csound/bugs/
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug trackers
>>>> csound6:
>>>>             https://sourceforge.net/p/csound/tickets/
>>>> csound5:
>>>>             https://sourceforge.net/p/csound/bugs/
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>>
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug trackers
>>> csound6:
>>>             https://sourceforge.net/p/csound/tickets/
>>> csound5:
>>>             https://sourceforge.net/p/csound/bugs/
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>             https://sourceforge.net/p/csound/tickets/
>> csound5:
>>             https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>