[Melys-devel] Using external MIDI port
Status: Alpha
Brought to you by:
steve
|
From: R. S. R. <sra...@nc...> - 2000-03-31 17:45:52
|
On Wed, 29 Mar 2000 20:44:17 +0100, Steve Ratcliffe wrote:
>> 2) MIDI event capture. Is this already implemented?
>
>It should just work once you have set ALSA_INPUT_PORTS. (You also need
>to ensure that the snd-seq-midi module is loaded) All MIDI events are
>captured/recorded, even ones that you can't yet edit such as pitch-bend,
>controllers and sysex.
I was able to make half of it work. I connected a
Yamaha PSR-270 keyboard to the Sound Blaster Live!,
did a "modprobe snd-seq-midi", and then set both
ALSA_INPUT_PORTS=64:0 and ALSA_OUTPUT_PORTS=64:0.
Using both pmidi and melys I can send MIDI data
to the keyboard without problems.
However, I can't seem to get MIDI-in to work. It
may be user error. Here's what happens everytime:
1. load melys
2. On track one click the record button
3. melys segfaults
Am I doing something wrong? Is there a way to test the
port using another program so I can determine if melys
or ALSA is to blame? Also, once melys segfaults, port
64:0 becomes unusable for reading *or* writing until I
reboot the computer. I am unable to simply restart the
ALSA driver - it insists that it is in use.
All the other ALSA driver features for the Sound Blaster
Live! card seem to work. I can play .wav files, use the
internal synth, play MIDI files internally, download and
use soundfont files, and use external MIDI output. Only
the external MIDI input seems to be a problem.
I'm using the Sound Blaster Live! value card, Red Hat
6.1 with the stock 2.2.12 kernel, and ALSA 0.5.6.
FWIW, here's my conf.modules setup:
# Alsa stuff
alias char-major-116 snd
options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0666 snd_device_gid=0 snd_device_uid=0
alias snd-card-0 snd-card-emu10k1
options snd-card-emu10k1 snd_index=0
# OSS compatibility stuff
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
And the sequencer port info (prior to the segfault):
Client info
cur clients : 5
peak clients : 10
max clients : 192
Client 0 : "System" [Kernel]
Port 0 : "Timer" (system:Rwe:Rwe-)
Port 1 : "Announce" (system:R-e:R-e-)
Connecting To: 63:0
Client 63 : "OSS sequencer" [Kernel]
Port 0 : "Receiver" (system:-we:-we-)
Connected From: 0:1
Client 64 : "External MIDI 0" [Kernel]
Port 0 : "MIDI 0-0" (device:RWe:RWeX)
Client 65 : "Emu10k1 WaveTable" [Kernel]
Port 0 : "Emu10k1 Port 0" (device:-We:-We-)
Connected From: 128:0[t:0]
Port 1 : "Emu10k1 Port 1" (device:-We:-We-)
Connected From: 128:0[t:0]
Port 2 : "Emu10k1 Port 2" (device:-We:-We-)
Connected From: 128:0[t:0]
Port 3 : "Emu10k1 Port 3" (device:-We:-We-)
Connected From: 128:0[t:0]
Client 128 : "Melys sequencer" [User]
Port 0 : "port-0" (application:rWe:rWe-)
Connecting To: 65:0[t:0], 65:1[t:0], 65:2[t:0], 65:3[t:0]
Output pool :
Pool size : 200
Available cells : 199
Cells in use : 1
Peak cells in use : 1
Alloc success : 1
Alloc failures : 0
Alloc no-pool : 0
Input pool :
Pool size : 200
Available cells : 200
Cells in use : 0
Peak cells in use : 0
Alloc success : 0
Alloc failures : 0
Alloc no-pool : 0
-Steve
_____________________________________________________________________
R. Steven Rainwater * http://www.ncc.com/humans/srainwater/index.html
"As you struggle to save humanity be sure to avoid electrodes in
your path" -- Robotron 2084
|