graphics/variable speed audio: dragspeed for the move command?
Erik Hansen
erikhans08 at yahoo.com
Sat Jul 31 17:58:39 EDT 2004
graphics/variable speed audio:
dragspeed for the move command?
this is how i do it now:
store one "point" for each measure of music
tTempo = 200 ; tMeter = 4 (these can vary)
tInterval = (60 * 1000 * tMeter) / tTempo
put thePoint() into tPoint -- say, 200,360
"wait" tInterval milliseconds
set the loc of tControl to tPoint
for real accuracy,
send "set the loc of tControl to tPoint"...
may be a better way to go.
things like refreshing screens
and so forth take time.
the question is, can you use the move command,
which looks great, and maintain accuracy?
the TD says that a "sent" command causes
previous work to stop, so presumably you
could interupt any movement that was taking
too long, but wouldn't that be jerky?
of course, the "drag" effect can be simulated
by using lots of iterations between key points
and for Rossiesque acceleration/deceleration
that may be required, but the move command
would be so handy...
Thank You,
Erik Hansen
=====
erik at erikhansen.org http://www.erikhansen.org
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
More information about the use-livecode
mailing list