From alsa-devel-owner@alsa.jcu.cz  Tue Feb 23 16:41:58 1999
Received: from faui45.informatik.uni-erlangen.de (root@faui45.informatik.uni-erlangen.de [131.188.2.45])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id QAA08209
	for <alsa-devel@alsa.jcu.cz>; Tue, 23 Feb 1999 16:40:36 +0100
Received: from servww1.ww.uni-erlangen.de (servww1.ww.uni-erlangen.de [131.188.142.2])
	by faui45.informatik.uni-erlangen.de (8.9.1/8.1.49-FAU) with SMTP id QAA19195
	for <alsa-devel%alsa.jcu.cz@faui45.informatik.uni-erlangen.de>; Tue, 23 Feb 1999 16:40:34 +0100 (MET)
Received: from hong.ww.uni-erlangen.de by ww.uni-erlangen.de with SMTP;
	id AA21258 (1.37.109.4/7.3m-FAU); Tue, 23 Feb 99 16:40:21 +0100
Message-Id: <9902231540.AA21258@servww1.ww.uni-erlangen.de>
Received: by hong (sSMTP sendmail emulation); Tue, 23 Feb 1999 16:42:06 +0100
From: "Takashi Iwai" <iwai@ww.uni-erlangen.de>
To: alsa-devel@alsa.jcu.cz
Subject: Re: Instrument abstract layer
In-Reply-To: <Pine.LNX.3.96.990223141401.1062D-100000@entry.jcu.cz>
References: <36D28251.15FB@bath.ac.uk>
	<Pine.LNX.3.96.990223141401.1062D-100000@entry.jcu.cz>
Date: Tue, 23 Feb 1999 16:42:06 +0100
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

>>>>> On Tue, 23 Feb 1999 14:18:30 +0100 (CET), Jaroslav Kysela
<perex@jcu.cz> said: 

> I forgot specify the program number (preset) in the specification.

> Prg (program or preset)
>   - MIDI / own program number
>   - 0..127 - melodic
>   - 128..255 - drums

It would be flexible that the key number can be given explicitly as
another parameter.
For example, not only drums but sfx presets have different sample per
key.  Most of these tones are defined in somewhere other banks but
possibly with different key number.  Then, we need to alias between
different bank/preset/key combinations.

About bank number.
The bank number should be (unsigned) short, too.  XG and GS formats
utilize both MSB and LSB bank numbers.  But, as wellknown, both
formats use different way of MSB and LSB.  It's confusing.
Then, using an optional parameter (like bank-map) would be nice, too.

BTW, I wrote the OSS sequencer emulation driver working on ALSA
sequencer.  I'll put it on web by this weekend.  So far, AWE64 and
MIDI sequencers are confirmed to work (although the MOD player doesn't
work yet...)

-- 
Takashi Iwai / iwai@ww.uni-erlangen.de
Department of Materials Science
Friedrich-Alexander-University Erlangen-Nuernberg

