[chuck-users] ChucK a day + php syntax highlighter

Scott Hewitt wittlist at googlemail.com
Wed Aug 26 13:21:28 EDT 2009


hi,

v0.9 of the php ChucK syntax highlighter is online @=>

http://www.ablelemon.co.uk/chuckhl

There are a couple of broken things,

numbers in variable names eg int broken1;

and strings within print eg. <<< "bob" >>>;

There is almost certainly a better way to do this but this works, and
Im not really interested in php.

By the way it needs php5 to work.

All the best

Scott


On Tue, Aug 25, 2009 at 7:25 PM, Andrew C. Smith<acsmith at willamette.edu> wrote:
> 80 characters!  The SC contest is 140, but I guess it only takes just
> over half that to crash ChucK creatively.
>
> By the way, Scott, congratulations on the readability of your code.  I
> think your PHP highlighter is the best.  Share?  Also suggestions:
>
> imitate a few Minimalist techniques, like addition and subtraction or phasing.
>
> make "Totalist" music (term a subject of debate) where the global
> structure is determined by the local structure, and all of that is
> determined by something like the prime factors of the number of high
> school girlfriends you had.  Bonus points if it's microtonal.  More
> bonus points if it crashes ChucK.
>
> Andrew
>
> 2009/8/25 Kassen <signal.automatique at gmail.com>:
>> Scott;
>>
>>>
>>> If any one has any suggestions as to things to try please let me know.
>>>
>>
>> *One of the most exciting things to me is always to try to write a function
>> that generates a a melody without explicitly defining a scale or resorting
>> to too much randomness.  Going all atonal is easy... getting boring after a
>> short while is easy... it's a thin balance.
>>
>> Bonus points for sounding like you are modulating between scales in a
>> coherent way.
>>
>> Bonus points for two matching functions or two melodies from a single one
>> that work well together.
>>
>> *Variation; generate evolving beats without using randomness.
>>
>> Bonus points if somebody dances to them.
>>
>> *Back to the old-school of ChucKing; crash ChucK in a new yet musically
>> pleasing way.
>>
>> Bonus points if your bug-report gets complimented for musical value (has
>> anyone actually achieved this yet?)
>>
>> *CPU efficient wave-shaping in new ways.
>>
>> *Submit a piece to the "one line ChucK crazy" topic on the forum (one line,
>> 80 characters max, crazy)
>>
>> *ASCII-art that compiles and sounds good (just thought of this, never tried
>> it myself)
>>
>> Happy ChucKing!
>>
>> Kas.
>>
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>


More information about the chuck-users mailing list