I've been trying to build a 'control' patch for a composition I wrote
some years ago.
I cobbled together something from examples in archives for an LCD based timer.
I got it working alright, but it isn't accurate at all. The period
between seconds is irregular, it sometimes skips numbers, if I set the
milliseconds to work, it lags behind if I have other things
running(making sure all the millisecond counts go through?)
Also, sometimes the numbers in the LCD seem to draw on the edge, or
off the LCD itself, with no way to get them back. (The patch worked
fine at first, now all the numbers are off the LCD screen)
There has to be an easier way to get a large, accurate, effecient
timer going in max.
I'm surprised there isn't a default object for this, since stopwatches
are pretty standard in contemporary music.
Also, I was going to use the time produced from the stopwatch to
mute/unmute audio running through the patch as well. I looked at
timeline, but decided it'd be simpler to use a long select
object(select 0 28 32 45 58 112 etc..) being fed by the raw seconds of
the timer. Is there a more effecient way to do this?
Basically I'd like to get the structural part of the patch as
effecient as possible, to leave CPU free for audio based concerns. And
of course the timer needs to be airtight, since everything else is
based on it.
heres the patch(the numbers are drawing off the LCD screen at the moment)