RE: [linux-audio-dev] Synching audio and midi?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: RE: [linux-audio-dev] Synching audio and midi?
From: guenther.sohler_AT_newlogic.com
Date: Fri Nov 23 2001 - 09:42:15 EET


On 22-Nov-01 Bill Bland wrote:
> Hello all,
> I'm about to buy a Yamaha QY100 midi sequencer and I'm wondering
> about the possibility of using it with my computer, with the QY100
> handling the midi stuff and the PC doing audio.
> I was thinking perhaps the easiest way to do this would be to compose
> something on the QY100 and upload the midi data onto my PC. Then I'd use
> something like ardour (and/or gdam) do the audio. Next I'd like to be
> able to synch together the ardour/gdam/whatever playback with a simple
> midi dumper that just sends the captured midi back to my QY100. This is
> the bit I'm not sure about.
> I develop in C/C++/Java for a living, so I *should* be able to write any
> simple stuff that's not already there to make this work, although I don't
> have as much free time as I'd like to work on stuff like this.
> Does anyone know of any APIs (alsa? jack?) or any existing programs that I
> might be able to use to get me started? Obviously since I will have the
> QY100 for midi editing I don't want a full-blown midi/audio
> sequencer. Just some way to synchronise midi and audio output would be
> great.
>
> Thanks in advance (sorry if this is a faq or just a stupid question!)
> Best wishes,
> Bill.
>

Guenther Sohler
Guenther Sohler

NewLogic Technologies AG
Millennium Park 6
A-6890 Lustenau
                                           Phone: +43-5577-62000-64
E-Mail: guenther.sohler_AT_newlogic.com Fax: +43-5577-62000-88
hallo guy,

I have already written an application which plays audio and midi simulationsly.
There is a simple trick to achieve synchronisation.
principally you just dump the audio to the soundblaster.
there exists a ioctl call(GETOPTR) where you can ask how many bytes have yet
been played.
next you just need to write a simple midi player. just time this midi playert
with the time you got from GETOPTR.
So audio is master drives slave midi.
mail me again in appr 2 weeks for my final program.

NewLogic Technologies AG
Millennium Park 6
A-6890 Lustenau
                                           Phone: +43-5577-62000-64
E-Mail: guenther.sohler_AT_newlogic.com Fax: +43-5577-62000-88


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Nov 23 2001 - 09:44:42 EET