jsui example with multiple sketches?

Sep 29, 2008 at 1:29pm

jsui example with multiple sketches?

Hello,

I am currently looking for a jsui example using multiple sketches. In
which cases is it useful?

Thank you in advance.

Roald Baudoux
——————————–
Composer of electroacoustic art (acousmatic music, sound
installations, live electronics).
(http://www.roaldbaudoux.org/)

Junior Lecturer for the Royal Conservatory of Music (Mons, Belgium).
(http://www.conservatoire-mons.be)
——————————–
Tel/fax: +32.(0)2.503.23.46
Mobile: +32.(0)497.32.38.13

#40056
Sep 29, 2008 at 5:40pm

On 29 Sep 2008, at 14:29, Roald Baudoux wrote:

> I am currently looking for a jsui example using multiple sketches.
> In which cases is it useful?

I think I used it for the TextBrick thing:

http://www.loadbang.net/space/Software/TextBrick

It rotates text by rendering it into a sub-sketch and then rotating
and/or reflecting this in the main sketch.

– N.

Nick Rothwell / Cassiel.com Limited
http://www.cassiel.com
http://www.myspace.com/cassieldotcom
http://www.last.fm/music/cassiel
http://www.reverbnation.com/cassiel
http://www.linkedin.com/in/cassiel
http://www.loadbang.net

#141421
Oct 1, 2008 at 7:24am

#141422
Oct 1, 2008 at 8:07am

> So, the reason to use multiple sketches was mainly the need to
> position text vertically?

Yes.

> Would you also use multiple sketches when you need several layers
> (like background and foreground)?

That would depend – but I can imagine the use of multiple sketches as
a way of structuring an application.

> In TextBrick’s code I see this:
>
> (g.announced === undefined)
>
> What does the “===” stand for? “Different”?

“===” is equivalence (what Java calls “==”; JavaScript’s “==” is what
Java calls “equals” – it’s fortunate that nobody ever thinks that
they’re the same language). I can’t remember why I used the “===
undefined” idiom – I must have seen it somewhere.

– N.

nick rothwell — composition, systems, performance — http://
http://www.cassiel.com

#141423
Oct 1, 2008 at 9:38am

#141424

You must be logged in to reply to this topic.