From alsa-user-owner@alsa.jcu.cz  Wed Dec 16 21:53:16 1998
Received: from madli.ut.ee (oolberg@madli.ut.ee [193.40.5.124])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id VAA31437
	for <alsa-user@alsa.jcu.cz>; Wed, 16 Dec 1998 21:50:10 +0100
Received: from localhost (oolberg@localhost)
	by madli.ut.ee (8.9.1/8.9.1/madli-1.10) with ESMTP id WAA12373
	for <alsa-user@alsa.jcu.cz>; Wed, 16 Dec 1998 22:50:06 +0200 (EET)
Date: Wed, 16 Dec 1998 22:50:05 +0200 (EET DST)
From: Imre Oolberg <oolberg@ut.ee>
To: alsa-user@alsa.jcu.cz
Subject: playing midi with ALSA and ES1370 PCI SB CL 64
In-Reply-To: <199812161700.MAA28268@cutter-john.MIT.EDU>
Message-ID: <Pine.GSO.4.05.9812162249010.10125-100000@madli.ut.ee>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

Hallo, 

i wrote to this list before about my experiments to start using 
ALSA with Creative Labs Sound Blastes PCI 64 (ES1370) on 
libc5 slackware 3.4 (intel Pentium 120 MHz x86)
Compiling with ncurses 4.2 and gcc 2.7.2.3

So, after getting some very useful guidance from mikmod people i did 
succeed not only play mp3 and wav's but also can now use mikmod 3.1.2!
And i can record from CD-ROM and mic simultaniously and it all went very well.
And one more thing: my CDROM dont let my read aoudi data with cdparanoia but 
now with ALSA mixer there is a workasound to save music as wav!
(xamixer and alsamixer and alsactl [store, restore] and all)

Until now.

I try to play midi files. Am i right that at the moment there are not so
called native utils like aplay for playing midi files?

So i downloaded the famuous playmidi 2. 3 and tried to compile it as it
came. It did compile in the end but didnt produce any sound. 

Here is the proccess:

compiling:

This is free software with ABSOLUTELY NO WARRANTY.  For details, please
see the file COPYING included with the Playmidi distribution.

What type of device do you want to make the default?
1. External midi synth, Ensoniq Soundscape, TB Maui, waveblaster cards
2. Yamaha 2-op FM
3. Yamaha 4-op FM
4. Gravis Ultrasound
(default = 1) --> 1  
                  ^^^^^MY CHOICE
Playmidi External MIDI synth configuration:
Midi devices: 
0: ES1370

If you want to force one of the midi devices above, enter the number
here, otherwise, to default to the last detected, hit enter.
(at runtime, option -D# will override this) --> 0
                                                ^^^^ MY CHOICE   
Now creating playmidi.h with your defaults...Done.

Bad or missing .depend running 'make depend clean'

make depend clean
make[1]: Entering directory /playmidi-2.3'
for i in *.c; do cc -E -M -Wall -pipe -fomit-frame-pointer -O2 -m486
-I/usr/include/ncurses -I/usr/X11R6/include -DNARROWPROTO
-I/usr/local/include $i; done >.depend
 
.... to the end.

and in fact it complained about missind ncurses (this must be a curse on
me because with mikmod the problem was inconsistent header and library
files :) but i fiddled with Makefile and it hopefully found ncurses since it
compiled at last.


After running the binary 'playmidi bohemian' it complained about /dev/sequencer
and I thought in the heat of the moment that most reasonable thing is to
remove existing one (it was a carachter device 14, 1 i believe but buffered
or not i dont know any more). So i removed it and created a link 
/dev/sequencer to /proc/asound/dev/midi00. 
But it didnt work that way either :(
Should i recreate this poor /dev/sequencer just like
mknod /dev/sequencer c 14 1?

It said this time that there is no soundcard :( 

Though other things work nevertheless  after so much messing around. 


I guess you people had better luck! Teach a desperate soul, please!

Best Regards Imre Oolberg


PS and here is what i got:

bash# ls -l /proc/asound/dev/ 
total 0
crw-rw-rw-   1 root     root      14, 144 Dec 16 21:08 control0
crw-rw-rw-   1 root     root      14, 200 Dec 16 21:08 midi00
crw-rw-rw-   1 root     root      14, 152 Dec 16 18:24 mixer00
crw-rw-rw-   1 root     root      14, 168 Dec 16 21:08 pcm00
crw-rw-rw-   1 root     root      14, 169 Dec 16 21:08 pcm01
bash# 


bash# cat /proc/asound/devices 
144: [0]   : control
152: [0- 0]: mixer
168: [0- 0]: digital audio
169: [0- 1]: digital audio
200: [0- 0]: raw midi
bash# 


bash# cat /proc/asound/oss-devices 
  0: [0- 0]: mixer
  2: [0- 2]: raw midi
  3: [0- 3]: digital audio
  4: [0- 4]: digital audio
  5: [0- 5]: digital audio
  6:       : sndstat
  9: [0- 9]: raw midi
 12: [0-12]: digital audio
bash# 

bash# lsmod 
Module:        #pages:  Used by:
snd-pcm1-oss       4            0
snd-audiopci       1            1
snd-es1370         3    [snd-audiopci]  0
snd-ac97-codec     3    [snd-es1370]    0
snd-pcm1           4    [snd-pcm1-oss snd-es1370]       0
snd-midi           4    [snd-audiopci snd-es1370]       0
snd-mixer          4    [snd-pcm1-oss snd-audiopci snd-es1370
snd-ac97-codec]  1
snd-pcm            3    [snd-pcm1-oss snd-audiopci snd-pcm1]    0
snd                8    [snd-pcm1-oss snd-audiopci snd-es1370 snd-ac97-codec
snd-pcm1 snd-midi snd-mixer snd-pcm]       0
persist            1    [snd]   0
ppp                5            0
slip               2            0
slhc               2    [ppp slip]      0
lp                 2            0
bash# 


There are midi's everywhere ...


PPS

And being sorry for this awful long letter i still want to ask one more
thing:

My card came with a CDROM and when i installed it on the NT (i have triple
boot) then it copied onto the disk some huge 8 MB file. I cant remeber
exectly how it was called but something like waveforms or ..
In short - its the stuff card is supposed to use to inerpret midis. Could i
be right?

And is this file also useful in linux with ALSA?


