[Csnd] Interesting comment bug
Date | 2014-04-21 21:39 |
From | zappfinger |
Subject | [Csnd] Interesting comment bug |
When I have the following line commented out (by placing a ';' before it): prints "miditrig triggered *******\n" ... (any other csound statement) I get: error: syntax error, unexpected STRING_TOKEN (token "" It looks like the escape character is not handled correctly when part of a comment... Richard -- View this message in context: http://csound.1045644.n5.nabble.com/Interesting-comment-bug-tp5734536.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-21 21:52 |
From | Steven Yi |
Subject | Re: [Csnd] Interesting comment bug |
Hi Richard, Could you file a bug with an example CSD at http://github.com/csound/csound/issues ? Thanks! steven On Mon, Apr 21, 2014 at 4:39 PM, zappfinger |
Date | 2014-04-22 08:02 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] Interesting comment bug |
Attachments | comment.py |
Hi Steven, Just added the bug. It only happens when using the API, which is weird. BTW, here is the attached file.. 2014-04-21 22:52 GMT+02:00 Steven Yi <stevenyi@gmail.com>: Hi Richard, |
Date | 2014-04-22 08:19 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-04-22 15:32 |
From | Steven Yi |
Subject | Re: [Csnd] Interesting comment bug |
Hi Richard, I think this is a python coding problem. I just tested and failed with the comment.py as-is. However, if you use \\n instead of \n, python won't convert the \n to an actual newline. I think that is what is happening, so when csound gets the code, it looks like: ;prints "vco1 triggered ******* " instead of: ;prints "vco1 triggered *******\n" Making the change to \\n in that triple-quoted string fixes it here. I'll close out the github issue. steven On Tue, Apr 22, 2014 at 3:02 AM, Richard van Bemmelen |