From alsa-devel-owner@alsa.jcu.cz  Wed Oct 21 00:57:44 1998
Received: from obelix.fvdpol.inter.nl.net (frank@bd99-1.Breda.NL.net [193.79.246.226])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id AAA23885
	for <alsa-devel@jcu.cz>; Wed, 21 Oct 1998 00:57:09 +0200
Received: (from frank@localhost) by obelix.fvdpol.inter.nl.net (8.8.7/8.7.3) id XAA02818 for alsa-devel@jcu.cz; Tue, 20 Oct 1998 23:56:58 +0100
From: Frank van de Pol <F.K.W.van.de.Pol@Inter.NL.net>
Message-Id: <199810202256.XAA02818@obelix.fvdpol.inter.nl.net>
Subject: Re: More ALSA Sequencer stuff
To: alsa-devel@jcu.cz
Date: Tue, 20 Oct 1998 23:56:57 +0100 (MET)
In-Reply-To: <Pine.LNX.3.95.981017121353.9505B-100000@cyphyn.219.org> from "Fred Floberg" at Oct 17, 98 01:08:47 pm
Content-Type: text
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

Fred Floberg wrote:
> 
> > Also, after getting the sequencer modules to load, I ran usertest2
> > and playmidi (from the test utils) with some SMF Type 0 files. It
> > sounds as though the tempo was slowed down to 1/4 or less of the
> > original speed with some files. Other files seemed to run at closer
> > to their real tempo but still not quite.
> 
> This is begining to appear to be a problem in
> alsa-driver/test/seq/midifile.c, which was written by Timothy Thompson,
> and used in Frank's 'playmidi' test program.

Hmmm, I get good timing with the MIDI files I tried. Tempo changes are also
handled. Perhaps you can try if it makes a difference to use tick or
real-time timestamps (compile option in playmidi.c). Do you see this error
in tempo consistenly on certain or all files? Perhaps you can mail me one of
these files (please not to the mailing list, use my private mail address).

> 
> Rather than trying to debug that library I'm going to attempt to port
> Nathan Laredo's playmidi-2.3 package over to using ALSA's Sequencer. I
> know this package to work very well, and it'll be nice to have a full
> featured midi file player (Nathan's playmidi supports SMF Type 0 and 1
> files, multiple UI's, etc.) for ALSA.

Sounds great!

> 
> This will be a good way for me to become more familiar with ALSA's
> Sequencer code also.
> 
> I'll post an update when I've made some headway with it.

Be prepared that some parts of the sequencer core are not yet functional or
buggy. Please contact me in case of problems/questions. The ALSA sequencer
API is very dislike the OSS thing.

>  
> > Reading from the MIDI port using usertest1 does not work at all.
>  
> After more experimenting I've gotten the Sequencer to read from the
> MIDI port, using alsa-driver/test/seq/kernel-client_midi.c and usertest3.c

guess the usertest1 is an old test program, and we've had an api change
which breaks that test program. I'll have a look at it and see if it is
worth the effort to fix or either delete it...
 
> (BTW, I'm using Linux kernel version 2.0.35 and libc.so.5.4.46. Could
> this be problematic?)

Shouldn't, but could be. My machine consists is (currently) running kernel
2.1.122 and libc.so.5.4.36.

Frank.

+---- --- -- -  -   -    - 
|Frank van de Pol                  -o)
|F.K.W.van.de.Pol@inter.NL.net     /\\
|                                 _\_v
|Linux - Why use Windows, since there is a door?
|
|ALSA Sequencer: http://www.inter.nl.net/users/F.K.W.van.de.Pol/alsa/

