Sceth SuperCollider Egg Timer with Honk for OSX
An interval timing tool for disciplined live-coding (or boiling eggs).
Requires honk.sc for use of BigHonkingText (OSX only).
Use Scet if honking is not needed.
See Scet helpfile for details of most Sceth methods.
Instance methods
honk_(bool)
If the BigHonkingText unix utility is installed (OSX only) as detailed in honk.sc
section changes will displayed via that utility.
honk is true by default..
Evaluating the following will determine whether this is the case:
"Hello world".honk // assumes honk.sc is installed
(If "RESULT = 32512" is posted, BigHonkingText is not installed,
or not in a recognised directory).
See the comments at the bottom of the honk.sc file for more information.
honk
Get the honk status.
honkDisp_
Set the honk display parameters.
Arguments are the same as detailed in honk.sc
honkDisp
Get the honk display parameters
Autopilot example with honk
(
// Create three random partitions of 15 seconds
var b, a, honk= true;
b = 15.partition(parts: 3, min: 3).integrate;
b = b.collect{|i| i.secs2time};
b.postln;
a = Sceth.new(b);
a.honk_(honk);
r{ 2.wait;
3.do{|i|
if (i%2==1, {
a.pause;
if (honk, {"paused".honk(p: 1)});
}, {
a.play
});
a.setColor; // random
a.winBounds(1.0.rand, 1.0.rand);
rrand(4, 6).wait;
};
3.wait;
a.stop;
3.wait;
a.close;
}.play;
)