Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Timer function

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


Fred at Lefevere-Laoide

Apr 17, 2007, 12:19 AM

Post #1 of 3 (539 views)
Permalink
Timer function

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-developers [at] maemo
https://maemo.org/mailman/listinfo/maemo-developers


neil at ossau

Apr 17, 2007, 3:33 PM

Post #2 of 3 (457 views)
Permalink
Re: Timer function [In reply to]

Fred Lefévère-Laoide <Fred [at] Lefevere-Laoide> 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-developers [at] maemo
https://maemo.org/mailman/listinfo/maemo-developers


ensonic at hora-obscura

May 6, 2007, 7:46 AM

Post #3 of 3 (424 views)
Permalink
Re: Timer function [In reply to]

hi,

I work on a whole music composer [1] built on gstreamer and there you can use
gst-controller to trigger notes or change sound-parameters. GStreamer cares
about the timing, you just schedule changes with a timestamp. Come to #gstreamer
irc on freenode.org if you have questions.

Stefan

[1] http://www.buzztard.org

Fred Lefévère-Laoide wrote:
> 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-developers [at] maemo
> https://maemo.org/mailman/listinfo/maemo-developers

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.