From: Carlo Florendo <subscribermail@gmail.com>
To: Florian Schmidt <mista.tapas@gmx.net>
Cc: alsa-devel@alsa-project.org, linux-audio-dev@lists.linuxaudio.org
Subject: Re: [LAD] How to get correct midi timings from ALSA using the library only
Date: Thu, 26 Jul 2007 12:51:25 +0800 [thread overview]
Message-ID: <46A8284D.9020404@gmail.com> (raw)
In-Reply-To: <200707241206.09991.mista.tapas@gmx.net>
Florian Schmidt wrote:
> Another approach, that works very well in my experience, is to not sleep the
> total required time until the next event, but rather regularly sleep for very
> short amounts of time (< 1ms), wakeup, measure the current time and if any
> event time now lies in the past, simply play it back immediately. This way
> the sleep time doesn't need to be accurate at all. All that's needed is that
> it's small enough to get some decent timing.
I've now finished implementing this approach, sleeping around 10000
microseconds instead of less than 1ms, and it works very well! Thanks!
I'm getting very decent timing even with complicated MIDI files that have
numerous pitch bends at very short times.
I'm about to try your other suggestions later on.
Thank you very much.
>
> Regards,
> Flo
>
Best Regards,
Carlo
--
Carlo Florendo
Softare Engineer/Network Co-Administrator
Astra Philippines Inc.
UP-Ayala Technopark, Diliman 1101, Quezon City
Philippines
http://www.astra.ph
--
The Astra Group of Companies
5-3-11 Sekido, Tama City
Tokyo 206-0011, Japan
http://www.astra.co.jp
next prev parent reply other threads:[~2007-07-26 4:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 9:01 How to get correct midi timings from ALSA using the library only Carlo Florendo
[not found] ` <46A5BFDF.4040906-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2007-07-24 10:06 ` [LAD] " Florian Schmidt
[not found] ` <200707241206.09991.mista.tapas-hi6Y0CQ0nG0@public.gmane.org>
2007-07-25 2:18 ` Carlo Florendo
[not found] ` <46A6B2DC.3030906-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2007-07-25 9:25 ` Florian Schmidt
2007-07-26 4:51 ` Carlo Florendo [this message]
2007-07-24 10:24 ` Clemens Ladisch
2007-07-25 0:54 ` Carlo Florendo
2007-07-25 8:24 ` [LAD] " Clemens Ladisch
2007-07-25 8:51 ` Carlo Florendo
2007-07-25 9:16 ` Carlo Florendo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46A8284D.9020404@gmail.com \
--to=subscribermail@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=linux-audio-dev@lists.linuxaudio.org \
--cc=mista.tapas@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.