[maemo-developers] Timer function

From: Neil Jerram neil at ossau.uklinux.net
Date: Wed Apr 18 01:33:13 EEST 2007
Fred Lefévère-Laoide <Fred at Lefevere-Laoide.net> writes:

> Hi,
> I plan to write a software metronome and I wonder what would be the
> best way to get a timer precise enough for that purpose ?

I wrote one using just g_timeout_add(), and that seems to me to work
well enough.

I've put the source code up at
http://www.ossau.uklinux.net/guile/metronome.scm, in case you'd like
to look and don't mind reading Scheme.

> The other problem is what's the best way to make a short sound
> (eventually corresponding to a note ...)

Indeed.  I don't have a solution for this yet; would be interested to
hear if you find a nice one.  Currently my metronome is just visual.


More information about the maemo-developers mailing list