From alsa-devel-owner@alsa.jcu.cz  Wed Feb 10 14:42:06 1999
Received: from pat.bath.ac.uk (qmailr@pat.bath.ac.uk [138.38.32.2])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id OAA02774
	for <alsa-devel@alsa.jcu.cz>; Wed, 10 Feb 1999 14:39:42 +0100
Received: (qmail 25168 invoked from network); 10 Feb 1999 13:39:38 -0000
Received: from midge.bath.ac.uk (HELO bath.ac.uk) (mmdf@138.38.32.34)
  by pat.bath.ac.uk with SMTP; 10 Feb 1999 13:39:38 -0000
Received: from tobi.bath.ac.uk by midge.bath.ac.uk id aa08164;
          10 Feb 99 13:39 GMT
Message-ID: <36C18C1C.2781@bath.ac.uk>
Date: Wed, 10 Feb 1999 13:39:40 +0000
From: "P.J.Leonard" <P.J.Leonard@bath.ac.uk>
MIME-Version: 1.0
To: alsa-devel@alsa.jcu.cz
Subject: Re: MIDI / Sequencer stuff (was:Re: Writing Article Re: Linux audio)
References: <199902090014.BAA05265@obelix.vande-pol.demon.nl> <36BF903B.1CADC0D3@cygnus.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

Thomas Hudson wrote:


> How adverse is everyone to having this implemented in C++? My original

 Not at all.

> design revolved around a set of abstract interfaces. The object would
> inherit and implement the interfaces that it supported. For example,
> a device capable of receiving and responding to program changes
> might implement:
> 
> class Patchable
> {
>   int GetPatchCount() = 0;
>   int SetCurrentPatch() = 0;

 is there a string parameter missing ? What is the returned int.

>   nit GetCurrentPatch() = 0;
>   vector<string> GetPatchNames() = 0;

 This could be very large. I have several directories full of sounfonts
each of which
has tens /hundreds of presets.

>   int GetPatchName(int patch_number) = 0;

 Should that return a string ?

> };


 We also need to absract the effects that can be applied to a patch. An
interface that returns a list of modulation effects avialable on a
channel with
the valid ranges would be nice. These could then be controlled via some
kind
of extended midi event message.

 

-- 
 Cheers Paul.                                        
               __         __                  
              (  ) _ - _ (  )                 
               ~~         ~~                  
                (  0   0  )                   
----------ooO----(       )----Ooo------------ 
          '''     (     )     '''             
                   (   )                      
                    \ /                       
                   ~~O~~                      

  Tel: +44 1225 826108
  Fax: +44 1225 826305
snail: P.J.Leonard
       Applied Electromagnetic Research Centre
       Bath University,
       BATH, UK   BA2 7AY

