In a message regarding Beat Counter doesn't play in time dated Tue, 3 Jan
2006 14:42:01 -0700, Cory said that ...
> Does anyone know a better way to make a beat counter using
> Microseconds that actually keeps time?
Checking microseconds at each end of your loop makes for really sloppy
timekeeping.
If you're going to use Microseconds, check it once per iteration.
dim now as double
while window1.playon = true
now = Microseconds
if now - window1.LastBeat >= 150000 then
window1.LastBeat = now
--
Steve Garman
Using REALbasic 2005r4 Professional on Windows XP Pro
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>