List Info

Thread: Timer function




Timer function
country flaguser name
France
2007-04-17 02:19:50
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 ?

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

Thanks for your help.

Fred
_______________________________________________
maemo-developers mailing list
maemo-developersmaemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers

Re: Timer function
user name
2007-04-17 17:33:13
Fred Lefévère-Laoide <FredLefevere-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.

Regards,
     Neil

_______________________________________________
maemo-developers mailing list
maemo-developersmaemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )