[Cs-dev] score expressions [ ] not in strings
Date | 2011-01-24 21:15 |
From | Oeyvind Brandtsegg |
Subject | [Cs-dev] score expressions [ ] not in strings |
Hello Square brackets are used to enclose expressions in a score statement, but it seems the square brackets are (mis)interpreted in this meaning also when they are used within a string. So, for example if we have the instrument instr 4 Stest strget p4 puts Stest, 1 endin This score line is ok: i 4 0 1 "hello" but this one is not: i 4 0 1 "[hello]" The error produced is: sorting score ... score error: illegal character h(68) in [] expression Would it be possible to allow square brackets in strings? best Oeyvind ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-01-25 11:17 |
From | John ffitch |
Subject | Re: [Cs-dev] score expressions [ ] not in strings |
Yes; a one character change in Engine/sread.c I think. Line 1771, second argument to getscochar should be 0 I have not tested it yet -- ICMC deadline day.... ==John ffitch ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-01-25 11:29 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] score expressions [ ] not in strings |
> Yes; a one character change in Engine/sread.c I think. Line 1771, > second argument to getscochar should be 0 > I have not tested it yet -- ICMC deadline day.... > > ==John ffitch > Now tested. Also removes macro expansion in "..." ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-01-25 12:06 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] score expressions [ ] not in strings |
Wonderful, tested fine here too. Thank you. Oeyvind 2011/1/25 |