GLBasic forum

Main forum => GLBasic - en => Topic started by: matchy on 2012-Sep-01

Title: Metronome Timing
Post by: matchy on 2012-Sep-01
On what can be used to achieve perfect timing, like a metronome? I've tried various way with GETTIMERALL delay and SIN(GETTIMERALL()) bounce, sleep, limitfps and it's fine on PC but not on other "slower" devices.  :S
Title: Re: Metronome Timing
Post by: Schranz0r on 2012-Sep-01
Use Threading?
Title: Re: Metronome Timing
Post by: matchy on 2012-Sep-02
Yes that is it! Thanks.
Title: Re: Metronome Timing
Post by: matchy on 2012-Sep-02
I have tried the multithreading lib and wondering how I can produce a steady pulse with 50ms inbetween. If I drop the SLEEP 500 in the lib, the thread doesn't get locked on the ipod.
Title: Re: Metronome Timing
Post by: matchy on 2012-Sep-02
Just discovered that SLEEP < 1000 on iphone not working so replace with Delay function. Got a pulse!
Title: Re: Metronome Timing
Post by: Schranz0r on 2012-Sep-02
Nice!