[chuck-users] shell script to change old patches to new chuck UGens

Kassen signal.automatique at gmail.com
Thu Feb 22 02:57:03 EST 2007


It just occured to me that theoretically a automated system to update code
to the new syntax could break stuff. I think this;

sinosc SinOsc => dac;

would (theoretically) be valid in the old system while bluntly converting
this to;

SinOsc Sinosc => dac;

would result in problems.

I hope nobody used that as a convention. I could imagine people being
inspirered by examples that use uppercase for classes and lowercase for
instances and start using the following in new-style files;

SndBuf sndbuf => dac;

I think I myself did that in a few cases; a script would break that.

This means it's probaly advisable to keep a manual eye (erm....) on exactly
what's being converted into what and not to blutly convert everything
-including new-style files- system-wide, then have more problems then you
had to begin with.

To be clear; I don't mean to say it's not a good idea to use
batch-conversion or that it wasn't very nice of Stephen to make us a script
:-).

It'd be sad to have to say "I thought of that" after somebody accidentally
converted a few hundred unsorted files....


Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20070222/5f6dd8de/attachment.htm 


More information about the chuck-users mailing list