All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Re: [linux-audio-dev] midi events in jack callback / ALSA Sequencer
@ 2002-08-22 11:51 mikko.a.helin
  2002-08-22 13:21 ` Martijn Sipkema
  0 siblings, 1 reply; 4+ messages in thread
From: mikko.a.helin @ 2002-08-22 11:51 UTC (permalink / raw)
  To: linux-audio-dev; +Cc: alsa-devel

Why is it important to keep the API simple, shouldn't it be functional in first place and make the API usage simply?

Anyway (IMHO), there should really be an API which combines audio and MIDI playback, recording and timing of events and makes it possible to keep MIDI in sync with audio (ALSA sequencer API seems to support only tick and time synchronization modes, no audio clock sync mode). Professional API's like ASIO and VST (and DirectMusic) synchronizes everything to audio clock (sample position). Even when MTC is used the audio clock is the main clock source, digital I/O or world clock is used to sync the audio clock to the audio clock of the external device. There is no need for other sync modes than audio (_maybe the tick mode could be useful if ALSA takes care of sending MIDI clock, SPP, MTC etc. data to external devices). Sequencer application can easily convert sample position from the beginning of the song to measures / beats, time etc. whatever is needed when the time signature, tempo and sample rate is known - reading the sample position from the sound card is no problem at all, PCI chipset's DMA registers have usually such current play position register, or if not, the sample position can be calculated by measuring the time between IRQ's and calculating the time between current time and the time when last interrupt was received.

-Mikko

> etc. Of course
> you
> > might be using one big monolithic (cubase?) sequencer 
> application which
> does
> > do everything you need....
> 
> No, I like the concept of a lot of small applications. And I 
> want those to
> be able
> to sync (slave) to MIDI clock.
> 
> 
> I think it is important to keep the API as simple as possible.
> 
> --martijn


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <Pine.LNX.4.21.0208191748480.673-100000@summer.quitte>]

end of thread, other threads:[~2002-08-22 12:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-22 11:51 Re: [linux-audio-dev] midi events in jack callback / ALSA Sequencer mikko.a.helin
2002-08-22 13:21 ` Martijn Sipkema
     [not found] <Pine.LNX.4.21.0208191748480.673-100000@summer.quitte>
     [not found] ` <002001c247ac$2259e960$0400a8c0@martijn>
2002-08-20 20:50   ` Frank van de Pol
2002-08-21  1:10     ` Martijn Sipkema
2002-08-21 23:48       ` Frank van de Pol
2002-08-22 10:45         ` Martijn Sipkema

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.