Re: rawmidi problem (was Re: [Alsa-devel] ALSA homepage redesign)

2002-04-23 Thread Thomas Fjellstrom

On April 23, 2002 12:54 am, you wrote:
> Last time I tried, rawmidi worked for me, on hw:0,1
> You shouldn't need the snd-virmidi device, just the
> snd-emu10k1 will do. Exactly what version of alsa-driver
> are you using?

0.9.0beta12

> Anyway, because playing through the sequencer _does_ work,
> you could indeed load the snd-virmidi device as well,
> use aconnect to connect a virmidi sequencer port to the
> emu10k1 synth sequencer port, and use hw:1,0 (in case
> that the virmidi is your second card). On monday (at
> work, where I have the SBLive! installed), I will send
> you my configuration (modules.conf), and the exact
> aconnect parameters.

Thanks.

> But then again, just rawmidi -o hw:0,1 should work.
>

Unfortunatly it does not... Im using the same settings I used for a previous 
version of alsa 0.9.0, and had rawmidi working...

-- 
Thomas Fjellstrom
[EMAIL PROTECTED]
http://strangesoft.net

___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: rawmidi problem (was Re: [Alsa-devel] ALSA homepage redesign)

2002-04-23 Thread Takashi Iwai

Hi Juan,

At Mon, 22 Apr 2002 14:12:57 -0300,
Juan Linietsky wrote:
> 
> On Mon, 22 Apr 2002 18:07:59 +0200
> Takashi Iwai <[EMAIL PROTECTED]> wrote:
> 
> > however i don't understand quite well the situation from your posts.
> > could you elaborate the symptom?
> > which program and how did you test?
> > 
> > 
> > Takashi
> 
> Hello!
> 
> Actually, if you dont mind i have some questions to ask you.
> First, about the awe64 on ALSA, what happened with the individual
> chorus/reverb settings per channel in the synth? I dont seem to be
> able to get them to work aymore except for a global buffer.

in the case of sbawe (and emu10k1 in future) they are controlled by
sending MIDI controls 0x5d (chorus depth) and 0x5b (reverb depth),
respectively.
if you mean that these controls don't influence the sound, then it
must be a bug.  please let me know.


> About this too, is there a way to change the reverb/chorus types
> that i know the awe64 supports?

the chorus/reverb modes can be controlled via a standard GS sysex (or
an ioctl of OSS-emulation).  the sysex bytes are
f0 41 10 42 12 40 01 38 XX f7   (chorus)
f0 41 10 42 12 40 01 30 XX f7   (reverb)
where XX is a mode type from 0 to 7.

 
> About the sblive sequencer on ALSA, from what i can deduce, it seems
> to be a bug in the code that tries to allocate a free channel.. is
> there any work around for this?

i've been hunting this bug for a long time but not still figured out
the condition when/how it happens..
do you have an example midi which can reproduce this problem clearly?
it would really help for debugging.

> Also about the insert effects on the sblive, I havent found the way
> to map them into midi controllers (my guess is that the sblive uses
> a global send buffer for effects and send levels per channel so they
> cant be mixed that easily?)

sorry, the mapping to midi control is not implmented yet.  (and iirc
there is no good working dsp codes (for alsa) yet.)
perhaps we need to extend fx8010 control struct in emufx.c, too.

well, for better understanding, let me explain a bit detail of emu10k1
hardware:

emu10k1 has 4 individual outputs per channel.
two are used for dry sounds, so we have another two mono outputs,
which are usually assigned for for chorus and reverb.
the above chorus/reverb depth controls the amount of wet tones to be
sent to these two effect outputs.

an effect will be inserted between an effect output and the master
mixer.  this can be any effect, not only for chorus and reverb, but
also e.g. 4-point surrounds.  the effect simply reads the value, which
is the sum of outputs from all channels, processes it and outputs to
the specified effect route, eventually to the master.


ciao,

Takashi

___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: rawmidi problem (was Re: [Alsa-devel] ALSA homepage redesign)

2002-04-23 Thread Takashi Iwai

At Mon, 22 Apr 2002 13:50:27 -0600,
Thomas Fjellstrom wrote:
> 
> I don't hear any sound when playing midi using the rawmidi interface (using 
> my SBLive! Value), I tried, some code written by me, and the rawmidi.c source 
> demo that is included with the driver package. (A sound font is loaded, and 
> midis play fine with sound, using the pmidi program.)

hmm it looks like a bug was introduced in virmidi or in a combination
of virmidi and rawmidi.  i think the rawmidi itself works fine.
this problem appears only on emu10k1's virmidi.

i'll take a further look at this problem.


ciao,

Takashi

___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: rawmidi problem (was Re: [Alsa-devel] ALSA homepage redesign)

2002-04-23 Thread Takashi Iwai

At Tue, 23 Apr 2002 12:14:42 +0200,
I wrote:
> 
> At Mon, 22 Apr 2002 13:50:27 -0600,
> Thomas Fjellstrom wrote:
> > 
> > I don't hear any sound when playing midi using the rawmidi interface (using 
> > my SBLive! Value), I tried, some code written by me, and the rawmidi.c source 
> > demo that is included with the driver package. (A sound font is loaded, and 
> > midis play fine with sound, using the pmidi program.)
> 
> hmm it looks like a bug was introduced in virmidi or in a combination
> of virmidi and rawmidi.  i think the rawmidi itself works fine.
> this problem appears only on emu10k1's virmidi.
> 
> i'll take a further look at this problem.

now fixed on cvs.  actually it was a bug on virmidi.

thanks for your notice.


ciao,

Takashi

___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: rawmidi problem (was Re: [Alsa-devel] ALSA homepage redesign)

2002-04-23 Thread Thomas Fjellstrom

On April 23, 2002 05:44 am, you wrote:
> At Tue, 23 Apr 2002 12:14:42 +0200,
>
> I wrote:
> > At Mon, 22 Apr 2002 13:50:27 -0600,
> >
> > Thomas Fjellstrom wrote:
> > > I don't hear any sound when playing midi using the rawmidi interface
> > > (using my SBLive! Value), I tried, some code written by me, and the
> > > rawmidi.c source demo that is included with the driver package. (A
> > > sound font is loaded, and midis play fine with sound, using the pmidi
> > > program.)
> >
> > hmm it looks like a bug was introduced in virmidi or in a combination
> > of virmidi and rawmidi.  i think the rawmidi itself works fine.
> > this problem appears only on emu10k1's virmidi.
> >
> > i'll take a further look at this problem.
>
> now fixed on cvs.  actually it was a bug on virmidi.
>
> thanks for your notice.
>
>
> ciao,
>
> Takashi

Thanks alot! :)

-- 
Thomas Fjellstrom
[EMAIL PROTECTED]
http://strangesoft.net

___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] Help needed with sequencer driver for Mikmod

2002-04-23 Thread Ville Syrjälä

Nobody answered my previous mail so maybe a better subject will help...

I have written a ALSA sequencer driver for Mikmod. The problem is that I
can't get any sound from it. It uses simple instruments so it should work
with GUS and Trident 4dwave cards. I had a semi working driver before the
sequencer API changes but I misplaced it. This current driver is based on
alsamod and the drv_ultra driver from Mikmod. I'd appreciate if someone
who knows the sequencer could take look at the code. I have a patch
against libmikmod-3.1.9 at "http://www.saunalahti.fi/~syrjala/alsa/";

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] Problems Playing CDs with the SB Live. Using "kscd"

2002-04-23 Thread James Courtier-Dutton

Hello

I have trouble with playing CDs with the SB Live.
The alsamixer "CD" volume control adjusts the volume and the sound comes 
out the the headphone socket.

I want the sound to come out of the SPDIF socket.

If I play a .WAV file, the sound comes out the the SPDIF socket if I 
toggle "IEC958 Optical Raw" so "MM" appears.

No matter what I try, CD audio only ever comes out of the headphone socket.

Another point: -
I can be playing a DVD is AC3 passthru mode which disables all the 
alsamixer controls, meaning that .WAV files will not play while AC3 
passthru is playing.
Even in this mode, the CD still plays via the headphone socket.

Cheers
James



___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] Re: [linux-audio-dev] dynamic linking

2002-04-23 Thread Paul Davis

>I'm working on a library for accessing MIDI hardware, which uses plugins
>to communicate with the hardware. Now I'm not sure how to compile
>these shared libraries. Should I use -Bsymbolic? This makes the linker
>give a warning when the library is not linked against all the shared
>libraries

although i hate it in so many ways, i would strongly suggest that you
use libtool. there are complexities associated with building shared
libs that its better to leave to other tools.

--p

___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: rawmidi problem (was Re: [Alsa-devel] ALSA homepage redesign)

2002-04-23 Thread Thomas Fjellstrom

On April 23, 2002 05:44 am, you wrote:
> At Tue, 23 Apr 2002 12:14:42 +0200,
>
> I wrote:
> > At Mon, 22 Apr 2002 13:50:27 -0600,
> >
> > Thomas Fjellstrom wrote:
> > > I don't hear any sound when playing midi using the rawmidi interface
> > > (using my SBLive! Value), I tried, some code written by me, and the
> > > rawmidi.c source demo that is included with the driver package. (A
> > > sound font is loaded, and midis play fine with sound, using the pmidi
> > > program.)
> >
> > hmm it looks like a bug was introduced in virmidi or in a combination
> > of virmidi and rawmidi.  i think the rawmidi itself works fine.
> > this problem appears only on emu10k1's virmidi.
> >
> > i'll take a further look at this problem.
>
> now fixed on cvs.  actually it was a bug on virmidi.
>
> thanks for your notice.
>

No problem, except now I've noticed a few things :)

One: SND_RAWMIDI_SYNC isn't a valid flag for snd_rawmidi_open.
( rawmidi_hw.c:221: snd_rawmidi_hw_open: Assertion `!(mode & 
~(0x0001|0x0002))' failed.)


Two: using SND_RAWMIDI_APPEND on snd_rawmidi_open causes an assert then a 
segfault.. A '0' for flags is fine... (see Three)
rawmidi.c:963: snd_rawmidi_write: Assertion `rawmidi' failed.
(this error is printed thousands of times... before a segfault)

Three: after a while, about a minute or so of playing a midi, the midi starts 
getting slower and slower.. and CPU usage goes to 0... I'm sure Its not the 
midi player, as I've tried it's 'DIGIMID' driver (which uses a converted 
soundfont to play through the digital pcm interface) and it doens't have this 
problem. 

(now I've got to reboot... because I can't think of another way to turn off 
the midi notes that were left on... :)

-- 
Thomas Fjellstrom
[EMAIL PROTECTED]
http://strangesoft.net

___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel