|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
mini syntax colorize bug 3.3rc
by stwbass
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message When highlighting an entire document (or any section of code) and pressing cmd-' comments are no longer colorized. If I only highlight the comment and do the same keystrokes, they turn red. Obviously this is extremely minor. Mac OSX 10.4.11
Thanks, sw -- Scott Worthington stwbass@... www.scottworthington.com |
|
|
Re: mini syntax colorize bug 3.3rc
by Josh Parmenter
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Hi Scott,
Hmm... I'm not seeing this on intel. Can you send a little code snippet that produces this problem for you? And are you using RC3? Thanks, Josh On Apr 24, 2009, at 11:13 AM, Scott Worthington wrote: When highlighting an entire document (or any section of code) and pressing cmd-' comments are no longer colorized. If I only highlight the comment and do the same keystrokes, they turn red. Obviously this is extremely minor. Mac OSX 10.4.11 ****************************************** /* Joshua D. Parmenter http://www.realizedsound.net/josh/ “Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono */ |
|
|
Re: mini syntax colorize bug 3.3rc
by stwbass
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message hmm, this is odd... it doesn't happen everywhere for me, but this consistently does not colorize
~lh = Pbind( \instrument, \bells, \midinote, Pseq([~lhPitches, ~lhPitches, 62, 62].flatten, 1), \dur, Pseq([~rhythm, ~rhythm.reverse, 2.5, 2.5].flatten, 1), \stretch, Pwhite(0.999, 1.001), \sustain, Pwhite(3.5, 4.0), \db, Pwhite(-10.0, -8.0), \pan, -0.2 /*Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3))*/ ); Thanks, sw On Fri, Apr 24, 2009 at 2:21 PM, Josh Parmenter <josh@...> wrote:
-- Scott Worthington stwbass@... www.scottworthington.com |
|
|
Re: mini syntax colorize bug 3.3rc
by stwbass
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message oh! yes, 3.3rc3
On Fri, Apr 24, 2009 at 2:35 PM, Scott Worthington <stwbass@...> wrote: hmm, this is odd... it doesn't happen everywhere for me, but this consistently does not colorize -- Scott Worthington stwbass@... www.scottworthington.com |
|
|
Re: mini syntax colorize bug 3.3rc
by Josh Parmenter
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message I think this has something to do with the way the parser sees '/' after numbers:
// doesn't work ~lh = Pbind( \instrument, \bells, \midinote, Pseq([~lhPitches, ~lhPitches, 62, 62].flatten, 1), \dur, Pseq([~rhythm, ~rhythm.reverse, 2.5, 2.5].flatten, 1), \stretch, Pwhite(0.999, 1.001), \sustain, Pwhite(3.5, 4.0), \db, Pwhite(-10.0, -8.0), \pan, -0.2 /*Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3))*/ ); // does ~lh = Pbind( \instrument, \bells, \midinote, Pseq([~lhPitches, ~lhPitches, 62, 62].flatten, 1), \dur, Pseq([~rhythm, ~rhythm.reverse, 2.5, 2.5].flatten, 1), \stretch, Pwhite(0.999, 1.001), \sustain, Pwhite(3.5, 4.0), \db, Pwhite(-10.0, -8.0), \pan, -0.2pi /*Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3))*/ ); interesting! Josh On Apr 24, 2009, at 11:37 AM, Scott Worthington wrote: oh! yes, 3.3rc3 ****************************************** /* Joshua D. Parmenter http://www.realizedsound.net/josh/ “Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono */ |
|
|
Re: mini syntax colorize bug 3.3rc
by Dan Stowell
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Yes, I see this too (ppc10.4.11, 3.3rc3). It seems that the syntax
colorisation doesn't detect comments if they come straight after a number - try this and see which ones do/don't get coloured: /* Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3)) */ ~lh = Pbind( \instrument, \bells, \midinote, Pseq([~lhPitches, ~lhPitches, 62, 62].flatten, 1), \dur, Pseq([~rhythm, ~rhythm.reverse, 2.5, 2.5].flatten, 1), \stretch, Pwhite(0.999, 1.001 /* Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3)) */), \sustain, Pwhite(3.5, 4.0), \db, Pwhite(-10.0, -8.0), /* Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3)) */ \pan, -0.2 /* Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3)) */ ); /* Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3)) */ 14/* Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, -0.3)) */ 2009/4/24, Scott Worthington <stwbass@...>: > hmm, this is odd... it doesn't happen everywhere for me, but this > consistently does not colorize > > ~lh = Pbind( > \instrument, \bells, > \midinote, Pseq([~lhPitches, ~lhPitches, 62, 62].flatten, 1), > \dur, Pseq([~rhythm, ~rhythm.reverse, 2.5, 2.5].flatten, 1), > \stretch, Pwhite(0.999, 1.001), > \sustain, Pwhite(3.5, 4.0), > \db, Pwhite(-10.0, -8.0), > \pan, -0.2 /*Pif( Pkey(\midinote) >= 68, rrand(-0.3, 0), rrand(-0.6, > -0.3))*/ > ); > > Thanks, > sw > > > > On Fri, Apr 24, 2009 at 2:21 PM, Josh Parmenter <josh@...> > wrote: > > > > Hi Scott, > > > > > > Hmm... I'm not seeing this on intel. Can you send a little code snippet > that produces this problem for you? And are you using RC3? > > > > > > Thanks, > > > > > > Josh > > > > > > > > > > > > > > On Apr 24, 2009, at 11:13 AM, Scott Worthington wrote: > > > > When highlighting an entire document (or any section of code) and pressing > cmd-' comments are no longer colorized. If I only highlight the comment and > do the same keystrokes, they turn red. Obviously this is extremely minor. > Mac OSX 10.4.11 > > > > Thanks, > > sw > > > > -- > > Scott Worthington > > stwbass@... > > www.scottworthington.com > > > > > > > > > > > > ****************************************** > > > > /* Joshua D. Parmenter > > > > http://www.realizedsound.net/josh/ > > > > > > > > > > “Every composer – at all times and in all cases – gives his own > interpretation of how modern society is structured: whether actively or > passively, consciously or unconsciously, he makes choices in this regard. He > may be conservative or he may subject himself to continual renewal; or he > may strive for a revolutionary, historical or social palingenesis." - Luigi > Nono */ > > > > > > -- > Scott Worthington > stwbass@... > www.scottworthington.com > -- http://www.mcld.co.uk _______________________________________________ sc-users mailing list info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: mini syntax colorize bug 3.3rc
by Batuhan Bozkurt
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Yes this was posted before on the dev-list and I'm the one to blame for this bug (as I changed the syntax colorization code to detect numbers, now we have color theme support, and it also acts on numbers, see Document help), but it fails to detect comments that are directly after numbers (and whitespaces after numbers). I tried to look into the issue but fixing it was trickier than expected (for me, and mangling with this code sloppily can easily halt sclang with infinite loops, and its a real silly way to break sc on stage) so I left it as is for now since the whole thing is working nice now except this, it is very minor, and rare (but yes annoying when it happens)... I wouldn't want to touch this code at this moment (RC stage) , because there probably won't really be much time to test the whole thing throughly. But if people disagree, I have experience on that code and can look into it again...
Best, B.B. On Apr 24, 2009, at 8:13 PM, Scott Worthington wrote: When highlighting an entire document (or any section of code) and pressing cmd-' comments are no longer colorized. If I only highlight the comment and do the same keystrokes, they turn red. Obviously this is extremely minor. Mac OSX 10.4.11 |
| Free embeddable forum powered by Nabble | Forum Help |