All of lore.kernel.org
 help / color / mirror / Atom feed
* Sequencer API Query
@ 2003-02-04 17:06 Merrony, Stephen (London)
  2003-02-05  8:20 ` Clemens Ladisch
  0 siblings, 1 reply; 7+ messages in thread
From: Merrony, Stephen (London) @ 2003-02-04 17:06 UTC (permalink / raw)
  To: alsa-devel

Guys,

I have an application which is successfully using the sequencer API to read
and write MIDI events.  

I would like to be able to query the number of MIDI channels available per
client, but all of snd_seq_port_info_get_midi_channels(),
snd_seq_port_info_get_midi_voices(), snd_seq_port_info_get_synth_voices()
return 0.  

I am using  a Creative SoundBlaster Live!  And it is the wavetable synths I
am interested in.

I notice that the input ports correctly return a value of 16 when queried
with snd_seq_port_info_get_midi_channels().

Regards
	         Steve





-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sequencer API Query
  2003-02-04 17:06 Merrony, Stephen (London)
@ 2003-02-05  8:20 ` Clemens Ladisch
  0 siblings, 0 replies; 7+ messages in thread
From: Clemens Ladisch @ 2003-02-05  8:20 UTC (permalink / raw)
  To: Merrony, Stephen (London); +Cc: alsa-devel

Merrony, Stephen (London) wrote:
> I would like to be able to query the number of MIDI channels available per
> client, but all of snd_seq_port_info_get_midi_channels(),
> snd_seq_port_info_get_midi_voices(), snd_seq_port_info_get_synth_voices()
> return 0.
>
> I am using  a Creative SoundBlaster Live!  And it is the wavetable synths I
> am interested in.

The driver doesn't bother to set these values.

> I notice that the input ports correctly return a value of 16 when queried
> with snd_seq_port_info_get_midi_channels().

Well, this may not be entirely correct if the port is connected to a
device using less than 16 channels.  ;-)


HTH
Clemens



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Sequencer API Query
@ 2003-02-05  9:48 Merrony, Stephen (London)
  2003-02-05 10:26 ` Jaroslav Kysela
  2003-02-05 10:40 ` Takashi Iwai
  0 siblings, 2 replies; 7+ messages in thread
From: Merrony, Stephen (London) @ 2003-02-05  9:48 UTC (permalink / raw)
  To: 'Clemens Ladisch'; +Cc: alsa-devel

OK - at least it's not my dodgy programming that's to blame this time [;-)

Is it either (i) correct, (ii) safe, or (iii) OK in practice(!),  to assume
16 channels per (wavetable) synth?

Thanks
           Steve


> Merrony, Stephen (London) wrote:
> > I would like to be able to query the number of MIDI channels available
> per
> > client, but all of snd_seq_port_info_get_midi_channels(),
> > snd_seq_port_info_get_midi_voices(),
> snd_seq_port_info_get_synth_voices()
> > return 0.
> >
> > I am using  a Creative SoundBlaster Live!  And it is the wavetable
> synths I
> > am interested in.
> 
> The driver doesn't bother to set these values.
> 
> > I notice that the input ports correctly return a value of 16 when
> queried
> > with snd_seq_port_info_get_midi_channels().
> 
> Well, this may not be entirely correct if the port is connected to a
> device using less than 16 channels.  ;-)
> 
> 
> HTH
> Clemens
> 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Sequencer API Query
  2003-02-05  9:48 Sequencer API Query Merrony, Stephen (London)
@ 2003-02-05 10:26 ` Jaroslav Kysela
  2003-02-05 10:40 ` Takashi Iwai
  1 sibling, 0 replies; 7+ messages in thread
From: Jaroslav Kysela @ 2003-02-05 10:26 UTC (permalink / raw)
  To: Merrony, Stephen (London)
  Cc: 'Clemens Ladisch', alsa-devel@lists.sourceforge.net

On Wed, 5 Feb 2003, Merrony, Stephen (London) wrote:

> OK - at least it's not my dodgy programming that's to blame this time [;-)
> 
> Is it either (i) correct, (ii) safe, or (iii) OK in practice(!),  to assume
> 16 channels per (wavetable) synth?

It would be better to use midi_channels() function. Probably SB Live wave 
driver has a bug... We're working on this...

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sequencer API Query
  2003-02-05  9:48 Sequencer API Query Merrony, Stephen (London)
  2003-02-05 10:26 ` Jaroslav Kysela
@ 2003-02-05 10:40 ` Takashi Iwai
  1 sibling, 0 replies; 7+ messages in thread
From: Takashi Iwai @ 2003-02-05 10:40 UTC (permalink / raw)
  To: Merrony, Stephen (London); +Cc: 'Clemens Ladisch', alsa-devel

At Wed, 5 Feb 2003 09:48:43 -0000,
Merrony, Stephen (London) <merronys@exchange.uk.ml.com> wrote:
> 
> OK - at least it's not my dodgy programming that's to blame this time [;-)
> 
> Is it either (i) correct, (ii) safe, or (iii) OK in practice(!),  to assume
> 16 channels per (wavetable) synth?

(iii).
if it's 0, it's not defined.  you can assume the 16 channels if the
port type is a MIDI unless the number is explicitly defined.

anyway i'll fix the driver to set the correct value.


Takashi


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Sequencer API Query
@ 2003-02-05 10:42 Merrony, Stephen (London)
  2003-02-05 11:17 ` Takashi Iwai
  0 siblings, 1 reply; 7+ messages in thread
From: Merrony, Stephen (London) @ 2003-02-05 10:42 UTC (permalink / raw)
  To: 'Takashi Iwai', Merrony, Stephen (London)
  Cc: 'Clemens Ladisch', alsa-devel

Thanks - let me know if you want a tester.

Steve

> -----Original Message-----
> From:	Takashi Iwai [SMTP:tiwai@suse.de]
> Sent:	Wednesday, February 05, 2003 10:41 AM
> To:	Merrony, Stephen (London)
> Cc:	'Clemens Ladisch'; alsa-devel@lists.sourceforge.net
> Subject:	Re: [Alsa-devel] Sequencer API Query
> 
> At Wed, 5 Feb 2003 09:48:43 -0000,
> Merrony, Stephen (London) <merronys@exchange.uk.ml.com> wrote:
> > 
> > OK - at least it's not my dodgy programming that's to blame this time
> [;-)
> > 
> > Is it either (i) correct, (ii) safe, or (iii) OK in practice(!),  to
> assume
> > 16 channels per (wavetable) synth?
> 
> (iii).
> if it's 0, it's not defined.  you can assume the 16 channels if the
> port type is a MIDI unless the number is explicitly defined.
> 
> anyway i'll fix the driver to set the correct value.
> 
> 
> Takashi



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sequencer API Query
  2003-02-05 10:42 Merrony, Stephen (London)
@ 2003-02-05 11:17 ` Takashi Iwai
  0 siblings, 0 replies; 7+ messages in thread
From: Takashi Iwai @ 2003-02-05 11:17 UTC (permalink / raw)
  To: Merrony, Stephen (London); +Cc: 'Clemens Ladisch', alsa-devel

At Wed, 5 Feb 2003 10:42:55 -0000,
Merrony, Stephen (London) <merronys@exchange.uk.ml.com> wrote:
> 
> Thanks - let me know if you want a tester.

the new code is already on cvs.
please let me know if the problem still persists.


thanks,

Takashi


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-02-05 11:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-05  9:48 Sequencer API Query Merrony, Stephen (London)
2003-02-05 10:26 ` Jaroslav Kysela
2003-02-05 10:40 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2003-02-05 10:42 Merrony, Stephen (London)
2003-02-05 11:17 ` Takashi Iwai
2003-02-04 17:06 Merrony, Stephen (London)
2003-02-05  8:20 ` Clemens Ladisch

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.